code-architecture-tailwind-v4-best-practices

Community

Master Tailwind CSS v4 component patterns.

Authordavidsteinberger
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear guidance on the best practices for structuring and styling components using Tailwind CSS v4, helping developers adopt its CSS-first approach effectively.

Core Features & Use Cases

  • CSS-First Configuration: Understand Tailwind v4's new configuration model using @theme.
  • Abstraction Strategies: Learn when to use pure utilities, CVA, or tailwind-variants for component variants.
  • State Management: Implement state management using native data attributes.
  • Use Case: When building a new component library with Tailwind v4, use this Skill to decide the optimal way to handle variants and ensure accessibility.

Quick Start

Follow the guidance in this Skill to implement a button component using Tailwind v4 best practices.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-architecture-tailwind-v4-best-practices
Download link: https://github.com/davidsteinberger/dotfiles/archive/main.zip#code-architecture-tailwind-v4-best-practices

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.