Skip to content
Nathan Zhou

Meridian playground

Change Meridian’s tokens and its components follow. The buttons, fields, table and chart below are the real ones this site is built with. Start from a preset, change a colour, check the contrast, then copy the token file into your project. The theme is kept in the page’s address, so you can share it.

Start from

Preview

Meridian’s own components, drawn with your tokens. The rest of this page keeps the site’s theme.

Quarterly review

Plans for the spring release

Everything in this frame takes its colours, corners, shadows and fonts from the tokens on the left.

DraftNewPaidPendingOverdueArchived

Buttons

Fields

Enter the whole address, with the part after @.

At most once a week.

Monthly visitors
12,480+8.2%
Last 30 days
Storage6.4 of 10 GB
LoadingUploading 3 files
Three milestones left. The design review is on Thursday.
Recent invoices
ClientStatusAmount
Ardent LabsPaid£1,250
Bluefin & Co.Pending£860
Cedar StudioOverdue£2,400
DriftwoodDraft£310

Hours by kind of work

Six weeks, one colour per chart token.
  • Design
  • Build
  • Review
  • Research
  • Support

Feedback

Heads up

A new version of the tokens is ready.

Saved

Your changes are live.

Contrast

WCAG ratios for the pairs Meridian sets text in, and for its chart colours on a card. Text needs 4.5:1 for AA and 7:1 for AAA. Charts are graphics, which need 3:1 and have no AAA level.

Light colours: All 18 pass AA

Light colours: All 18 pass AAIn dark: All 18 pass AA
Light colours: All 18 pass AA
PairRatioAAAAA
Text
Text on the page--foreground / --background13.78:1PassPass
Text on a card--foreground / --surface14.60:1PassPass
Quiet text on the page--muted-foreground / --background5.96:1PassFail
Quiet text on a muted panel--muted-foreground / --muted5.46:1PassFail
Main button--primary-foreground / --primary4.91:1PassFail
Main button, hovered--primary-foreground / --primary-hover6.18:1PassFail
Link on the page--primary / --background4.73:1PassFail
Accent text on its tint--accent-foreground / --accent-soft5.71:1PassFail
Secondary button--secondary-foreground / --secondary12.63:1PassPass
Danger button--danger-foreground / --danger5.02:1PassFail
Success badge--success / --success-soft5.92:1PassFail
Warning badge--warning-hover / --warning-soft5.56:1PassFail
Danger badge--danger-hover / --danger-soft5.42:1PassFail
Charts
Chart 1 on a card--chart-1 / --surface3.55:1PassNo AAA level for graphics
Chart 2 on a card--chart-2 / --surface3.09:1PassNo AAA level for graphics
Chart 3 on a card--chart-3 / --surface3.52:1PassNo AAA level for graphics
Chart 4 on a card--chart-4 / --surface4.28:1PassNo AAA level for graphics
Chart 5 on a card--chart-5 / --surface3.36:1PassNo AAA level for graphics

Take it with you

Your theme as Meridian’s token file. Paste it over the :root and .dark blocks at the top of meridian-tokens.css; when corners, fonts or speed changed, it also gives the lines to change in the file’s @theme block.

meridian-tokens.css
/*
 * Meridian tokens: Meridian.
 * Paste over the :root and .dark blocks at the top of meridian-tokens.css.
 * Edit this theme again: https://nathanz.cloud/projects/meridian/playground
 */

:root,
.light {
  --background: #faf6ef;
  --surface: #fffdf8;
  --foreground: #2e2620;
  --muted: #f3ecdf;
  --muted-foreground: #6b5c4f;
  --border: #eae0d0;
  --input: #e0d3be;
  --ring: #a05e1c;

  --primary: #a05e1c;
  --primary-hover: #8a5115;
  --primary-active: #703f0f;
  --primary-foreground: #fffaf2;
  --accent-soft: #f5e6cc;
  --accent-foreground: #7e4e14;

  --secondary: #f3ecdf;
  --secondary-foreground: #2e2620;

  --success: #3f6033;
  --success-hover: #345028;
  --success-soft: #e3edd8;
  --warning: #8a680a;
  --warning-hover: #755808;
  --warning-soft: #f5ebc4;
  --danger: #b8433a;
  --danger-hover: #9e372f;
  --danger-foreground: #fff5f3;
  --danger-soft: #f9deda;

  --chart-1: #be7627;
  --chart-2: #7a9b5e;
  --chart-3: #c96f4a;
  --chart-4: #b4606b;
  --chart-5: #9383b3;

  --dot-color: rgb(84 58 24 / 0.08);
  --glow-color: rgb(222 168 96 / 0.24);

  --scrim: #2e2620;

  --shadow-card-v: 0 1px 2px 0 rgb(84 58 24 / 0.04), 0 1px 3px 0 rgb(84 58 24 / 0.06);
  --shadow-hover-v: 0 3px 6px -2px rgb(84 58 24 / 0.08), 0 10px 24px -8px rgb(84 58 24 / 0.16);
  --shadow-pop-v: 0 2px 6px -1px rgb(84 58 24 / 0.07), 0 6px 16px -4px rgb(84 58 24 / 0.12);
  --shadow-lift-v: 0 4px 8px -2px rgb(84 58 24 / 0.08), 0 16px 40px -12px rgb(84 58 24 / 0.18);
}

.dark {
  --background: #1b1410;
  --surface: #251b14;
  --foreground: #f3eadb;
  --muted: #2d231b;
  --muted-foreground: #b0a089;
  --border: #372a1f;
  --input: #423325;
  --ring: #dca75f;

  --primary: #dca75f;
  --primary-hover: #e9b87a;
  --primary-active: #f0c68d;
  --primary-foreground: #2a1d0e;
  --accent-soft: rgb(220 167 95 / 0.15);
  --accent-foreground: #eac08a;

  --secondary: #2d231b;
  --secondary-foreground: #f3eadb;

  --success: #a3c48c;
  --success-hover: #b4d0a0;
  --success-soft: rgb(163 196 140 / 0.14);
  --warning: #dfb75c;
  --warning-hover: #e8c775;
  --warning-soft: rgb(223 183 92 / 0.14);
  --danger: #e0806f;
  --danger-hover: #e89484;
  --danger-foreground: #2a1410;
  --danger-soft: rgb(224 128 111 / 0.14);

  --chart-1: #e0ac62;
  --chart-2: #a3c48c;
  --chart-3: #e08b66;
  --chart-4: #d4888f;
  --chart-5: #b9a6cf;

  --dot-color: rgb(255 230 200 / 0.06);
  --glow-color: rgb(222 168 96 / 0.1);

  --scrim: #0c0805;

  --shadow-card-v: 0 1px 2px 0 rgb(0 0 0 / 0.24), 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow-hover-v: 0 3px 6px -2px rgb(0 0 0 / 0.34), 0 10px 24px -8px rgb(0 0 0 / 0.46);
  --shadow-pop-v: 0 2px 6px -1px rgb(0 0 0 / 0.36), 0 6px 16px -4px rgb(0 0 0 / 0.48);
  --shadow-lift-v: 0 4px 8px -2px rgb(0 0 0 / 0.44), 0 16px 40px -12px rgb(0 0 0 / 0.6);
}

New to Meridian? Set a project up first, and it writes the token file for you:

npx @nathanzhou/meridian init

How to install and use Meridian →← Back to Meridian