modern-tailwind
15
总安装量
11
周安装量
#22348
全站排名
安装命令
npx skills add https://github.com/academind/ai-config --skill modern-tailwind
Agent 安装分布
claude-code
8
opencode
8
gemini-cli
7
codex
7
windsurf
6
antigravity
6
Skill 文档
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