Skip to content
Discussion options

You must be logged in to vote

Consider checking:

  • Consider checking you've done a git init in the root folder of the project. Tailwind uses git ignore rules internally for automatic source detection. If you have a .gitignore (or equivalent) higher in the directory tree, this may cause Tailwind to ignore files. Initializing a git repo creates a boundary to this.
  • Tailwind has compiled since you added the classes.
  • String concatenation/interpolation is not used to build class names.
  • The class names would resolve to Tailwind classes that Tailwind would generate a rule for.

Otherwise, consider providing a project that reproduces the unexpected behavior.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kalcodes
Comment options

@wongjn
Comment options

wongjn Jun 1, 2026
Collaborator

Answer selected by kalcodes
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