shadcn-tailwind

Build UIs with Tailwind CSS v4 and shadcn/ui using CSS-first configuration.

32|2|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/tenequm/skills --skill shadcn-tailwind
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-tailwind
Source: https://github.com/tenequm/skills/tree/main/skills/shadcn-tailwind
Command: npx skills add https://github.com/tenequm/skills --skill shadcn-tailwind

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of building modern, accessible, and responsive user interfaces using Tailwind CSS v4 and the shadcn/ui component library, ensuring consistency and best practices.

Core Features & Use Cases

  • Tailwind CSS v4 Configuration: Adapts to Tailwind v4's CSS-first configuration, migrating away from tailwind.config.js.
  • Semantic OKLCH Colors: Employs OKLCH color space for theming, dark mode, and accessibility.
  • Component Authoring: Demonstrates patterns for creating reusable components with class-variance-authority (CVA) and data-slot attributes.
  • Responsive Design & Container Queries: Implements mobile-first breakpoints and container query usage.
  • Accessibility Best Practices: Integrates focus visible states, screen reader only text, and disabled states.
  • Use Case: When starting a new React project and needing to quickly set up a visually consistent and accessible design system using the latest Tailwind CSS and shadcn/ui patterns.

Quick Start

Use the shadcn-tailwind skill to set up a new project with Tailwind CSS v4 and shadcn/ui components.

Frequently Asked Questions about shadcn-tailwind

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

FAQPage Schema
How do I configure Tailwind CSS v4 with shadcn/ui?

Tailwind CSS v4 with shadcn/ui is configured using a CSS-first approach, migrating away from `tailwind.config.js`. This skill provides patterns for setting up your project, implementing semantic OKLCH colors, and theming for dark mode directly within your CSS.

What is the best way to create reusable shadcn/ui components with Tailwind?

The best way to create reusable shadcn/ui components is using `class-variance-authority` (CVA) and `data-slot` attributes. This approach ensures consistent component variants while maintaining Tailwind's utility-first styling and accessibility best practices.

Does Tailwind v4 support OKLCH colors for theming and dark mode?

Yes, Tailwind v4 supports OKLCH colors for theming, dark mode, and accessibility. This skill employs the OKLCH color space to establish a visually consistent and accessible design system within your shadcn/ui components.

How do I implement responsive design and container queries in Tailwind CSS v4?

Responsive design in Tailwind CSS v4 is implemented using mobile-first breakpoints and container queries. This skill demonstrates how to apply these v4.2 features to build adaptive user interfaces with shadcn/ui.

Can I use shadcn/ui components without a JavaScript tailwind config file?

Yes, you can use shadcn/ui components without a JavaScript config file by adopting Tailwind v4's CSS-first configuration. This skill covers migrating away from `tailwind.config.js` to style components using utility-first CSS.

Why does my Tailwind v4 UI need logical properties and accessibility states?

Tailwind v4 UI needs logical properties and accessibility states to ensure consistent layouts across different languages and support users relying on keyboard or screen reader interactions. This skill integrates focus visible states, screen reader only text, and disabled states.