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.
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.
Buttons
Fields
Enter the whole address, with the part after @.
At most once a week.
| Client | Status | Amount |
|---|---|---|
| Ardent Labs | Paid | £1,250 |
| Bluefin & Co. | Pending | £860 |
| Cedar Studio | Overdue | £2,400 |
| Driftwood | Draft | £310 |
Hours by kind of work
- Design
- Build
- Review
- Research
- Support
Feedback
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
| Pair | Ratio | AA | AAA |
|---|---|---|---|
| Text | |||
| Text on the page--foreground / --background | 13.78:1 | Pass | Pass |
| Text on a card--foreground / --surface | 14.60:1 | Pass | Pass |
| Quiet text on the page--muted-foreground / --background | 5.96:1 | Pass | Fail |
| Quiet text on a muted panel--muted-foreground / --muted | 5.46:1 | Pass | Fail |
| Main button--primary-foreground / --primary | 4.91:1 | Pass | Fail |
| Main button, hovered--primary-foreground / --primary-hover | 6.18:1 | Pass | Fail |
| Link on the page--primary / --background | 4.73:1 | Pass | Fail |
| Accent text on its tint--accent-foreground / --accent-soft | 5.71:1 | Pass | Fail |
| Secondary button--secondary-foreground / --secondary | 12.63:1 | Pass | Pass |
| Danger button--danger-foreground / --danger | 5.02:1 | Pass | Fail |
| Success badge--success / --success-soft | 5.92:1 | Pass | Fail |
| Warning badge--warning-hover / --warning-soft | 5.56:1 | Pass | Fail |
| Danger badge--danger-hover / --danger-soft | 5.42:1 | Pass | Fail |
| Charts | |||
| Chart 1 on a card--chart-1 / --surface | 3.55:1 | Pass | No AAA level for graphics |
| Chart 2 on a card--chart-2 / --surface | 3.09:1 | Pass | No AAA level for graphics |
| Chart 3 on a card--chart-3 / --surface | 3.52:1 | Pass | No AAA level for graphics |
| Chart 4 on a card--chart-4 / --surface | 4.28:1 | Pass | No AAA level for graphics |
| Chart 5 on a card--chart-5 / --surface | 3.36:1 | Pass | No 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: 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