Introduction
Theme Gen provides an intuitive workflow for creating accessible color themes. This guide walks you through the complete process of creating a theme from scratch.Theme Creation Workflow
Start with a Base Color
Begin by clicking on any of the five main color buttons in the toolbar:
- Text - Primary text color (requires 7:1 contrast with background)
- Background - Main background color
- Primary - Primary action/brand color (requires 3:1 contrast with background)
- Container - Container/card background color
- Accent - Secondary accent color (requires 3:1 contrast with container and background)
- Drag the gradient selector to choose hue and saturation
- Adjust the lightness slider
- Enter hex values directly
- View real-time contrast ratios
Adjust Colors with Visual Feedback
As you modify colors, Theme Gen provides instant visual feedback:Contrast Indicators
Each color button displays a badge showing whether it meets accessibility requirements:
- ✓ (checkmark) - Passes the required contrast ratio
- ✗ (cross) - Below the required contrast ratio
Lock Colors You Want to Keep
While experimenting with themes, you can lock specific colors to preserve them:
- Hover over any color button
- Click the lock icon in the top-right corner
- Locked colors won’t change when using Smart Shuffle or toggling modes
- You have brand colors that must remain consistent
- You’ve found the perfect accent color
- Building variations of an existing theme
Use Smart Shuffle for Inspiration
The Smart Shuffle feature generates accessible color palettes automatically:Harmony Modes
Click the dropdown arrow next to the shuffle button to choose a color harmony:
- Complementary - Uses colors opposite on the color wheel for high contrast
- Monochromatic - Uses variations of the same hue for subtle, cohesive themes
Toggle Between Light and Dark Modes
Create both light and dark variants with one click:
- Click the sun/moon icon in the toolbar
- Theme Gen automatically adapts your colors for the opposite mode
- Locked colors are preserved during mode switching
- Each mode maintains proper contrast ratios
Color Derivation
How Derived Colors Work
How Derived Colors Work
Theme Gen automatically calculates several derived colors to maintain consistency:Border and Muted Colors
These are calculated by mixing text and background colors in OKLCH color space:On-Colors (Text colors for colored backgrounds)
Automatically determined to ensure 4.5:1 contrast:This ensures that text on primary buttons, accent badges, and colored containers is always readable.
State Colors (Success, Error, Warning)
State Colors (Success, Error, Warning)
State colors use fixed hues but match the lightness of your primary color:This keeps state colors consistent across themes while ensuring they’re accessible.
- Success - Hue 155° (green)
- Error - Hue 25° (red/orange)
- Warning - Hue 70° (yellow)
Tips for Great Themes
Use the Preview ComponentsScroll through the page to see how your theme looks in:
- Hero sections with large text
- Cards and containers
- Form inputs and buttons
- Data visualizations
- Mobile app interfaces
Brand Color IntegrationIf you have existing brand colors:
- Set your primary or accent to your brand color
- Lock that color
- Use Smart Shuffle to generate complementary colors
- The algorithm will derive palettes that work with your brand
Common Workflows
Common Workflows
Starting from Scratch
- Click Smart Shuffle a few times to find an interesting palette
- Lock colors you like
- Manually adjust the ones you don’t
- Toggle to dark mode and repeat
- Click Primary and enter your brand color
- Lock the primary color
- Use Smart Shuffle with Complementary harmony
- Adjust background and text to your preference
- Start with an existing theme
- Lock most colors
- Change one or two unlocked colors
- Use Smart Shuffle with Monochromatic harmony
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Z / Cmd+Z | Undo last change |
Ctrl+Shift+Z / Cmd+Shift+Z | Redo change |
Ctrl+Y / Cmd+Y | Redo change (alternative) |
Next Steps
Understanding Accessibility
Learn about WCAG standards and contrast requirements
Exporting Themes
Export your theme in multiple formats for your project