Skip to main content
The Design System lets you customize your project’s colors, typography, and effects through a visual editor—no code required.

How It Works

HelloLeo projects use CSS variables as design tokens. When Leo creates a project, it sets up a centralized design system in src/styles.css with variables for:
  • Colors - Primary, secondary, accent, background, text colors (written in oklch)
  • Typography - Body and heading fonts
  • Effects - Border radius, density, shadows
The visual editor reads these variables and lets you modify them in real-time.
Newer projects keep their design tokens in src/styles.css. Older projects use src/index.css instead—the editor auto-detects which file your project uses (it looks for styles.css first, then index.css) and writes changes back in whatever format that file already uses. Everything below works the same either way.

Using the Design Editor

Accessing the Editor

  1. Open your project in HelloLeo
  2. Click Settings in the top navigation bar
  3. Select Design from the settings menu

Import from URL

Click Import from URL, enter a website address and click Fetch. HelloLeo reads that site’s brand kit (colors, fonts and logo). Click Apply to theme to load it into the editor, then Save. The detected logo is saved to your project’s assets.

Colors Tab

Edit your project’s color palette:
  • Primary - Main brand color for buttons, links, and accents
  • Secondary - Supporting color for less prominent elements
  • Accent - Highlight color for special elements
  • Background/Foreground - Page and text colors
  • Destructive/Success/Warning - Semantic colors for states
Click any color swatch to open the color picker. Changes preview instantly in the live preview. The picker uses your system color chooser, then saves the value back in the token’s original format (oklch, and on legacy projects HSL or hex)—including any transparency, like oklch(1 0 0 / 10%).

Typography Tab

Choose fonts for your project:
  • Body Font - Used for paragraphs and general text
  • Heading Font - Used for titles and headings
Select from Google Fonts organized by category (Sans Serif, Serif, Display, Monospace). Fonts load automatically in the preview. When you save, the editor updates the Google Fonts <link> in your index.html so the new fonts also load in the published app.

Effects Tab

Adjust visual effects:
  • Border Radius - Control corner rounding, from Square to Rounded
  • Density - Spacing throughout the UI: Compact, Default or Comfortable
  • Shadow Intensity - Adjust all shadow levels at once, from None to Strong

Saving Changes

Click Save to apply your modifications to the project, or Reset to discard them. Color and effect tokens are written to your project’s styles, and the font <link> in index.html is updated to match. Changes hot-reload automatically.

Light & Dark Mode

Use the toggle at the top of the editor to switch between editing:
  • Light mode colors (default theme)
  • Dark mode colors (when user enables dark mode)
Both modes can have independent color values, and each is edited separately. Behind the scenes your project stores the dark palette in two places—an explicit .dark block and an OS-default @media (prefers-color-scheme: dark) block—and the editor keeps both in sync automatically when you save, so dark mode looks the same whether it’s toggled manually or set by the device.

Troubleshooting

”No Color Tokens Found” Message

This means your project doesn’t have the HelloLeo Design System token structure yet—there are no color tokens for the editor to read. Solution: Click the “Ask Leo to Setup Design System” button, or copy this prompt and send it to Leo:

“No Font Variables Found” Message

This means your project’s @theme inline block doesn’t define font tokens, so there’s nothing for the Typography tab to edit. Solution: Click the “Ask Leo to Setup Design System” button, or send Leo this prompt:

Colors/Fonts Not Applying

If changes don’t appear in the preview:
  1. Check the CSS structure - The design system needs the raw oklch color tokens in :root, .dark, and the @media (prefers-color-scheme: dark) block
  2. Verify the @theme inline mapping - Tokens must be mapped to utilities via --color-*: var(--*)
  3. Don’t hardcode colors - Components should use utilities like bg-primary, never hardcoded hex values
Fix prompt to share with Leo:

Fonts Not Loading

If fonts don’t appear in the published app:
  1. Google Fonts <link> - index.html <head> must contain a Google Fonts <link>; the editor rewrites that existing link on save but never creates one, so older projects may need it added once
  2. Font token value - Tokens must be in format 'Font Name', fallback and live in the @theme inline block
Fix prompt:

Shadows Not Working

If shadow changes don’t apply:
  1. CSS variables - Project needs --shadow-sm, --shadow, --shadow-md, --shadow-lg, --shadow-xl, --shadow-2xl
  2. Theme mapping - These must be mapped through the @theme inline block so the shadow utilities pick them up
Fix prompt:

Design System Structure

For reference, here’s what the HelloLeo Design System looks like. Raw tokens are defined three times—:root (light), .dark (explicit dark), and the @media (prefers-color-scheme: dark) block (OS default)—and then mapped to Tailwind utilities in @theme inline. You and Leo edit the raw token (e.g. --primary), never the --color-* mapping, and never hardcode hex in components.

Design tokens (src/styles.css)

The body font token is --font-sans; the heading font token is --font-display (older projects use --font-heading). Both font tokens live in the @theme inline block, not in :root.

Font loading (index.html)

Fonts load via a Google Fonts <link> in the <head>. The scaffold ships preconnect tags plus a css2 stylesheet link for the default families, and the editor rewrites this link to match your selected fonts on save.

Workspace Themes

Workspace Themes Demo
Workspace Themes let you define your brand once and reuse it across the projects in your workspace.

Saving a Theme

  1. Open any project in your workspace
  2. Go to Settings > Design
  3. Configure your colors, typography, and effects
  4. Click Save as Theme, give it a name, and click Save Theme
Themes store both light and dark mode colors, so configure both before saving.

Applying a Theme

In any project of the workspace, open Settings > Design and pick a theme under Apply saved theme. The list groups Workspace Themes and the Global Themes HelloLeo provides. Click Save to write it to the project.

Managing Workspace Themes

Workspace owners and admins can manage themes in the workspace settings, under the Design tab:
  • View saved themes - Workspace themes, plus the global themes
  • Create Theme - Build a theme from scratch
  • Edit or delete a theme - From its card
Applying your brand themes automatically across all workspace projects is part of the Enterprise plan. Use Contact Sales on the workspace Design tab.