Agent skill
modern-tailwind
Build clean, scalable UIs with Tailwind CSS using modern utilities and variants
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/modern-tailwind
SKILL.md
Tailwind CSS Best Practices
Core Principles
- Prefer utility classes over custom CSS for most styling
- Keep class lists readable by grouping: layout → spacing → typography → color → effects
- Use semantic HTML first; utilities should enhance, not replace structure
Variants & State
- Use
hover,focus-visible,disabled,dark, andmotion-safevariants where appropriate - Prefer
data-*andaria-*variants for stateful styling tied to DOM semantics - Use
groupandpeerfor parent/sibling state without extra JS
Responsive & Container Queries
- Start with the base styles, then add responsive variants (
sm,md,lg, ...) - Use container query utilities when layout depends on parent size
Theming & Customization
- Extend the theme in
tailwind.configinstead of ad-hoc custom classes - Use
@layerfor custom utilities/components when repetition is unavoidable - Avoid
@applyexcept for small, repeatable patterns
Maintainability
- Extract reusable UI into components instead of repeating large class strings
- Keep class names deterministic; avoid dynamic string concatenation when possible
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?