How to make tailwind intellisense work inside variants object. #269
-
|
Hi, thank you for creating this library. I followed this instruction to make tailwind intelissense work with cva. While it is working for cva simple inputs such as cva("tailwind classes here") and cva(["tailwind", "classes, "here"]). The intellisense is not working inside variants. For example I don't get any intellisense inside cva("text-foreground", {
variants: {
variant: {
h1: "font-inter font-extrabold leading-[var(--line-height-h1)] tracking-[length:var(--letter-spacing-h1)]",
}
},
})Is there any way to make intellisense work inside variants configuration? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Maybe it's not the best solution, but so far it works for me. "tailwindCSS.experimental.classRegex": [
["cva\\(([\\s\\S]*?)\\)(;|\\n)", "[\"'`]([^\"'`]*).*?[\"'`]"],
] |
Beta Was this translation helpful? Give feedback.
-
|
This is not working for me. Is there any other way? |
Beta Was this translation helpful? Give feedback.
-
|
Should be fixed with #332 |
Beta Was this translation helpful? Give feedback.
Should be fixed with #332