npx skills add ...
npx skills add mastra-ai/mastra --skill tailwind-best-practices
npx skills add mastra-ai/mastra --skill tailwind-best-practices
Tailwind CSS styling guidelines for Mastra Playground UI. This skill should be used when writing, reviewing, or refactoring styling code in packages/playground-ui and packages/playground to ensure design system consistency. Triggers on tasks involving Tailwind classes, component styling, or design tokens.
Routing and priority guide for Mastra Playground UI styling, containing 5 rules across 3 categories. Rule files hold the detailed explanations, examples, and review guidance that ensure design system consistency, prevent token drift, and maintain component library integrity.
packages/playground-uipackages/playgroundReference these guidelines when:
Rules are prioritized by impact:
| Priority | Category | Impact |
|---|---|---|
| 1 | Component Usage | CRITICAL |
| 2 | Design Tokens | CRITICAL |
| 3 | ClassName Usage | HIGH |
Component Usage:
@playground-ui/ds/components/ (component-use-existing)ds/ folderDesign Tokens:
tailwind.config.ts in @playground-ui (tokens-use-existing)tailwind.config.ts (tokens-no-modification)ClassName Usage:
height and width (classname-no-arbitrary)className prop on DS components except h-/w- on DialogContent and Popover (classname-no-ds-override)Rule files are the canonical source for detailed guidance and examples:
references/tailwind-best-practices-reference.md - Rule catalog with category order and rule-file pathsreferences/rules/ - Canonical individual rule files organized by categoryLoad only the relevant rule file when implementing or reviewing a specific styling rule. Use the catalog to choose the right rule without loading every example.
To look up a specific pattern, grep the rules directory:
references/rules/component-* - Component usage rules (1 rule)tokens-* - Design token rules (2 rules)classname-* - ClassName usage rules (2 rules)