Replies: 2 comments 2 replies
-
Also, as a follow-up question: For example, if I want to define a class like I tried: --translate-x-min: --value; But that seems unsupported or causes the entire utility to be ignored. |
Beta Was this translation helpful? Give feedback.
-
Suggestions seem to work in Tailwind Play at least: Your issue could indicate a problem with intellisense finding your input CSS perhaps. You could try explicitly declaring your input CSS file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm experimenting with the new
@utility
directive in Tailwind CSS 4.0 and trying to define a dynamic utility using a wildcard pattern.Here’s a simplified example of what I'm using:
My goal is to have class names like viewport-375/1440 and similar.
While the utility works as expected during build, I noticed that IntelliSense in VS Code does not recognize or suggest viewport- when typing class names.
Even basic suggestions like viewport- do not appear in the autocomplete dropdown, making it harder to discover or use these utilities efficiently in the editor.
Is this a limitation of the IntelliSense plugin, or is there a recommended approach to support suggestion/autocomplete for custom dynamic utilities like this?
Any insight or roadmap updates would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions