tailwind-best-practices

Enforce Tailwind CSS best practices for design-system alignment in Mastra Playground UI.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill tailwind-best-practices-bingeli1379
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-best-practices
Source: https://github.com/bingeli1379/eli-claude-marketplace/tree/main/plugins/eureka-sdd/skills/tailwind-best-practices
Command: npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill tailwind-best-practices-bingeli1379

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Tailwind best-practices guide solves design drift by codifying how to apply Tailwind in Mastra Playground UI, ensuring consistent tokens, spacing, and component styling.

Core Features & Use Cases

  • Defines a priority-driven set of Tailwind usage rules for component styling, tokens, and className discipline.
  • Provides references and examples to guide writing, reviewing, and refactoring UI code in packages/playground-ui and packages/playground.
  • Use case: when updating a component's styles, consult the guidelines to ensure token-based colors, spacing, and typography remain consistent.

Quick Start

Audit the current UI codebase against the Tailwind Best Practices guidelines to align styling with design tokens.

Frequently Asked Questions about tailwind-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Tailwind design token consistency when refactoring UI components?

To enforce Tailwind design token consistency during refactoring, apply a priority-driven rule set that mandates token-based colors, spacing, and typography while prohibiting arbitrary values in className attributes.

What is the best way to prevent design drift in Tailwind CSS?

Preventing design drift in Tailwind CSS requires codifying usage rules for component styling and className discipline, ensuring all styling updates align with documented design system tokens and reference materials.

Can I use arbitrary values for spacing and colors in Tailwind component styling?

No, arbitrary values for spacing and colors are not allowed. Safe className usage requires strict adherence to token-based colors, spacing, and typography to maintain design-system alignment across the UI.

How do I audit an existing codebase against Tailwind best practices?

Audit the current UI codebase by reviewing component styling against documented Tailwind best practices guidelines, checking for token-based color usage, consistent spacing, and safe className implementation without arbitrary values.

Does this Tailwind refactoring guide apply to packages outside of playground-ui?

The guidelines specifically target writing, reviewing, and refactoring styling code across packages/playground-ui and packages/playground, ensuring token consistency and safe className discipline within these defined scopes.