tailwind-best-practices▌
mastra-ai/mastra · updated Apr 8, 2026
Styling guidelines for the Mastra Playground UI, containing 5 rules across 3 categories. Rules are prioritized by impact to guide automated refactoring and code generation. These rules ensure design system consistency, prevent token drift, and maintain component library integrity.
Tailwind Best Practices
Overview
Styling guidelines for the Mastra Playground UI, containing 5 rules across 3 categories. Rules are prioritized by impact to guide automated refactoring and code generation. These rules ensure design system consistency, prevent token drift, and maintain component library integrity.
Scope
packages/playground-uipackages/playground
When to Apply
Reference these guidelines when:
- Writing new React components with Tailwind styles
- Reviewing code for styling consistency
- Refactoring existing styled components
- Adding or modifying UI elements
Priority-Ordered Guidelines
Rules are prioritized by impact:
| Priority | Category | Impact |
|---|---|---|
| 1 | Component Usage | CRITICAL |
| 2 | Design Tokens | CRITICAL |
| 3 | ClassName Usage | HIGH |
Quick Reference
Critical Patterns (Apply First)
Component Usage:
- Use existing components from
@playground-ui/ds/components/(component-use-existing) - Never create new components in the
ds/folder
Design Tokens:
- Only use tokens from
tailwind.config.tsin@playground-ui(tokens-use-existing) - Never modify design tokens or
tailwind.config.ts(tokens-no-modification)
High-Impact Patterns
ClassName Usage:
- No arbitrary Tailwind values except
heightandwidth(classname-no-arbitrary) - No
classNameprop on DS components excepth-/w-onDialogContentandPopover(classname-no-ds-override)
References
Full documentation with code examples is available in:
references/tailwind-best-practices-reference.md- Complete guide with all patternsreferences/rules/- Individual rule files organized by category
To look up a specific pattern, grep the rules directory:
grep -l "component" references/rules/
grep -l "token" references/rules/
grep -l "className" references/rules/
Rule Categories in references/rules/
component-*- Component usage rules (1 rule)tokens-*- Design token rules (2 rules)classname-*- ClassName usage rules (2 rules)
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★40 reviews- ★★★★★Pratham Ware· Dec 28, 2024
tailwind-best-practices reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Dhruvi Jain· Dec 20, 2024
tailwind-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Mia Taylor· Dec 16, 2024
I recommend tailwind-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Layla Mehta· Dec 4, 2024
tailwind-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Benjamin Reddy· Nov 23, 2024
Useful defaults in tailwind-best-practices — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Oshnikdeep· Nov 11, 2024
tailwind-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Lucas Flores· Nov 7, 2024
Solid pick for teams standardizing on skills: tailwind-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Mia Choi· Oct 26, 2024
tailwind-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Arjun Rahman· Oct 14, 2024
I recommend tailwind-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Ganesh Mohane· Oct 2, 2024
Keeps context tight: tailwind-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 40