Replies: 4 comments
-
For now, this is expected. Neither IntelliSense nor Tailwind CSS itself "read" the contents of |
Beta Was this translation helpful? Give feedback.
-
@thecrypticace what about some magic comments on top of the color declarations that the extension can parse? Something like: /* @static {rgb(37, 37, 37)} /*
--color-foreground: var(--foreground); or whatever syntax makes sense If it'll be considered/accepted I could come back with a PR |
Beta Was this translation helpful? Give feedback.
-
@andi23rosca I think it might be more useful / expected for IntelliSense to parse things found inside |
Beta Was this translation helpful? Give feedback.
-
Nice, I agree, I misunderstood that it wasn't planned to do that at all 👍🏻 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of VS Code are you using?
1.101.0 (Universal)
What version of Tailwind CSS IntelliSense are you using?
0.14.22
What version of Tailwind CSS are you using?
4.1.10
What package manager are you using?
npm
What operating system are you using?
macOS
Tailwind CSS Stylesheet (v4) or config file (v3)
VS Code settings
Reproduction URL
https://github.com/saitobp/tailwind-intelisense-bug
on the layout.tsx file I've added two h1 tags, one using the custom css variable
Describe your issue
I've a global.css file with some css variables being defined, example:
--primary: oklch(70.7% 0.165 254.624);
and inside the @theme I add a--color-primary: var(--primary);
variable, the value is being passed correctly, on the webpage the color is being applied, but the color decorator on VS code is not showing the colorIf set the
--color-primary: oklch(70.7% 0.165 254.624);
it shows up, so I guess the issue is that the intelisense is not reading the color from the root. I'm not sure if this could be a config that I'm missing, I've added the recomended settings on the intelisense page and still nothingBeta Was this translation helpful? Give feedback.
All reactions