question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get WindiCSS working

See original GitHub issue

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 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:closed
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
brilloutcommented, Sep 6, 2022
0reactions
konsumercommented, Sep 6, 2022

@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:

Screen Shot 2022-09-05 at 10 20 17 PM

Do I need to do something else?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found