tailwind-theme-builder

Configure Tailwind v4 and shadcn/ui theming with CSS variables and dark mode.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/daveio/syn-horse --skill tailwind-theme-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-theme-builder
Source: https://github.com/daveio/syn-horse/tree/main/.agents/skills/tailwind-theme-builder
Command: npx skills add https://github.com/daveio/syn-horse --skill tailwind-theme-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Tailwind v4 + shadcn/ui theming can be complex to configure, especially around dark mode, semantic color tokens, and consistent component styling across projects.

Core Features & Use Cases

  • Semantic color variable mapping via @theme inline to generate utilities like bg- and text- tokens that respond to theme changes.
  • Dark mode support through a ThemeProvider and CSS variable overrides without per-component dark: variants.
  • Four-step architecture pattern (root CSS vars, dark overrides, mapping, and base styles) for robust theming in React apps.
  • Ready-to-integrate assets and reference docs to accelerate adoption in team projects.

Quick Start

Run Tailwind Theme Builder to initialize a themed Tailwind v4 + shadcn/ui setup in your React project.

Frequently Asked Questions about tailwind-theme-builder

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

FAQPage Schema
How do I set up Tailwind v4 and shadcn/ui theming with dark mode in a Vite project?

Configure Tailwind v4 and shadcn/ui theming by mapping semantic color tokens via @theme inline and wrapping your React app with a ThemeProvider to handle dark mode overrides without using per-component dark: variants.

What is the best way to handle dark mode in Tailwind v4 without adding dark: variants to every component?

The best way to handle dark mode is by overriding CSS variables at the root level and wrapping your app in a ThemeProvider. This approach automatically propagates dark theme changes to your semantic tokens, eliminating the need for per-component dark: variants.

How does the @theme inline mapping work for generating semantic color utilities in Tailwind v4?

The @theme inline mapping works by linking your CSS variables to Tailwind's utility generation system. It translates defined root CSS variables into semantic bg- and text- tokens that dynamically respond to theme changes across your React application.

Does this Tailwind theming approach work for React projects built with Vite?

Yes, this Tailwind theming approach is specifically designed for React projects using Vite. It implements a scalable CSS variable theming pattern tailored to the Vite build environment and includes steps to install dependencies and configure Tailwind correctly.

What steps are required to configure semantic CSS variables for Tailwind v4?

Configuring semantic CSS variables requires a four-step architecture: defining root CSS variables, adding dark mode overrides, mapping variables with @theme inline, and setting base styles. This process generates responsive utilities and integrates the ThemeProvider.