Skip to content

Tailwind CSS Colors Not Applying Dynamically #15472

Answered by eric-mxrtin
krishp4telll asked this question in Help
Discussion options

You must be logged in to vote

Tailwind’s default setup doesn’t recognize dynamic class names like text-${color}-600 because it relies on class detection during build. To fix this, you can safeguard all potential colors by explicitly defining them in your code or in your tailwind.config.js file.

Replies: 1 comment 1 reply

Comment options

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

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