mcpField
M
modern-tailwind

modern-tailwind

github.com/academindDesign & UI1149 installsUpdated 40w ago
Repository

About modern-tailwind

A Tailwind CSS best-practices skill for developers building and maintaining interfaces. It covers utility organization, state variants, responsive layouts, theming, and reusable components.

Key features

  1. 01Organizes utility classes by purpose
  2. 02Uses semantic state and accessibility variants
  3. 03Applies responsive and container query utilities
  4. 04Guides theme extension and custom layers
  5. 05Recommends reusable components over repeated classes

Use cases

  1. 01Style responsive pages with Tailwind utilities
  2. 02Represent interactive states without extra JavaScript
  3. 03Maintain consistent themes and reusable UI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/academind/ai-config --skill modern-tailwind

After installing, type/modern-tailwindin Claude Code to confirm it loaded.

Details

From the project README

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, and motion-safe variants where appropriate
  • Prefer data-* and aria-* variants for stateful styling tied to DOM semantics
  • Use group and peer for 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.config instead of ad-hoc custom classes
  • Use @layer for custom utilities/components when repetition is unavoidable
  • Avoid @apply except 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

Comments

Markdown supported