Using arbitrary color as rgba() #6551
-
|
With the new 3.0 release, we can use arbitrary colors (hooray!) in the markup. If I do something like Is rgba notation allowed in arbitrary attributes? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
|
@WhitWaldo, with [email protected] you could do something like this Let me know if this helps. E |
Beta Was this translation helpful? Give feedback.
-
|
@eliottchampault |
Beta Was this translation helpful? Give feedback.
-
|
If you're still having issues, make sure there are no spaces inside the function! |
Beta Was this translation helpful? Give feedback.
@WhitWaldo, with [email protected] you could do something like this
bg-{color}-{variationNumber}/{opacity}. You can also do something likebg-[rgb(#,#,#)]/{opacity}.Here is an example:
bg-orange-500/50would apply an opacity 0.5 to your orange background-color.Let me know if this helps.
E