Display is a shadcn/ui theme built around a muted blue primary color (#454a5f) with muted yellow accents (#5f5945). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the muted blue primary (#454a5f) on a blue-tinted background (#05060b).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f8fdghostwhite | #05060bblack |
| Foreground | #010204black | #ffffffwhite |
| Card | #f2f4fcaliceblue | #06080eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6f8fdghostwhite | #05060bblack |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #454a5fdarkslategray | #454a5fdarkslategray |
| Primary foreground | #e7e9eelavender | #e7e9eelavender |
| Secondary | #5f5945darkolivegreen | #5f5945darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e7e4gainsboro | #1b1b18black |
| Muted foreground | #534f41darkolivegreen | #bebaacsilver |
| Accent | #5f5945darkolivegreen | #5f5945darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b31800firebrick | #ff4a2etomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #454a5fdarkslategray | #454a5fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 7.00:1 | AAA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Display in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 273.781);
--foreground: oklch(0.081 0.014 266.016);
--muted: oklch(0.926 0.004 93.91);
--muted-foreground: oklch(0.427 0.023 94.34);
--popover: oklch(0.979 0.007 273.781);
--popover-foreground: oklch(0.081 0.014 266.016);
--card: oklch(0.969 0.011 273.735);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.413 0.035 272.727);
--primary-foreground: oklch(0.934 0.007 273.779);
--secondary: oklch(0.463 0.032 94.432);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.463 0.032 94.432);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.489 0.189 31.275);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.413 0.035 272.727);
--chart-1: oklch(0.413 0.035 272.727);
--chart-2: oklch(0.463 0.032 94.432);
--chart-3: oklch(0.463 0.032 94.432);
--chart-4: oklch(0.493 0.035 94.435);
--chart-5: oklch(0.409 0.042 272.455);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.013 269.094);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.005 94.117);
--muted-foreground: oklch(0.788 0.02 94.119);
--popover: oklch(0.122 0.013 269.094);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.015 269.904);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.413 0.035 272.727);
--primary-foreground: oklch(0.934 0.007 273.779);
--secondary: oklch(0.463 0.032 94.432);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.463 0.032 94.432);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.667 0.222 31.65);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.413 0.035 272.727);
--chart-1: oklch(0.413 0.035 272.727);
--chart-2: oklch(0.463 0.032 94.432);
--chart-3: oklch(0.463 0.032 94.432);
--chart-4: oklch(0.493 0.035 94.435);
--chart-5: oklch(0.409 0.042 272.455);
}