Cant view custom tailwind classes
Answered
Japanese Bobtail posted this in #help-forum
Japanese BobtailOP
I created a new class ".foo" in my global.(s)css and its working (i can use it) but i can't view it via tooltop in vsc in my components. It makes no difference if i create it in utilities or directly. Any ideas how i can push this new class in the auto completion dropdown? the default classes like bg-red-200 are available but not my custom classes. Currently i'am using prettier and prettier-plugin-tailwindcss.
@layer utilities
.foo
@apply bg-red-400
Answered by joulev
it's not possible. the vscode extension only recognises classes from tailwind css and plugins. you can try creating a tailwind plugin. https://github.com/tailwindlabs/tailwindcss-intellisense/issues/227
2 Replies
it's not possible. the vscode extension only recognises classes from tailwind css and plugins. you can try creating a tailwind plugin. https://github.com/tailwindlabs/tailwindcss-intellisense/issues/227
Answer
Japanese BobtailOP
Thanks. Thats a "good" workaround.