Token playground

Build a token set for the Leitvia theme in your browser: colors, fonts, sizes, spacing and corners, checked against WCAG 2.2 AA while you type. Take it with you as a file for Leitvia Studio and as a style variation of the theme.

Free and without an account. Start from your logo, which is read in your browser and not uploaded, or from the address of a website. Your entries go to our server only to build the preview and the download; nothing is stored, and the playground sets no cookies. Try the set in WordPress Playground with the current theme and Studio. With a paid plan you can save the set as a design system with versions for your team.

Start from your brand

Optional: take the colors from your logo or from your website. Both count colors in a simple way, without AI, and adjust them until the contrast pairs pass. Check the result before you download.

Colors

Eleven roles, each with a job in the theme. Enter a color as #1a2b3c or pick one.

Page background and default section background.

Tinted background for alternating sections, cards and bands.

Body text, headings and primary buttons; also the background of dark bands, with surface as text color.

Secondary text: lead paragraphs, captions, meta lines, dates.

Links, eyebrows, hover states and at most one accent band per page. Primary buttons are ink; they take accent only on ink and inverse bands.

Text and icons on accent backgrounds only.

Rules, borders and dividers; also eyebrow text on ink bands.

Keyboard focus outline. Never use for decoration.

Text and icons for positive status messages (Success group style).

Text and icons for cautionary status messages (Warning group style).

Text and icons for errors and destructive actions.

Typography

Only fonts that come with the theme or with Leitvia Studio, served from this site; no font service is asked.

Spacing and corners

1 keeps the spacing of the theme; 1.25 makes every gap a quarter larger.

Buttons, form fields and small controls.

Image corners inside cards, rarely.

Large media frames; use sparingly.

Contrast check

The pairs of the theme contract after WCAG 2.2 AA: 4.5:1 for text, 3:1 for large text, controls and the focus indicator. The focus ring is double; on accent and ink either ring may carry the contrast.

All 16 required color pairs pass WCAG 2.2 AA. Download, saving and Playground are open.

Color pairUsed forNeedsRatioResultSuggestion
Ink / Surfacetext4.5:115.81:1Passes
Ink / Surface alternatetext4.5:114.36:1Passes
Ink muted / Surfacetext4.5:17.13:1Passes
Ink muted / Surface alternatetext4.5:16.48:1Passes
Accent / Surfacetext4.5:16.82:1Passes
Accent / Surface alternatetext4.5:16.20:1Passes
On accent / Accenttext4.5:17.49:1Passes
Focus / Surfacethe focus indicator3:16.10:1Passes
Focus / Surface alternatethe focus indicator3:15.54:1Passes
Focus / Accentthe focus indicator3:11.11:1Passes
Focus / Inkthe focus indicator3:12.59:1Passes
Stroke / Inktext4.5:110.25:1Passes
Stroke / Surfaceborders1.3:11.54:1Passes
Success / Surfacetext4.5:15.83:1Passes
Warning / Surfacetext4.5:16.49:1Passes
Danger / Surfacetext4.5:16.72:1Passes

Preview

A few patterns and components of the theme with your tokens, loaded from this site. The preview is a picture for the eyes; the contrast check above says the same in words.

Take your tokens with you

The package holds the token file for Leitvia Studio (DTCG) and the same set as a style variation of the theme (theme.json). Without an account you get exactly this one token set; nothing is kept on our side.

Every pattern in WordPress Playground

WordPress Playground runs a complete WordPress in your browser with Leitvia, Leitvia Studio and your tokens, and opens a page with every pattern; switch the width in the editor preview to see phone, tablet and desktop. Playground loads from playground.wordpress.net, a service of the WordPress project, and installs theme and plugin from their releases on GitHub: when you open it, your browser connects to these hosts and they receive your IP address. Your tokens travel in the link. Nothing is loaded before you click.

Open in WordPress Playground (new tab)

Save as a design system

With a paid plan you save token sets as design systems with versions for your team. Log in to save