Skip to main content Skip to navigation Skip to search Skip to footer

🎨 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

Primary
#EA580C
Secondary
#1F2937
Accent
#2563EB
Highlight
#9333EA

Status Colors

Success
#16A34A
Warning
#EAB308
Error
#DC2626
Info
#3B82F6

Gradient Patterns

Primary Gradient
from-orange-500 to-red-600
Premium Gradient
from-purple-600 to-blue-600
Warm Gradient
from-pink-500 to-orange-400
Cool Gradient
from-cyan-500 to-blue-600

Color Utilities

Background Colors

bg-gray-100
bg-gray-200
bg-gray-300
bg-gray-400

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

Classes:

📝 Usage Examples

.sparkles-primary { color: var(--color-orange-600); }
.sparkles-bg-brand { background-color: var(--color-orange-600); }
.sparkles-gradient { background: linear-gradient(to right, var(--color-orange-500), var(--color-red-600)); }
<h1 class="text-6xl font-bold text-gray-900">Display Heading</h1>
<p class="text-xl text-gray-700 leading-relaxed">Lead paragraph</p>
<p class="text-base text-gray-700">Body text content</p>
<div class="text-orange-600 bg-orange-50 border border-orange-200">
  Brand-consistent component styling
</div>

⚡ 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