Replies: 1 comment 4 replies
-
You can! Here's the test that indicates this is the intended behavior: tailwindcss/tests/evaluateTailwindFunctions.test.js Lines 535 to 565 in 94d6e72
You should be able to reference a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking at utilizing the
theme
function in our design system's CSS files, and I'm a bit confused on how properties likefont-size
andline-height
are supposed to work?For example
theme('fontSize.xl')
returns["1.25rem", {lineHeight: "1.75rem"}]
- am I understanding correctly that I can't just writefont-size: theme('fontSize.xl')
in my CSS? And how would I setline-height
separately while still using theme tokens?Any insight would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions