Additional customization for --text-* theme variables #16317
clearasvodka
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
I want the same 😂 Any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Although not with a nested key as you'd like, the functionality itself can still be achieved: @import "tailwindcss";
@theme {
--text-subheader: 0.75rem;
--text-subheader--line-height: 1rem;
--text-subheader--letter-spacing: 0.25rem;
--text-subheader--font-weight: 600;
}
@utility text-subheader {
text-transform: uppercase;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since we can customize the
--text-*
theme variables, it would be helpful to also include atext-transform
utility alongside existingfont-size
,line-height
,letter-spacing
, andfont-weight
.This would be especially useful if your Design System already includes typography styles with uppercase text (which is quite common), allowing you to apply them simply by using a custom class.
For example,
And have the result as such:
#### THIS IS SUBHEADER.
Beta Was this translation helpful? Give feedback.
All reactions