Can't get WindiCSS working
See original GitHub issueHey 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 to index.page.tsx
without any changes.
Uh I’m also using useClientRouter
in _default.page.client.tsx
.
What am I missing or doing wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Configuring Windi CSS
To get typecheck for your configurations, you can import the defineConfig function from windicss/helpers : windi.config.ts.
Read more >windicss classes doesn't work in Nuxt App - Stack Overflow
I got some issues with windicss. Classes don't apply on elements. I've tried to install an older version of windi and it still...
Read more >How to install Windi CSS in nextjs? | by Rajdeep singh - Medium
To test whether the windi CSS is working or not with nextjs. paste the ... you can't change or add a tailwind class...
Read more >vite-plugin-windicss - npm
"Design in Devtools" - if you work this way in the traditional Tailwind, no reason we can't! Install. npm i vite-plugin-windicss -D #...
Read more >Windi CSS: Is it a Tailwind CSS Killer? - Raybo.org
Let's take a look at why you'd want to consider it, and then we'll ... problems with a JIT compiler that is a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It does: https://github.com/brillout/vite-plugin-ssr_windi-css/blob/2310ad8ea3889c0c9fe5f73d902be49b25315273/pages/index/index.page.jsx#L9.
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/.
@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
import 'virtual:windi.css'
in PageLayout.jsx, it should work, but it doesn’t:Do I need to do something else?