is not valid windi css class
See original GitHub issueHi,
Thanks for making and maintaining Windi CSS.
I got the following error when hovering my bg-neutral-lighter
class:
bg-neutral-lighter is not valid windi css class (windi_invalid-class)
In my configuration file, I put
export default defineConfig({
theme: {
colors: {
neutral: {
dark: 'var(--ms-gray-800)',
DEFAULT: 'var(--ms-gray-500)',
light: 'var(--ms-gray-100)',
lighter: 'var(--ms-gray-50)'
},
},
},
})
Do you see any reason that leads my class not to be taken into account? Is it because I use CSS variables? If so, any workaround I could use?
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Windi CSS Intellisense for VS Code
Windi CSS IntelliSense enhances the Windi development experience by providing Visual Studio Code users with advanced features such as autocomplete, syntax ...
Read more >Configuring Windi CSS
Config File By default, Windi CSS will search for the configuration file under your project's root. Valid filenames are: windi.
Read more >Variants - Windi CSS
Targets the invalid pseudo-class. valid .${utility}:valid { ... } Targets the valid pseudo-class. optional .
Read more >Windi CSS CLI
-p, --prefix PREFIX Set the css class name prefix, only valid in compilation mode. The default prefix is 'windi-'. -o, --output PATH Set...
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 Free
Top 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
Any updates on the issue?
I don’t think this issue is reproducible because it is environment and incident dependent. Anyway, apparently Windicss extension on VSCode switches language that renders
.css
files, for me it switched toPostCSS
so i just changed itWindi
and it worked.