-
Hi everyone, I'm having an issue with Tailwind's Here’s what I found: Custom colors don’t work ❌: Here’s a playground link showing the issue: Tailwind Playground. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the
|
Beta Was this translation helpful? Give feedback.
In the
ring-opacity-*
case:Tailwind doesn't "know" what your CSS variable value is and thus has trouble injecting the opacity modifer in properly. It seems you'd need to explicitly set the
<alpha-value>
token in the colors: https://play.tailwindcss.com/TdpRvQbdpN?file=config.In the
/<opacity>
case:When you use the
hsl()
function, Tailwind seems to assume you are using modernhsl()
syntax. However, in the CSS, the variables are declared with legacy syntax. So, you could do one of:hsla()
function in the color declarations for the legacy syntax: https://play.tailwindcss.com/r7qhG1Qri1?file=confighsl()
syntax: https://play.tailwindcss.com/hJTl…