-
I'm trying to apply semantic color variables following Material 3 best practices. My goal is to define reusable color swatches that can later be mapped to semantic tokens. I attempted to define
However, this approach results in semantic tokens referencing variables instead of inlining their actual values. Expected Output:
Actual Output:
What’s the recommended way to structure my Tailwind config so that I can inline the swatch values directly into semantic tokens without generating extra CSS variables for the swatches? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have the second |
Beta Was this translation helpful? Give feedback.
Have the second
@theme
block also beinline
and use Tailwind's proprietarytheme()
function instead ofvar()
: https://play.tailwindcss.com/CYrPYFbYnl?file=css