tailwind-v4

Configure Tailwind CSS v4 with Vite and the @theme directive.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/javierhbr/random-poc --skill tailwind-v4-javierhbr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4
Source: https://github.com/javierhbr/random-poc/tree/main/custom-skills/beagle-main/plugins/beagle-react/skills/tailwind-v4
Command: npx skills add https://github.com/javierhbr/random-poc --skill tailwind-v4-javierhbr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers set up and configure Tailwind CSS v4, focusing on its modern CSS-first approach, OKLCH colors, and design token integration.

Core Features & Use Cases

  • Tailwind v4 Setup: Guides through integrating Tailwind v4 with Vite.
  • Theming & Design Tokens: Demonstrates using the @theme directive for colors, spacing, fonts, and animations.
  • OKLCH Colors: Explains and utilizes the OKLCH color space for perceptual uniformity.
  • Dark Mode: Covers various strategies for implementing dark mode.
  • Use Case: Quickly set up a new project with Tailwind v4, define a custom color palette using OKLCH, and configure a responsive design system with semantic tokens.

Quick Start

Configure Tailwind CSS v4 in your Vite project by following the setup instructions.

Frequently Asked Questions about tailwind-v4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Tailwind CSS v4 with Vite?

Setting up Tailwind CSS v4 with Vite involves integrating the framework using modern build tool configurations. This Skill provides step-by-step instructions to configure your Vite project using a CSS-first approach.

What is the @theme directive in Tailwind v4 used for?

The @theme directive in Tailwind v4 is used for managing theme variables like colors, spacing, fonts, and animations. It enables defining a custom design system with semantic tokens directly within your CSS.

How does OKLCH color space work in Tailwind v4?

OKLCH color space in Tailwind v4 provides perceptual uniformity for your color palette. It allows you to define and utilize colors that appear visually consistent across different hues and lightness levels.

Can I implement dark mode using Tailwind CSS v4?

Yes, you can implement dark mode using Tailwind CSS v4. This Skill covers various strategies for configuring dark mode within your design system, ensuring your theme variables adapt correctly.

Does Tailwind v4 require modern CSS knowledge to configure?

Configuring Tailwind v4 requires an understanding of modern CSS features and build tool configurations. The framework relies on a CSS-first approach, meaning you manage design tokens directly in CSS rather than JavaScript.