If you're using the Tailwind CSS IntelliSense vscode extension you might have noticed that this
const tailwindClasses = "text-15 p-6"
will not show any tooltips.
The easiest method without using something like Class Variance Authority if you don't need state machines is to
const tw = String.raw
const tailwindClasses = tw`text-15 p-6`
and add to settings.json
"tailwindCSS.experimental.classRegex": [
"tw`([^`]*)"
]
Very similar in how people use gql
Top comments (0)