Skip to content

Cannot apply unknown utility class button #18299

Answered by wongjn
0x0bit asked this question in Help

You must be logged in to vote

Consider checking:

  • The original .button rule is registered into Tailwind with @utility:
    @utility button {
      …
    }
  • You are using @reference if you are using @apply in some other separated CSS file:
    @reference "../path/to/styles.css";
    
    element {
      @apply button;
    }

Otherwise, consider providing a git repo that reproduces the unexpected behavior.

Replies: 2 comments 2 replies

You must be logged in to vote
1 reply
@0x0bit

Answer selected by 0x0bit

You must be logged in to vote
1 reply
@wongjn

wongjn Jun 13, 2025
Collaborator

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
Converted from issue

This discussion was converted from issue #18298 on June 12, 2025 14:28.