-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
WindiCSS problem with CSS variables, double dash prefix is only single dash in the generated javascript files #18
Comments
Hi, As mentioned in this issue @marshallswain is working on the plugin (Thanks to him) and it might get fixed soon. |
Ok, I will have a look on how tailwind processes the JS objects. Maybe the WindiCSS team can be convinced to process these the same way. Then an extra plugin would not be strictly necessary I think. That said, I still think prejss-cli does the wrong thing here, maybe I will look into that too, just curious :) |
I found the reason why Tailwind can handle the '-TwBgOpacity syntax': May the WindiCSS team can adapt their parsing to match this, I will ask them :) |
I created an issue for WindiCSS: Component generation not 100% compatible to TailwindUI with leading dashes |
I created another issue for WindiCSS because themes break because the media style |
@gunters63 I'm glad you confirmed the issue. I suspected it was a WindoCSS bug, but it's much better that you've identified the actual cause of the bug in windi. |
This issue seems to be fixed (windicss/windicss#218) |
@saadeghi: Yes, can confirm it works now. Now there is only a little problem with theming left which I could work around (copying the CSS, removing the media prefers-dark style and importing it directly with |
Closing issue as WindiCSS is fixed now |
Hi there.
I am using DaisyUI together with Vite and WindiCSS (vite-plugin-windicss) and it is almost working.
There is one problem with CSS variables, though (Styled components and themes).
DaisyUI uses
prejss-cli
to convert the css into JS objects.Strangely, during this conversion, CSS vars get mangled from:
To something like this:
The conversion from kebab to Pascal case would be ok, windicss can handle this, the problem is the deleted dash at the start.
It only happens for CSS variables starting with double dash.
Something in the prejss-cli conversion is going wrong.
If I manually replace all -Tw with --Tw in
daisyui/dist/styled.js
, the styled components seem to work.The text was updated successfully, but these errors were encountered: