modern-tailwind
Installation
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
Related skills
More from academind/ai-config
web-security
Enforce web security and avoid security vulnerabilities
114modern-best-practice-react-components
Build clean, modern React components that apply common best practices and avoid common pitfalls like unnecessary state management or useEffect usage
73modern-best-practice-nextjs
Build modern Next.js apps with App Router and best practices
52clean-typescript
Write clean, efficient TypeScript code that follows common best practices
46use-modern-browser-apis
Utilize built-in browser APIs (like Popover API, View Transitions etc) instead of building features manually via JavaScript
28modern-accessible-html-jsx
Write clean, modern, and highly accessible HTML & JSX code, using semantically correct elements and attributes
27