Skill / UI / Tailwind
Token discipline
Use established design tokens and local CSS variables before reaching for one-off values.
Goal
Keep the visual language themeable and predictable by styling through approved tokens.
Styling rules for Tailwind v4, token discipline, component reuse, and className boundaries.
Checks
1Prefer existing color, spacing, radius, shadow, and typography tokens.
2Introduce local CSS variables only when a component needs a named internal scale.
3Keep arbitrary values exceptional and constrained to precise dimensions when no token fits.
Avoid
1Changing shared Tailwind tokens as part of a narrow component task.
2Sprinkling arbitrary color, shadow, spacing, or radius values across product code.
Source
Imported as local Refined UI skill guidance, with this repo owning the final wording.
Mastra tailwind-v4
../mastra/.claude/skills/tailwind-v4