You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When using the
@utility
functionality in Tailwind v4 as described in https://tailwindcss.com/docs/adding-custom-styles#arbitrary-values, I've come across issues with it in IDE's and tools like Pettier.The following is my example utility class:
The WebStorm IDE shows a syntax error.
Prettier puts a space before the star:
[*]
becomes[ *]
.In general, the list of valid types doesn't seem to be in the documentation, but I think I found it in the source code.
Instead of
--value([*])
being for any type, how about something like--value([any])
?Beta Was this translation helpful? Give feedback.
All reactions