What problem does it solve?
This Skill helps developers configure and utilize Tailwind CSS v4, a modern CSS framework that emphasizes a CSS-first configuration approach, OKLCH color spaces, and efficient build processes.
Core Features & Use Cases
- Tailwind v4 Setup: Guides through installing and configuring the
@tailwindcss/vite plugin.
- Theming & Design Tokens: Demonstrates using the
@theme directive for defining colors, fonts, spacing, and animations with OKLCH.
- Dark Mode: Explains and provides examples for implementing media query, class-based, and attribute-based dark mode strategies.
- Use Case: A developer starting a new project with React and Vite can use this Skill to quickly set up Tailwind v4, define a custom color palette using OKLCH, and implement a user-selectable dark mode.
Quick Start
Configure Tailwind v4 in your Vite project by adding the @tailwindcss/vite plugin to your vite.config.ts file.