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
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
Related skills
More from neversight/skills_feed
ai-image-generation
|
7react-best-practices
Provides React patterns for hooks, effects, refs, and component design. Covers escape hatches, anti-patterns, and correct effect usage. Must use when reading or writing React components (.tsx, .jsx files with React imports).
7ui-designer
Use when user needs visual UI design, interface creation, component systems, design systems, interaction patterns, or accessibility-focused user interfaces.
7python-env
Fast Python environment management with uv (10-100x faster than pip). Triggers on: uv, venv, pip, pyproject, python environment, install package, dependencies.
7typescript-best-practices
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.
6ai-marketing-videos
|
6