Real-Time Theme Preview Sandbox

Design and test your theme system with our interactive preview sandbox. Customize colors, typography, and spacing while seeing real-time changes across different components and layouts.

Theme Configuration

Customize your theme settings and see real-time changes in the preview

Typography Scale

Level 4: 39px - The quick brown fox jumps over the lazy dog

Level 3: 31px - The quick brown fox jumps over the lazy dog

Level 2: 25px - The quick brown fox jumps over the lazy dog

Level 1: 20px - The quick brown fox jumps over the lazy dog

Level 0: 16px - The quick brown fox jumps over the lazy dog

Color System

primary

#0284c7

secondary

#7c3aed

accent

#f59e0b

background

#ffffff

foreground

#020617

muted

#f1f5f9

mutedForeground

#64748b

border

#e2e8f0

success

#22c55e

warning

#f59e0b

destructive

#ef4444

Component Preview

Card Example

This is a sample card component

Content with base typography and spacing

Default Badge
Secondary Badge
Destructive Badge

Spacing Scale

Level 0: 4px

Level 1: 8px

Level 2: 16px

Level 3: 32px

Level 4: 64px

Theme System Best Practices

  • Use a consistent color palette with clear hierarchy
  • Define semantic colors for different states and actions
  • Create a modular spacing scale
  • Maintain consistent typography ratios
  • Test themes in both light and dark modes
  • Consider accessibility in all design decisions

Implementation Tips

  • Use CSS custom properties for theme values
  • Create reusable component variants
  • Document color usage and patterns
  • Test with different content lengths
  • Validate contrast ratios
  • Consider color blindness and other visual impairments

Frequently Asked Questions