-
Notifications
You must be signed in to change notification settings - Fork 114
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
About themeReplacements #28
Comments
Hi @f3ltron . Thanks for the feedback! Unfortunately the config viewer does not load your compiled css. It only parses the Tailwind config file. Therefor it doesn't have direct access to your CSS variables. A few others have mentioned this same issue so i'll take a closer look to see if there is a feasible path to make it happen. |
Is there an easy way to include a CSS file? I don't need |
I would love to be able to do this as well. We have a CSS file with all our CSS variables. |
Me too! would be super super appreciate that we have the option to add/link our local variables.css in tailwind-config-viewer |
@mavichow Hey there! Thanks for your comment. In your scenario, does your tailwind config colors etc. reference your CSS variables? |
Hey, my tailwind config is reference to CSS variables. I came across this repo from https://tailwindcss.nuxt.dev/ My current Nuxt x TailwindCss setup is extending colours using variables:
Everything works fine in my applications and I wonder if we have any settings to include in Understand the current repo have themeReplacements feature, but I'm just wondering it would be good if we can link variable.css in the thanks & truly appreciate your response! |
@rogden I was able to make this work by downloading this whole repo and adding a script to copy over my CSS and include it. If there were an option to include the CSS as part of this package, that would fix this problem. |
@rwwagner90 Yup, all my variable is included in the Css file. Understand we can manually hardcode the _tailwind viewer in node_modules...but that would be not an ideal solution for the approach.
Yup, would be super appreciate if we're able to do that eg: |
Hello, Thanks for your awesome works!
I know you have themeReplacements to replace the postcss variable. I didn't check how do you handle this. But can't you use something like this instead? It will be a bit less configuration even if it's not too much.
Thank you again!
The text was updated successfully, but these errors were encountered: