Each is a shadcn/ui theme built around a deep blue primary color (#1c326e) with muted blue accents (#a6aec4). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#1c326e) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020203black |
| Foreground | #030817black | #ffffffwhite |
| Card | #fbfcfewhite | #020203black |
| Card foreground | #030817black | #ffffffwhite |
| Popover | #fbfcfewhite | #020203black |
| Popover foreground | #030817black | #ffffffwhite |
| Primary | #1c326emidnightblue | #1c326emidnightblue |
| Primary foreground | #cad5f2gainsboro | #cad5f2gainsboro |
| Secondary | #c4c8d4lightgrey | #1e1e1fblack |
| Secondary foreground | #2b2f3bdarkslategray | #b6b7b9silver |
| Muted | #eaedf5lavender | #0a0d15black |
| Muted foreground | #585a5fdimgray | #a0a1a7darkgray |
| Accent | #a6aec4darkgray | #2a2c32darkslategray |
| Accent foreground | #161922black | #c2c5ccsilver |
| Destructive | #690e02maroon | #fb452dtomato |
| Destructive foreground | #fdaba0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c326emidnightblue | #1c326emidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Each in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 270.091);
--foreground: oklch(0.138 0.035 261.717);
--muted: oklch(0.947 0.011 270.026);
--muted-foreground: oklch(0.468 0.009 269.954);
--popover: oklch(0.99 0.004 270.091);
--popover-foreground: oklch(0.138 0.035 261.717);
--card: oklch(0.99 0.004 270.091);
--card-foreground: oklch(0.138 0.035 261.717);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.336 0.109 265.723);
--primary-foreground: oklch(0.873 0.042 269.662);
--secondary: oklch(0.834 0.016 269.952);
--secondary-foreground: oklch(0.308 0.021 269.431);
--accent: oklch(0.752 0.032 269.716);
--accent-foreground: oklch(0.216 0.017 269.313);
--destructive: oklch(0.336 0.125 31.619);
--destructive-foreground: oklch(0.818 0.099 27.702);
--ring: oklch(0.336 0.109 265.723);
--chart-1: oklch(0.336 0.109 265.723);
--chart-2: oklch(0.834 0.016 269.952);
--chart-3: oklch(0.752 0.032 269.716);
--chart-4: oklch(0.86 0.014 269.985);
--chart-5: oklch(0.334 0.114 265.484);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.007 265.964);
--foreground: oklch(1 0 180);
--muted: oklch(0.159 0.017 268.967);
--muted-foreground: oklch(0.711 0.008 270.025);
--popover: oklch(0.087 0.007 265.964);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.087 0.007 265.964);
--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.336 0.109 265.723);
--primary-foreground: oklch(0.873 0.042 269.662);
--secondary: oklch(0.236 0.002 270.059);
--secondary-foreground: oklch(0.779 0.003 270.088);
--accent: oklch(0.293 0.011 269.759);
--accent-foreground: oklch(0.822 0.011 270.011);
--destructive: oklch(0.655 0.221 30.966);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.336 0.109 265.723);
--chart-1: oklch(0.336 0.109 265.723);
--chart-2: oklch(0.236 0.002 270.059);
--chart-3: oklch(0.293 0.011 269.759);
--chart-4: oklch(0.268 0.002 270.054);
--chart-5: oklch(0.334 0.114 265.484);
}