Skip to content
Vertical Jump Designs-uiFront-End Studio
Get Pro

v3.9 is out.

Get started

Theme builder

Try your own brand, background and text colors for light and dark mode on real components, and see right away whether each pair meets WCAG 2.2 Level A, AA and AAA.

Pick your colors

Choose a brand, background and text color for each mode. The preview and the accessibility report update as you go. Only have a brand color for one mode? Pick it there, then use Match light brand or Match dark brand to have the library generate a matching shade for the other mode.

Light mode

Buttons, links and focus rings

Page and card surfaces

Body copy and headings

Contrast

Meets WCAG 2.2 AAA
  • Text on background

    17.17:1AAA
  • Brand on background

    7.90:1AAA
  • Button label on brand

    7.90:1AAA

Button labels use white or near-black, whichever reads better on your brand color, as Theme does.

Dark mode

Buttons, links and focus rings

Page and card surfaces

Body copy and headings

Contrast

Meets WCAG 2.2 AA
  • Text on background

    16.09:1AAA
  • Brand on background

    6.96:1AA
  • Button label on brand

    6.96:1AA

Button labels use white or near-black, whichever reads better on your brand color, as Theme does.

Shape and type

Pick a corner style and a font. They set the library's radius and font tokens, and they're part of the preview, the site preview and the theme file.

Corners
Font

Preview

Light mode

Spring launch

This is body copy in your text color, with a link in your brand color inside it.

Dark mode

Spring launch

This is body copy in your text color, with a link in your brand color inside it.

Applies your colors, corners and font to every page of this site, so you can see them on real components. It lasts until you stop it or close the tab.

Accessibility report

Each color pair is checked against the WCAG 2.2 contrast criteria. Level AA is the usual legal and industry target; AAA is stricter and isn't required for whole sites.

  • A: WCAG sets no contrast minimum at Level A. The one check here is Use of Color (SC 1.4.1): links that aren't underlined need 3:1 against the text around them. Underlined links pass it whatever their color.
  • AA: 4.5:1 for text, 3:1 for large text (SC 1.4.3) and for controls, borders and focus indicators (SC 1.4.11).
  • AAA: 7:1 for text and 4.5:1 for large text (SC 1.4.6).

Light mode

Meets WCAG 2.2 AAA
Light mode contrast checks against WCAG 2.2
CheckRatioAAAAAA

Body text

Text on the background

#141c25 on#ffffff:17.17:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Pass

7:1 · SC 1.4.6

Large text

Headings: 24px, or 18.66px bold

#141c25 on#ffffff:17.17:1

No requirement at this level

Pass

3:1 · SC 1.4.3

Pass

4.5:1 · SC 1.4.6

Links and brand text

Brand color as text on the background

#4338ca on#ffffff:7.90:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Pass

7:1 · SC 1.4.6

Button label

Label text on a brand-colored button

#ffffff on#4338ca:7.90:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Pass

7:1 · SC 1.4.6

Controls and focus rings

Brand color for borders, icons and focus indicators

#4338ca on#ffffff:7.90:1

No requirement at this level

Pass

3:1 · SC 1.4.11

No requirement at this level

Links in body text

Link color against the body text around it

#4338ca on#141c25:2.17:1
Pass

Links are underlined

No requirement at this level

No requirement at this level

Dark mode

Meets WCAG 2.2 AA
Dark mode contrast checks against WCAG 2.2
CheckRatioAAAAAA

Body text

Text on the background

#e8edf2 on#0b1118:16.09:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Pass

7:1 · SC 1.4.6

Large text

Headings: 24px, or 18.66px bold

#e8edf2 on#0b1118:16.09:1

No requirement at this level

Pass

3:1 · SC 1.4.3

Pass

4.5:1 · SC 1.4.6

Links and brand text

Brand color as text on the background

#a78bfa on#0b1118:6.96:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Fail

7:1 · SC 1.4.6

Button label

Label text on a brand-colored button

#0b1118 on#a78bfa:6.96:1

No requirement at this level

Pass

4.5:1 · SC 1.4.3

Fail

7:1 · SC 1.4.6

Controls and focus rings

Brand color for borders, icons and focus indicators

#a78bfa on#0b1118:6.96:1

No requirement at this level

Pass

3:1 · SC 1.4.11

No requirement at this level

Links in body text

Link color against the body text around it

#a78bfa on#e8edf2:2.31:1
Pass

Links are underlined

No requirement at this level

No requirement at this level

Use it in your app

Download the theme file, or copy a link that opens this builder with your theme. See Theming for scoped themes and following the user's preference.

theme.css holds your brand palette, page colors, corners and font. Load it after vjdesigns-ui.css and add data-brand="my-brand" to <html>. In React you can pass the brand colors to Theme instead.

theme.csscss
/* vjdesigns-ui theme, made with https://vjdesigns-ui.org/docs/theme-builder
 *
 * 1. Load this file after vjdesigns-ui.css.
 * 2. Add data-brand="my-brand" to <html> (or pass the brand colors to <Theme>).
 */

[data-brand="my-brand"] {
  --brand-light-primary: #4338ca;
  --brand-light-primary-hover: #3722b7;
  --brand-light-primary-active: #2d00a4;
  --brand-light-on-primary: #ffffff;
  --brand-light-primary-subtle: #f0f3ff;
  --brand-light-primary-subtle-hover: #e4e8ff;
  --brand-light-primary-subtle-text: #3316af;
  --brand-light-primary-border: #4338ca;
  --brand-light-link-visited: #005a8c;
  --brand-dark-primary: #a78bfa;
  --brand-dark-primary-hover: #b7a1ff;
  --brand-dark-primary-active: #c6b8ff;
  --brand-dark-on-primary: #100b1f;
  --brand-dark-primary-subtle: #261d3e;
  --brand-dark-primary-subtle-hover: #30264d;
  --brand-dark-primary-subtle-text: #d0c4ff;
  --brand-dark-primary-border: #a78bfa;
  --brand-dark-link-visited: #8fd0f0;
  --brand-light-accent: #adb8ff;
  --brand-light-accent-hover: #a1abf1;
  --brand-light-accent-active: #949fe4;
  --brand-light-on-accent: #121428;
  --brand-light-accent-subtle: #f0f3ff;
  --brand-light-accent-subtle-hover: #e4e8ff;
  --brand-light-accent-subtle-text: #404683;
  --brand-light-accent-border: #636bac;
  --brand-dark-accent: #adb8ff;
  --brand-dark-accent-hover: #bdc6ff;
  --brand-dark-accent-active: #cdd5ff;
  --brand-dark-on-accent: #121428;
  --brand-dark-accent-subtle: #1d2040;
  --brand-dark-accent-subtle-hover: #252950;
  --brand-dark-accent-subtle-text: #c5ceff;
  --brand-dark-accent-border: #adb8ff;
}

:root,
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #141c25;
}

[data-theme="dark"] {
  --color-bg: #0b1118;
  --color-surface: #0b1118;
  --color-text: #e8edf2;
}
React (brand colors only)tsx
import { Theme } from "@vjdesigns/vjdesigns-ui";

<Theme brand={{ light: "#4338ca", dark: "#a78bfa" }}>
  <App />
</Theme>