🎨 Colors & Typography
Design tokens, color palettes, typography scales, and brand consistency tools
🎭 Component Demonstrations
Interactive showcase of all color and typography components
🎨 Colors & Design Tokens
Complete color system and design variables
Primary Colors
Status Colors
Gradient Patterns
Color Utilities
Background Colors
Text Colors
text-gray-900 - Primary text color
text-gray-700 - Secondary text color
text-gray-600 - Tertiary text color
text-gray-500 - Muted text color
text-orange-600 - Primary brand color
text-blue-600 - Link color
text-green-600 - Success color
text-red-600 - Error color
📝 Typography System
Complete typography scale and text utilities
Headings
Display Heading
text-6xl font-bold - Hero sections
Heading 1
text-5xl font-bold - Page titles
Heading 2
text-4xl font-bold - Section titles
Heading 3
text-3xl font-semibold - Subsections
Heading 4
text-2xl font-semibold - Components
Heading 5
text-xl font-medium - Small headings
Heading 6
text-lg font-medium - Tiny headings
Body Text
Lead paragraph text - Important introductory content that needs to stand out from regular body text.
text-xl text-gray-700 - Lead text
Regular body text - Standard paragraph content for articles, descriptions, and general content that users will read.
text-base text-gray-700 - Body text
Small text - Secondary information, captions, and supporting details that complement the main content.
text-sm text-gray-600 - Small text
Extra small text - Fine print, metadata, timestamps, and minimal supporting information.
text-xs text-gray-500 - Extra small
Text Utilities
Font Weights
font-light - Light weight text
font-normal - Normal weight text
font-medium - Medium weight text
font-semibold - Semibold weight text
font-bold - Bold weight text
Text Styles
italic - Italic text style
underline - Underlined text
line-through - Strikethrough text
uppercase - Uppercase text
LOWERCASE - Lowercase text
capitalize - Capitalized text
Text Alignment
text-left - Left aligned text content
text-center - Center aligned text content
text-right - Right aligned text content
text-justify - Justified text content that stretches to fill the available width by adjusting spacing between words
Line Height
leading-tight - Tight line height for compact text layouts and headings where space is at a premium.
leading-normal - Normal line height for regular body text and standard content that provides good readability.
leading-relaxed - Relaxed line height for improved readability in longer form content and articles.
leading-loose - Loose line height for maximum readability and breathing room in text content.
Code Typography
Inline code: console.log('Hello World')
Use font-mono for code elements
Code Block
function greetUser(name) {
return `Hello, ${name}! Welcome to Sparkles.`;
}
greetUser('Designer');
🎮 Interactive Typography Demo
See how typography responds to brand color changes
Preview
📝 Usage Examples
⚡ Performance & Accessibility
Design System Best Practices
- 📚 Typography accessibility: Font sizes meet WCAG 2.1 guidelines (16px minimum), high contrast ratios (4.5:1+), and optimal line height for readability
- 🎨 Color accessibility: WCAG AA compliant color combinations, color-blind friendly palettes, and semantic color usage for universal design
- ⚡ Performance considerations: Optimized font loading with font-display: swap, CSS custom properties for efficient theming, and minimal CSS output through PurgeCSS
- 🔧 Design system consistency: Centralized design tokens prevent style drift, systematic spacing scale ensures visual harmony, and maintainable architecture