Theme builder

Choose a base theme, change colors and preview components. Copy CSS for your project or instructions for an agent.

Color scheme

Base theme

Changing the base resets colors to the selected theme. Sizes, fonts and status colors also come from that theme.

Lowercase Latin letters, digits and hyphens, up to 32 characters. Use a name different from the built-in themes.

Page background.

Card and panel backgrounds.

Backgrounds for groups, hover and disabled states.

Headings and main interface text.

Labels, hints and placeholder text.

Input and card borders, and separators.

Primary button background. Text, hover and active colors are chosen automatically.

Changes are saved in this browser.

Apply this palette to every page. Undo is available in the header; choosing a built-in theme also cancels it.

Interface preview

Colors apply only to this preview.

legato
Form example

New project

Draft

Check how the background, text and primary color work together. This form does not create or save projects.

Priority

Clicks: 0

Action variants

DoneIn progressNeeds reviewNo status
Status colors come from the base theme
Success, warning and error colors stay unchanged here.

Text contrast

The displayed pairs pass the check
  • Body text16.22:1 / 4.5:1
  • Supporting text7.30:1 / 4.5:1
  • Text on a secondary surface14.28:1 / 4.5:1
  • Primary action10.70:1 / 4.5:1
  • Primary action: hover12.70:1 / 4.5:1
  • Primary action: active14.65:1 / 4.5:1
  • Destructive action5.36:1 / 4.5:1
  • Destructive action: hover8.00:1 / 4.5:1
  • Tooltip16.22:1 / 4.5:1
  • Information message9.42:1 / 4.5:1
  • Success message6.71:1 / 4.5:1
  • Warning5.68:1 / 4.5:1
  • Error message5.79:1 / 4.5:1
  • Focus on the page10.70:1 / 3:1
  • Link on the page10.70:1 / 4.5:1
  • Focus on a secondary surface9.42:1 / 3:1
  • Text on a raised surface16.22:1 / 4.5:1
  • Supporting text on a raised surface7.30:1 / 4.5:1
  • Focus on a raised surface10.70:1 / 3:1
  • Accent text on a raised surface10.70:1 / 4.5:1
  • Accent text on a secondary surface9.42:1 / 4.5:1
  • Accent text on a selected surface9.42:1 / 4.5:1
  • Accent text on a soft surface: hover8.95:1 / 4.5:1
  • Selection mark on accent10.70:1 / 3:1

This checks contrast for several color pairs. Check accessibility of the complete interface separately. Light or dark text is chosen automatically for the primary color; you choose the link color.

Copy theme settings

Choose agent instructions, JSON settings or CSS to import into your project.

Download config
Agent instructions
Generate CSS for the Legato UI theme “my-gavia” based on “legato” using the configuration below.

Use createWlTheme from legato-ui/theme or gavia-theme --config theme.json --output theme.css. Both use the same generator.

Keep the versioned config as user input. The base theme determines the color scheme; palette changes determine the generated token bindings.

Apply the base, palette changes and manual overrides in that order. Full mode exports a complete theme; delta mode requires the base theme and brand on the same element.

Keep existing themes, Wl* names and --wl-* tokens. Do not automatically substitute the selected background/primary/link colors.

Run gavia-theme --config theme.json --output theme.css --check. Inspect the reported contrast pairs and actual components, including the Select portal.

The JSON contains inputs, not resolved output. Save it unchanged and regenerate CSS from it.

Theme configuration (JSON v2):

{
  "schemaVersion": 2,
  "name": "my-gavia",
  "baseTheme": "legato",
  "palette": {
    "background": "#ffffff",
    "surface": "#ffffff",
    "softSurface": "#f0efff",
    "text": "#201e33",
    "mutedText": "#4e5765",
    "border": "#dce0e4",
    "primary": "#343289",
    "link": "#343289"
  },
  "mode": "full"
}

Import CSS after the Legato UI styles; set data-wl-theme on html so overlays receive your theme.