You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stored my tailwind declaration in a css file stored in a node_module
My index.css file content: @use '@my_lib/my_theme.css';
...
My my_theme.css file content: @import "tailwindcss" important;
@custom-variant dark (&:where(.dark-mode, .dark-mode *));
......
If I open an HTML file in "VScode" or "Webstrom" the tailwind classes autocompletion doesn't work.
If I copy "my_theme.css" directly in the project it works even if I let my "@use" declaration as it (@use '@my_lib/my_theme.css';)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I stored my tailwind declaration in a css file stored in a node_module
My index.css file content:
@use '@my_lib/my_theme.css';
...
My my_theme.css file content:
@import "tailwindcss" important;
@custom-variant dark (&:where(.dark-mode, .dark-mode *));
......
If I open an HTML file in "VScode" or "Webstrom" the tailwind classes autocompletion doesn't work.
If I copy "my_theme.css" directly in the project it works even if I let my "@use" declaration as it (@use '@my_lib/my_theme.css';)
Beta Was this translation helpful? Give feedback.
All reactions