tailwind-errors-dynamic-classes
Installation
SKILL.md
Tailwind Dynamic Class Names : The #1 Reported Issue
If a class only exists in source code as a fragment (bg-${color}-500,
text-{{variant}}-600, server JSON, CMS attributes), Tailwind never
generates the CSS rule. The DOM gets the class attribute, the
stylesheet does not get the rule, the element renders unstyled.
Companion skills :
tailwind-impl-config-v4:@source inlinedirective in depthtailwind-impl-config-v3: v3safelistconfigurationtailwind-errors-purge-issues: adjacent purge-detection failurestailwind-core-design-system: prop-to-class mapping pattern
The Rule
Tailwind treats all source files as plain text and does NOT parse them as code. A class must exist as a literal complete token in some scanned file to be generated.