Using Tailwind’s intellisense in VSCode and other IDEs, it’s possible to autocomplete classes in class
, className
, et al.
In some cases you want to introduce variants, which mean autocomplete is not available. To get around this, I use the following setup.
// Add this to objects
// ↓ ↓
const variants = /* tw */ {