-
Notifications
You must be signed in to change notification settings - Fork 15
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
Hex and RGBA values cause one theme not to work #44
Comments
I can adjust it to work with colors that have alpha values but it would need to disregard the alpha value (which may be confusing when using a color without an alpha value of I'd have to do this because of the opacity modifiers Tailwind CSS offers like: You can fix your issue using |
Let me know if you need anymore help here! |
Thanks for the quick prompt and for implementing the very useful utility. We've decided to cast all colors to |
I updated it to just ignore the opacity value on colors in #45. |
When tailwindcss-theme-swapper gets HEX value for dark theme, and rgba for light theme, dark theme will not work.
For example, with the following tailwindPreset:
This will generate following CSS Custom Properties
and this class
rgb(rgba(...)) is not valid syntax, therefore the dark theme would not work as expected - it would have rgb(0,0,0) value instead of rgba(255,255,1,1).
The text was updated successfully, but these errors were encountered: