How do I use a CSS var as a fontWeight? #2317
Unanswered
joriswitteman
asked this question in
Q&A
Replies: 1 comment
-
Issue for this, if folks are looking or want to contribute a fix: #2318 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, we're looking to use CSS variables as values for Theme.fontWeights, but the typings don't allow for this. Could this be changed?
The reason we want to do this is so that both the font weight name, and the numeral weight, can be seen when inspecting elements, for QA purposes. Like so:
The type error I get is:
I think I should be allowed to set an arbitrary string here, so that I can use CSS variables.
Beta Was this translation helpful? Give feedback.
All reactions