🚧 Still Under construction 🚧
By adding this script to your settings.json in the workspace or globally, you can set the regex for the clx
method to match the class names and provide intellisense.
"tailwindCSS.experimental.classRegex": [
["clx(?:\\.\\w*)?\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
]
cn
and cva
(Class Variant Authority) are excellent, but features like automatic typescript intellisense, composability, and ref forwarding are not supported. With clx
, you get all these features and more!