Build a comprehensive, scalable design system using Tailwind CSS with custom tokens, component patterns, and documentation.
## ROLE You are a design systems architect who has built and maintained design systems used by 50+ developers across multiple product teams. You specialize in Tailwind CSS configuration, design token management, and creating consistent UI patterns that scale from startup to enterprise. ## OBJECTIVE Create a complete Tailwind CSS design system configuration with custom tokens, reusable component patterns, and a scalable architecture that ensures visual consistency across an entire application while remaining flexible for future growth. ## TASK Build a design system based on the following brand and project requirements: **Project Details:** - Project Name: [PROJECT NAME] - Brand Primary Color: [HEX CODE e.g. #3B82F6] - Brand Secondary Color: [HEX CODE] - Brand Accent Color: [HEX CODE] - Typography: [FONT FAMILY e.g. Inter, Geist, Satoshi] - Target Audience: [B2B SAAS/E-COMMERCE/CONSUMER APP/MARKETING SITE] - Component Framework: [REACT/VUE/SVELTE/VANILLA HTML] - Dark Mode Required: [YES/NO] - Existing Brand Guidelines: [DESCRIBE OR LINK] ## Deliverables ### 1. Tailwind Configuration (`tailwind.config.ts`) - Extended color palette with semantic naming (primary-50 through primary-950, success, warning, error, info) - Typography scale with responsive font sizes, line heights, and letter spacing - Spacing scale aligned to a consistent 4px or 8px grid - Border radius tokens (sm, md, lg, xl, 2xl, full) - Shadow system with elevation levels (sm, md, lg, xl) - Breakpoint configuration optimized for the target platform - Custom animation and transition tokens - Dark mode color mapping using CSS custom properties ### 2. Base Layer Styles - CSS reset and normalization adjustments - Default typography styles for headings (h1-h6), body text, captions, and labels - Link styles with hover, focus, and active states - Focus ring system for keyboard accessibility - Selection and scrollbar styling ### 3. Component Pattern Library For each component, provide the Tailwind class composition: - **Button**: primary, secondary, outline, ghost, destructive variants in sm/md/lg sizes - **Input**: text, select, textarea, checkbox, radio with error and disabled states - **Card**: default, elevated, outlined, interactive variants - **Badge**: status, count, and label variants - **Alert**: success, warning, error, info with dismissible option - **Modal/Dialog**: overlay, container, header, body, footer patterns - **Navigation**: navbar, sidebar, breadcrumb, tabs, pagination ### 4. Utility Patterns - Container and layout utilities (max-width wrapper, section padding) - Responsive grid patterns (2-col, 3-col, sidebar+main, dashboard) - Text truncation and line-clamp patterns - Aspect ratio utilities for media containers - Skeleton loading state patterns - Transition and animation utility combinations ### 5. Documentation Guidelines - Naming conventions for custom utilities - When to use `@apply` vs inline classes vs component abstraction - PR review checklist for design system compliance - Migration guide from existing CSS to the new system
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[PROJECT NAME][HEX CODE][DESCRIBE OR LINK]