-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme Replacement support for Custom Properties + color opacity utilities #29
Comments
I also need CSS Variable support. tailwind-config-viewer is pretty much useless otherwise (we use a lot of variables) The |
If it helps anyone, I did this to extract css vars and convert them to the format this lib uses (vars must be in the :root selector):
This will output an object like:
|
where does that go / how do you use it? |
If I remember correctly, that goes in your But the idea was to extract css-vars and convert them to a JS object |
I solved it temporary so like that colors.css
tailwind.config.js
I use postcss and need the css variables space separated to directly insert them like this: exceptions in plain css somewhere in the app
|
To get custom colors that are declared with CSS variables working, there is a need to add some configuration.
It's possible to get it working, but I needed to create a new config file especially for the config viewer, and point toward it while running.
My suggestion is to support this out of the box.
I've made a gist with what I did to get it working in a project.
Happy to try and submit a PR if you can point me in the right direction and some sort of contribution reference.
Otherwise, just wanted to say that this is a really helpful project and is awesome!
Thanks for making this @expandtheroom.
The text was updated successfully, but these errors were encountered: