What problem does it solve?
This Skill simplifies and modernizes CSS development by leveraging Tailwind CSS v4's new CSS-first configuration, advanced features like container queries and native CSS variables, and efficient Vite integration.
Core Features & Use Cases
- CSS-First Configuration: Manage all styling directly within CSS using directives like
@theme, @source, and @utility.
- Modern CSS Features: Utilize container queries, native CSS variables (including oklch),
:has() pseudo-class, and native CSS nesting.
- Vite Integration: Seamlessly integrate Tailwind CSS v4 into Vite projects for optimized builds.
- Use Case: Configure your entire design system, including colors, typography, and spacing, using the
@theme directive in your main CSS file, and apply responsive styles using container queries for component-level adaptability.
Quick Start
Configure Tailwind CSS v4 in your Vite project by installing the necessary packages and updating your vite.config.ts and index.css files.