Dearest is a shadcn/ui theme built around a near-black primary color (#06080a) with near-black accents (#06060a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-black primary (#06080a) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #030507black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fbfdfewhite | #030507black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfdfewhite | #030507black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #06080ablack | #06080ablack |
| Primary foreground | #87a1badarkgray | #87a1badarkgray |
| Secondary | #060a0ablack | #060a0ablack |
| Secondary foreground | #87bab9mediumaquamarine | #87bab9mediumaquamarine |
| Muted | #e2e9e9lavender | #161d1dblack |
| Muted foreground | #515857dimgray | #a7aeaedarkgray |
| Accent | #06060ablack | #06060ablack |
| Accent foreground | #8788balightslategray | #8788balightslategray |
| Destructive | #c24b14chocolate | #de5617chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #06080ablack | #06080ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.04:1 | AA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 9.25:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 6.04:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 246);
--foreground: oklch(0 0 0);
--muted: oklch(0.928 0.007 195.84);
--muted-foreground: oklch(0.453 0.009 195.647);
--popover: oklch(0.992 0.003 246);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.003 246);
--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.131 0.007 242.182);
--primary-foreground: oklch(0.699 0.047 246.734);
--secondary: oklch(0.138 0.008 195.167);
--secondary-foreground: oklch(0.753 0.053 194.778);
--accent: oklch(0.122 0.011 283.777);
--accent-foreground: oklch(0.645 0.075 283.35);
--destructive: oklch(0.566 0.164 41.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.131 0.007 242.182);
--chart-1: oklch(0.131 0.007 242.182);
--chart-2: oklch(0.138 0.008 195.167);
--chart-3: oklch(0.122 0.011 283.777);
--chart-4: oklch(0.18 0.012 194.811);
--chart-5: oklch(0.131 0.007 241.764);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.007 241.207);
--foreground: oklch(0.992 0.001 245.978);
--muted: oklch(0.223 0.01 195.226);
--muted-foreground: oklch(0.746 0.008 195.796);
--popover: oklch(0.114 0.007 241.207);
--popover-foreground: oklch(0.992 0.001 245.978);
--card: oklch(0.114 0.007 241.207);
--card-foreground: oklch(0.992 0.001 245.978);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.131 0.007 242.182);
--primary-foreground: oklch(0.699 0.047 246.734);
--secondary: oklch(0.138 0.008 195.167);
--secondary-foreground: oklch(0.753 0.053 194.778);
--accent: oklch(0.122 0.011 283.777);
--accent-foreground: oklch(0.645 0.075 283.35);
--destructive: oklch(0.624 0.182 40.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.131 0.007 242.182);
--chart-1: oklch(0.131 0.007 242.182);
--chart-2: oklch(0.138 0.008 195.167);
--chart-3: oklch(0.122 0.011 283.777);
--chart-4: oklch(0.18 0.012 194.811);
--chart-5: oklch(0.131 0.007 241.764);
}