-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Can't get WindiCSS working #36
Comments
At first glance, I wouldn't know why it doesn't work.
|
Haven't tried any direct Tailwind stuff yet 🤔 How should I go about it? Yes, |
Let me have a look |
Working example: https://github.com/brillout/vite-plugin-ssr-vite-plugin-windicss |
My fault I should have read the docs better 😅 It defaults to only working with files in (already provided a PR to fix the typo in the example |
👍 Let me know if you have any ohter question |
Just out of curiosity, I couldn't find any mention of actual Tailwind classNames, have you confirmed they're working? |
I was wondering the same ^^; I just saw the Tailwind CSS included so I was assumings that things work. (I never used Tailwind CSS.)
If this necessary then we should def add a little guide to vite-plugin-ssr's README. A PR would be warmly welcome :-). |
As requested in vikejs#36 (comment) Let me know if that works for you. Could provide a basic example soonish, but don't count on that as I'm a little distracted from offline things at the moment 🤪
As requested in #36 (comment) Let me know if that works for you. Could provide a basic example soonish, but don't count on that as I'm a little distracted from offline things at the moment 🤪
@brillout your demo didn't use any tailwind util classes. It doesn't error for me, but it doesn't apply any windicss styles either. If I Do I need to do something else? |
Yes, see the warning at https://vite-plugin-ssr.com/windi-css. Please read the docs before asking for help. See https://brillout.github.io/rules/. |
Hey there, your plugin looks very promising, thanks a lot for your efforts 🙏
I'm completely new to vite, worked only with Gatsby and Next so far with Tailwind.
I tried WindiCSS in a "raw" Vite scaffold (using the CLI) then installing Windi according to the vite-plugin-windicss docs which worked just as expected.
Trying to do replicate this in my beforehand scaffolded vite-plugin-ssr project using the CLI failed to import the CSS styles (only the custom properties --tw-* are included in the final build .css).
I've put the
import "virtual:windi.css";
"everywhere" starting in_default.page.client.tsx
than added toindex.page.tsx
without any changes.Uh I'm also using
useClientRouter
in_default.page.client.tsx
.What am I missing or doing wrong?
The text was updated successfully, but these errors were encountered: