Skip to content

@utility not working in Tailwindcss v4 #17912

Answered by RobinMalfait
Ekeu asked this question in Help
Discussion options

You must be logged in to vote

Hey!

The @reference allows you to reference your custom theme, which means that you can use features like custom @utility or @apply with @theme values defined in the referenced file.
The reference is also just that, a reference.

If you want to use custom utilities, you have to move the @utility definition to the referenced file. In your case, move it to the app/globals.css file.

That said you are defining widget-card-header and using widget-card-title

- widget-card-header
+ widget-card-title

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ekeu
Comment options

Answer selected by Ekeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants