Skip to content

How i can set rgba-color from theme? #13762

Answered by wongjn
projct1 asked this question in Help
Discussion options

You must be logged in to vote

If you are referring to the code in your initial post, you have used incorrect syntax. You may have meant theme('colors.purple.500/50%') or theme('colors.purple.500/0.5'). As per the documentation:

To adjust the opacity of a color retrieved with theme, use a slash followed by the opacity value you want to use:

.btn-blue {
  background-color: theme(colors.blue.500 / 75%);
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@projct1
Comment options

@wongjn
Comment options

@projct1
Comment options

@wongjn
Comment options

Answer selected by projct1
@projct1
Comment options

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