Skill / UI / Tailwind
Use existing components first
Start from the local design system or registry primitive before creating a new styled element.
Goal
Preserve visual consistency and accessibility by reusing the closest existing component contract.
Styling rules for Tailwind v4, token discipline, component reuse, and className boundaries.
Checks
1Search existing Refined UI primitives, hooks, and examples before adding a new surface.
2Use variants or composition slots when the existing component already owns the behavior.
3Create a new primitive only when the required behavior or anatomy is genuinely missing.
Avoid
1Duplicating a button, menu, select, dialog, sidebar, or scroll behavior with raw divs.
2Adding a component to a shared design-system folder without an explicit shared ownership reason.
Source
Imported as local Refined UI skill guidance, with this repo owning the final wording.
Mastra tailwind-v4
../mastra/.claude/skills/tailwind-v4