Tailwind generates inappropriate class names for custom colors #13547
Unanswered
yorgetsuten
asked this question in
Help
Replies: 1 comment 1 reply
-
I don't think you've missed something. There is precedent in Tailwind for having a leading |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to add css vars aliases to the config like that:
const config: Config = { theme: { colors: { '-bg-primary': 'var(--bg-primary)' } } }
Idea is to use them as bg--bg-primary, similar to css vars syntax. But tailwind generates a
-bg-bg-primary
class which containsbackground-color: var(--bg-primary);
, instead ofbg--bg-primary
which does not seems like an expected behavior.Beta Was this translation helpful? Give feedback.
All reactions