tailwind-theme-builder

Centralize Tailwind v4 and shadcn/ui theming with CSS variables and a ThemeProvider.

Updated Jan 7, 2024
One-click install
npx skills add https://github.com/angelriera-dev/angelriera-dev.github.io --skill tailwind-theme-builder-angelriera-dev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tailwind-theme-builder
Source: https://github.com/angelriera-dev/angelriera-dev.github.io/tree/main/.agents/skills/tailwind-theme-builder
Command: npx skills add https://github.com/angelriera-dev/angelriera-dev.github.io --skill tailwind-theme-builder-angelriera-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Tailwind v4 theming with shadcn/ui can be complex and error-prone when configuring color tokens, dark mode, and migrations across projects.

Core Features & Use Cases

  • Four-step theming architecture: root CSS variables, @theme inline mappings, base styles, and a theme provider for dark mode.
  • Quick project bootstrap: hands-off setup for new React apps using Tailwind v4 + shadcn/ui theming.
  • Migration and debugging assistance: helps fix color conflicts, dark mode issues, and v3-to-v4 transitions.

Quick Start

Create a themed Tailwind v4 + shadcn/ui setup in seconds by running the builder to initialize variables, enable dark mode, and verify configuration.

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 theming with shadcn/ui dark mode?▼

To set up Tailwind v4 theming with shadcn/ui dark mode, centralize your configuration using CSS variables mapped through @theme inline and a ThemeProvider. This four-step architecture ensures consistent dark mode across React apps using a Vite-based setup.

What is the best way to migrate Tailwind CSS v3 themes to v4?▼

Migrating Tailwind CSS v3 themes to v4 involves transitioning your color tokens to CSS variables and applying the @theme inline directive. This process resolves v3-to-v4 migration conflicts and ensures your new React project adheres to the required theming structure.

Why does my shadcn/ui dark mode configuration have color conflicts?▼

shadcn/ui dark mode color conflicts typically occur when CSS variables are not properly centralized or mapped via @theme inline. Debugging requires enforcing the four-step theming pattern and verifying your Vite-based ThemeProvider configuration to ensure consistent token application.

Can I use this theming approach for a new React project with Vite?▼

Yes, this approach quickly bootstraps new React projects using Vite by initializing root CSS variables, enabling dark mode, and verifying the configuration. It provides a hands-off setup for Tailwind v4 and shadcn/ui theming in seconds.

Does Tailwind v4 require a ThemeProvider for dark mode?▼

Tailwind v4 relies on a ThemeProvider to ensure consistent dark mode behavior across applications. Centralizing theming with CSS variables and a dark-mode provider enforces the required architecture and prevents color and theming conflicts across multiple codebases.

What are the limitations of using CSS variables for Tailwind v4 theming?▼

Using CSS variables for Tailwind v4 theming requires strict adherence to the four-step pattern and a Vite-based setup. If the @theme inline mappings are not configured correctly, you may encounter persistent color conflicts and dark mode issues across your codebase.