THEME LAB

Make it
feel like yours.

Choose a palette, adjust the controls and take the CSS into your application.

Real components. Light and dark. Yours to adjust.

MAKE IT YOURS

A starting point, in your style.

Choose an interface, adjust its theme, then take the project with you.

Choose a block or template to begin.

Start with a direction.

THREE STARTING POINTS

YOUR THEME

BLD8

01 Colour

Text colours adjust to keep actions legible.

02 Typography
03 Shape & space
4

Live preview

Try the controls.
Loading preview…Preview theme only

Contrast, in context.

Light mode · normal text
Body text17.93:1 AA
Muted text6.20:1 AA
Accent action12.96:1 AA
Accent hover9.29:1 AA
Primary action17.93:1 AA
Primary hover12.63:1 AA
Accent surface6.39:1 AA
Selected text7.63:1 AA
Selected hover7.34:1 AA

These token pairs target 4.5:1 for normal text. Review contrast in your finished interface, including disabled and custom states.

TAKE IT WITH YOU

A theme. A CSS file.

Both colour modes, typography, shape and spacing. Add the file after the library styles.

View theme CSS
/* BLD8 UI theme. Load after the library CSS; host class and data-ui-theme belong on the same element. */
.bld8-theme,
.bld8-theme[data-ui-theme="light"] {
  color-scheme: light;
  --bui-accent: #ffd900;
  --bui-accent-border: #8b6d18;
  --bui-accent-hover: #d5ba28;
  --bui-accent-ink: #171717;
  --bui-bg: #ffffff;
  --bui-border-hover: #aaa69c;
  --bui-button-pressed-tint: none;
  --bui-button-sheen: none;
  --bui-canvas: #eeede9;
  --bui-chart-1: #2e7a65;
  --bui-chart-2: #559583;
  --bui-chart-3: #235d4d;
  --bui-chart-4: #3e8773;
  --bui-chart-5: #1c4b3e;
  --bui-chart-6: #286a58;
  --bui-choice-border: #79766c;
  --bui-choice-on: var(--bui-accent);
  --bui-choice-on-border: var(--bui-accent-border);
  --bui-choice-on-ink: var(--bui-accent-ink);
  --bui-control-lg: 48px;
  --bui-control-md: 44px;
  --bui-control-sm: 36px;
  --bui-danger: #b04432;
  --bui-danger-bg: #fff0eb;
  --bui-duration: 220ms;
  --bui-duration-fast: 140ms;
  --bui-duration-slow: 320ms;
  --bui-ease: cubic-bezier(.16,1,.3,1);
  --bui-ease-control: cubic-bezier(.4,0,.2,1);
  --bui-ease-exit: cubic-bezier(.4,0,1,1);
  --bui-focus: #71571b;
  --bui-font: "DM Sans", Arial, sans-serif;
  --bui-group-input-height: var(--bui-control-md);
  --bui-heading: "Manrope", Arial, sans-serif;
  --bui-info: var(--bui-selected-ink);
  --bui-info-bg: var(--bui-selected-bg);
  --bui-ink: #171717;
  --bui-line: #d9d6ce;
  --bui-muted: #62615d;
  --bui-overlay-radius: 8px;
  --bui-panel-radius: 12px;
  --bui-primary: #171717;
  --bui-primary-hover: #333333;
  --bui-primary-ink: #ffffff;
  --bui-progress-fill: var(--bui-chart-1);
  --bui-radius: 4px;
  --bui-raised: #e4e2dc;
  --bui-selected-bg: #fdf7d9;
  --bui-selected-hover: #fbf3c4;
  --bui-selected-ink: #604c20;
  --bui-selected-marker: #9e7b1f;
  --bui-shadow: inset 0 1px 0 #ffffff99, 0 3px 8px #28251d0d, 0 16px 40px #28251d17;
  --bui-shadow-choice: var(--bui-shadow-switch);
  --bui-shadow-choice-active: var(--bui-shadow-switch-on);
  --bui-shadow-choice-hover: var(--bui-shadow-switch);
  --bui-shadow-control: inset 0 1px 1px #ffffff26, inset 0 -1px 1px #1717170a, 0 1px 2px #28251d0d, 0 3px 5px #28251d06;
  --bui-shadow-control-pressed: inset 0 1px 3px #17171726, inset 0 -1px 1px #ffffff26, 0 1px 2px #0000, 0 3px 5px #0000;
  --bui-shadow-field: inset 0 1px 2px #302a140d, inset 0 -1px 1px #ffffffcc;
  --bui-shadow-hover: inset 0 1px 1px #ffffff33, inset 0 -1px 1px #1717170a, 0 2px 4px #28251d12, 0 5px 12px #28251d0d;
  --bui-shadow-indicator: var(--bui-shadow-switch-thumb);
  --bui-shadow-selected: inset 0 0 0 1px #7c611511;
  --bui-shadow-surface: inset 0 1px 0 #ffffff99, 0 1px 2px #28251d0d, 0 4px 12px #28251d0a;
  --bui-shadow-switch: inset 0 1px 3px #302a1433, inset 0 -1px 1px #ffffff80;
  --bui-shadow-switch-active: inset 0 2px 4px #6d5f1566, inset 0 -1px 1px #ffffff66, 0 1px 2px #28251d0a, 0 2px 5px #0000;
  --bui-shadow-switch-on: var(--bui-shadow-switch-active);
  --bui-shadow-switch-thumb: 0 2px 3px #17171730, inset 0 1px 1px #ffffff33, inset 0 -1px 2px #00000066;
  --bui-shadow-switch-thumb-hover: 0 3px 6px #17171738, inset 0 1px 1px #ffffff40, inset 0 -1px 2px #00000066;
  --bui-shadow-switch-thumb-pressed: 0 1px 2px #17171730, inset 0 1px 1px #ffffff26, inset 0 -1px 2px #00000080;
  --bui-shadow-thumb: inset 0 1px 1px #ffffff33, inset 0 -1px 2px #00000066, 0 2px 3px #17171730, 0 1px 1px #17171714;
  --bui-shadow-thumb-hover: inset 0 1px 1px #ffffff40, inset 0 -1px 2px #00000066, 0 3px 6px #17171738, 0 1px 2px #17171714;
  --bui-shadow-thumb-pressed: inset 0 1px 1px #ffffff26, inset 0 -1px 2px #00000080, 0 1px 2px #17171730, 0 1px 1px #17171714;
  --bui-shadow-track: inset 0 1px 2px #302a1433, inset 0 -1px 1px #ffffff66;
  --bui-shadow-track-active: inset 0 1px 3px #302a1440, inset 0 -1px 1px #ffffff66;
  --bui-soft: #fdf8e0;
  --bui-space-1: 4px;
  --bui-space-12: 48px;
  --bui-space-2: 8px;
  --bui-space-3: 12px;
  --bui-space-4: 16px;
  --bui-space-5: 20px;
  --bui-space-6: 24px;
  --bui-space-8: 32px;
  --bui-success: #2e6546;
  --bui-success-bg: #edf5ef;
  --bui-support-amber: #805c06;
  --bui-support-amber-bg: #fff6d8;
  --bui-support-blue: #2758c7;
  --bui-support-blue-bg: #edf3ff;
  --bui-support-coral: #b34630;
  --bui-support-coral-bg: #fff0eb;
  --bui-support-pink: #aa386e;
  --bui-support-pink-bg: #ffedf5;
  --bui-support-teal: #087569;
  --bui-support-teal-bg: #e5f8f0;
  --bui-support-violet: #7445ba;
  --bui-support-violet-bg: #f3edff;
  --bui-surface: #f6f5f1;
  --bui-switch-thumb: #171717;
  --bui-switch-track: #d1cec5;
  --bui-text-control: 14px;
  --bui-text-label: 13px;
  --bui-text-meta: 12px;
  --bui-thumb: #171717;
  --bui-warning: #805c06;
  --bui-warning-bg: #fff6d8;
}

.bld8-theme[data-ui-theme="dark"] {
  color-scheme: dark;
  --bui-accent: #ffd900;
  --bui-accent-border: #8b6d18;
  --bui-accent-hover: #d5ba28;
  --bui-accent-ink: #171717;
  --bui-bg: #232321;
  --bui-border-hover: #858176;
  --bui-button-pressed-tint: none;
  --bui-button-sheen: none;
  --bui-canvas: #171715;
  --bui-chart-1: #65a08f;
  --bui-chart-2: #398570;
  --bui-chart-3: #97bfb4;
  --bui-chart-4: #509380;
  --bui-chart-5: #b9d4cc;
  --bui-chart-6: #7fb0a2;
  --bui-choice-border: #a09b8e;
  --bui-choice-on: var(--bui-accent);
  --bui-choice-on-border: var(--bui-accent-border);
  --bui-choice-on-ink: var(--bui-accent-ink);
  --bui-control-lg: 48px;
  --bui-control-md: 44px;
  --bui-control-sm: 36px;
  --bui-danger: #f0b1a4;
  --bui-danger-bg: #472d27;
  --bui-duration: 220ms;
  --bui-duration-fast: 140ms;
  --bui-duration-slow: 320ms;
  --bui-ease: cubic-bezier(.16,1,.3,1);
  --bui-ease-control: cubic-bezier(.4,0,.2,1);
  --bui-ease-exit: cubic-bezier(.4,0,1,1);
  --bui-focus: #f2d46b;
  --bui-font: "DM Sans", Arial, sans-serif;
  --bui-group-input-height: var(--bui-control-md);
  --bui-heading: "Manrope", Arial, sans-serif;
  --bui-info: var(--bui-selected-ink);
  --bui-info-bg: var(--bui-selected-bg);
  --bui-ink: #f7f7f7;
  --bui-line: #47463f;
  --bui-muted: #b7b5ad;
  --bui-overlay-radius: 8px;
  --bui-panel-radius: 12px;
  --bui-primary: #f5f5f5;
  --bui-primary-hover: #dedede;
  --bui-primary-ink: #171717;
  --bui-progress-fill: var(--bui-chart-1);
  --bui-radius: 4px;
  --bui-raised: #3c3b36;
  --bui-selected-bg: #403c23;
  --bui-selected-hover: #4c4624;
  --bui-selected-ink: #f1d999;
  --bui-selected-marker: #e8c45e;
  --bui-shadow: inset 0 1px 0 #ffffff14, 0 3px 8px #0004, 0 16px 40px #0006;
  --bui-shadow-choice: var(--bui-shadow-switch);
  --bui-shadow-choice-active: var(--bui-shadow-switch-on);
  --bui-shadow-choice-hover: var(--bui-shadow-switch);
  --bui-shadow-control: inset 0 1px 1px #ffffff1a, inset 0 -1px 1px #00000026, 0 1px 2px #0003, 0 3px 5px #0002;
  --bui-shadow-control-pressed: inset 0 1px 3px #0005, inset 0 -1px 1px #ffffff14, 0 1px 2px #0000, 0 3px 5px #0000;
  --bui-shadow-field: inset 0 1px 2px #00000040, inset 0 -1px 1px #ffffff0a;
  --bui-shadow-hover: inset 0 1px 1px #ffffff26, inset 0 -1px 1px #00000026, 0 2px 4px #0004, 0 5px 12px #0003;
  --bui-shadow-indicator: var(--bui-shadow-switch-thumb);
  --bui-shadow-selected: inset 0 0 0 1px #f2d46b15;
  --bui-shadow-surface: inset 0 1px 0 #ffffff0d, 0 1px 2px #0003, 0 4px 12px #0002;
  --bui-shadow-switch: inset 0 1px 3px #00000066, inset 0 -1px 1px #ffffff1a;
  --bui-shadow-switch-active: inset 0 2px 4px #6d5f1570, inset 0 -1px 1px #ffffff66, 0 1px 2px #0002, 0 2px 5px #0000;
  --bui-shadow-switch-on: var(--bui-shadow-switch-active);
  --bui-shadow-switch-thumb: 0 2px 3px #0005, inset 0 1px 1px #ffffff33, inset 0 -1px 2px #0000004d;
  --bui-shadow-switch-thumb-hover: 0 3px 6px #0006, inset 0 1px 1px #ffffff40, inset 0 -1px 2px #0000004d;
  --bui-shadow-switch-thumb-pressed: 0 1px 2px #0005, inset 0 1px 1px #ffffff26, inset 0 -1px 2px #00000066;
  --bui-shadow-thumb: inset 0 1px 1px #ffffff33, inset 0 -1px 2px #17171726, 0 2px 3px #0005, 0 1px 1px #0003;
  --bui-shadow-thumb-hover: inset 0 1px 1px #ffffff40, inset 0 -1px 2px #17171726, 0 3px 6px #0006, 0 1px 2px #0003;
  --bui-shadow-thumb-pressed: inset 0 1px 1px #ffffff26, inset 0 -1px 2px #17171738, 0 1px 2px #0005, 0 1px 1px #0003;
  --bui-shadow-track: inset 0 1px 2px #0005, inset 0 -1px 1px #ffffff14;
  --bui-shadow-track-active: inset 0 1px 3px #0007, inset 0 -1px 1px #ffffff14;
  --bui-soft: #3c3823;
  --bui-space-1: 4px;
  --bui-space-12: 48px;
  --bui-space-2: 8px;
  --bui-space-3: 12px;
  --bui-space-4: 16px;
  --bui-space-5: 20px;
  --bui-space-6: 24px;
  --bui-space-8: 32px;
  --bui-success: #add9b8;
  --bui-success-bg: #253a2b;
  --bui-support-amber: #f4d57f;
  --bui-support-amber-bg: #4c401f;
  --bui-support-blue: #aac4ff;
  --bui-support-blue-bg: #283e67;
  --bui-support-coral: #ffb19b;
  --bui-support-coral-bg: #51352f;
  --bui-support-pink: #ffb3d2;
  --bui-support-pink-bg: #503048;
  --bui-support-teal: #78dfc7;
  --bui-support-teal-bg: #1d4541;
  --bui-support-violet: #d0b8ff;
  --bui-support-violet-bg: #41345d;
  --bui-surface: #2b2b28;
  --bui-switch-thumb: #f4f2ed;
  --bui-switch-track: #55534c;
  --bui-text-control: 14px;
  --bui-text-label: 13px;
  --bui-text-meta: 12px;
  --bui-thumb: #f4f2ed;
  --bui-warning: #ebce8a;
  --bui-warning-bg: #3a311f;
}

Use it in your application

  1. Import the library CSS, then bld8-theme.css.
  2. Add class="bld8-theme" and data-ui-theme="light" or "dark" to <html>. This also themes overlays rendered in portals.
  3. Wrap overlays in UIProvider and set body { position: relative; }.

Starter downloads include the selected fonts and their licences. CSS-only exports include system fallbacks; load the named fonts in your own application.

Application setup