tailwind-config

Configure Tailwind CSS design tokens and theme extensions across monorepo packages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps update Tailwind configurations across packages and apps to maintain a consistent design system.

Core Features & Use Cases

  • Unified color tokens and typography scales.
  • Theme extensions for brand colors and spacing.
  • Config extension across UI packages and apps.

Quick Start

Extend the app Tailwind config to include a new brand color and typography scale.

Frequently Asked Questions about tailwind-config

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

FAQPage Schema
How do I configure Tailwind CSS to use custom design tokens across multiple packages?

Tailwind configuration centralizes design tokens by extending the base config with custom colors, typography, spacing, and theme definitions. Create a shared base tailwind.config.ts file, then extend it in app-specific configs to apply consistent tokens across UI, web, and admin packages in your monorepo.

Can I use the same Tailwind config across different packages in a monorepo?

Yes. Define a shared base configuration with core design tokens, then create app-specific tailwind.config.ts files that extend it. This approach maintains consistency while allowing individual packages to add their own theme extensions and custom tokens.

How do I add custom colors and typography scales to my Tailwind configuration?

Extend the theme section in your tailwind.config.ts to include custom brand colors in the colors object and typography scales in the fontSize and fontFamily sections. These tokens automatically become available as utility classes throughout your project.

What's the best way to set up CSS variables and dark mode in Tailwind?

Configure Tailwind's darkMode option and define CSS variables in the theme extension. Use content paths to specify which files contain class names, and configure dark mode handling—either 'class' or 'media'—to control how dark styles are applied across your design system.

Can I use Tailwind plugins in a monorepo configuration?

Yes. Add Tailwind plugins to the plugins array in your tailwind.config.ts. Plugins integrate custom utilities and components into your theme, supporting animations, design tokens, and other extensions across all packages that reference the shared or extended config.

How do I debug Tailwind configuration issues across multiple apps?

Tailwind configuration debugging involves verifying content paths match your file structure, checking that theme extensions are properly nested, and confirming plugin integrations. Validate each app-specific config references the correct base config and that shared tokens are accessible in all packages.