tailwind-best-practices
Tailwind CSS v4 guidance: utility-first patterns, @theme directive for color/spacing/font config, @source for content paths, dark mode, responsive design, oklch colors, custom variants, v4 vs v3 differences. Use when user writes Tailwind utility classes, configures @theme or @source in CSS, asks about v4 syntax, or styles components.
Works with
--- name: tailwind-best-practices description: Tailwind CSS v4 guidance: utility-first patterns, @theme directive for color/spacing/font config, @source for content paths, dark mode, responsive design, oklch colors, custom variants, v4 vs v3 differences. Use when user writes Tailwind utility classes, configures @theme or @source in CSS, asks about v4 syntax, or styles components. license: MIT --- # Tailwind CSS v4 Best Practices You have access to up-to-date Tailwind CSS documentation via MCP tools. Use these tools to provide accurate, current information. ## Available MCP Tools ### `mcp__tailwindcss__search_tailwind_docs` Use when user asks about any Tailwind feature, utility, or concept. ### `mcp__tailwindcss__get_tailwind_utilities` Use when user needs utility classes for a specific CSS property. ### `mcp__tailwindcss__get_tailwind_colors` Use when user asks about colors, palettes, or color-related utilities. ### `mcp__tailwindcss__convert_css_to_tailwind` Use when user has CSS they want to convert to Tailwind utility classes. ### `mcp__tailwindcss__generate_component_template` Use when user needs a component template with Tailwind styling. --- ## Reference Files Read the relevant file for detailed patterns, code examples, and documentation URLs: ### `docs-urls.md` — Official Documentation URLs URL tables organized by category (Getting Started, Core Concepts, Layout, Spacing, Sizing, Typography, Backgrounds & Borders, Effects, Transforms & Animation, Interactivity). Use with WebFetch when MCP tools are unavailable. ### `v4-syntax.md` — Tailwind CSS v4 Core Syntax **CRITICAL**: v4 changed significantly from v3. Covers `@import "tailwindcss"`, `@theme` directive for CSS-based configuration (colors, fonts, spacing), `@source` for detection, `@variant dark` for dark mode, `@layer components` for extraction, `@plugin` for plugins. ### `best-practices.md` — Best Practices Class ordering convention (layout → spacing → sizing → typography → colors → effects → interactive), responsive design (mobile-first, breakpoint reference), component extraction rule (3+ times), theme variables over hardcoded values, accessibility (focus-visible, sr-only, contrast). ### `anti-patterns.md` — v4 Anti-Patterns v3 → v4 migration table (tailwind.config.js → @theme, @tailwind → @import, etc.), common mistakes (inline styles, px values, duplicate/conflicting utilities). ### `quick-reference.md` — Quick Reference Response guidelines for helping with Tailwind, example response flow, spacing scale table, common utility patterns (centered content, card, responsive grid, truncation, gradient, fixed header). --- *For the latest documentation, always refer to https://tailwindcss.com/docs*
More Accessibility skills
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.
ui-ux-pro-max
nextlevelbuilder/ui-ux-pro-max-skill
UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.

