Skip to content

Using arbitrary color as rgba() #6551

Answered by eliottchampault
WhitWaldo asked this question in Help
Discussion options

You must be logged in to vote

@WhitWaldo, with [email protected] you could do something like this bg-{color}-{variationNumber}/{opacity}. You can also do something like bg-[rgb(#,#,#)]/{opacity}.
Here is an example:
bg-orange-500/50 would apply an opacity 0.5 to your orange background-color.

Let me know if this helps.

E

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@WhitWaldo
Comment options

@Slamik
Comment options

Answer selected by WhitWaldo
Comment options

You must be logged in to vote
5 replies
@eliottchampault
Comment options

@howard-repos
Comment options

@dy
Comment options

@adamsaparudin
Comment options

@codenoobforreal
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
7 participants