Skip to content

Safelist in V4 #15291

Answered by wongjn
SalarHoushvand asked this question in Help
Dec 3, 2024 · 12 comments · 8 replies

You must be logged in to vote

You could consider using the style attribute like:

<div style="color: var(--color-{{ $color }})">

Or

<div style="color: var(--color-{{ $color }}-500)">

Etc

Replies: 12 comments 8 replies

You must be logged in to vote
1 reply
@maheshBawa

Answer selected by SalarHoushvand

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@SalarHoushvand

You must be logged in to vote
1 reply
@cesswhite

You must be logged in to vote
0 replies

You must be logged in to vote
3 replies
@mbrowne

@BeardedGinger

@mbrowne

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@pyarun

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@wongjn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet