Skip to content
Discussion options

You must be logged in to vote

You cannot. Tailwind purges unused classes during build time. You have 2 options (I prefer the first one) that I can think of:

  1. Install Tailwind in your tool's dependencies and add a prefix unique to your tool's package name (see the prefix documentation). Then, use Tailwind classes by prepending the given prefix.
  2. Setup an empty Tailwind config and use the safelist property to list classes that should be part of the final build no matter what.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Comment options

You must be logged in to vote
3 replies
@piljac1
Comment options

@jimarick
Comment options

@piljac1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants