Dearest is a shadcn/ui theme built around a deep indigo primary color (#29166a) with deep green accents (#566a16). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the deep indigo primary (#29166a) on an indigo-tinted background (#08060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #08060eblack |
| Foreground | #080416black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #08060eblack |
| Card foreground | #080416black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #08060eblack |
| Popover foreground | #080416black | #fcfcfdwhite |
| Primary | #29166amidnightblue | #29166amidnightblue |
| Primary foreground | #cbc0f2thistle | #cbc0f2thistle |
| Secondary | #566a16darkolivegreen | #566a16darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaeddebeige | #1e2112black |
| Muted foreground | #474941darkslategray | #bcbeb6silver |
| Accent | #566a16darkolivegreen | #566a16darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #962b0dsaddlebrown | #ed5d35tomato |
| Destructive foreground | #fce1d9mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #29166amidnightblue | #29166amidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 8.73:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 8.73:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 8.70:1 | AAA |
| Accent | 6.06:1 | AA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 296.946);
--foreground: oklch(0.127 0.043 293.082);
--muted: oklch(0.94 0.021 117.487);
--muted-foreground: oklch(0.401 0.014 117.696);
--popover: oklch(0.979 0.007 296.946);
--popover-foreground: oklch(0.127 0.043 293.082);
--card: oklch(0.979 0.007 296.946);
--card-foreground: oklch(0.127 0.043 293.082);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.29 0.135 284.876);
--primary-foreground: oklch(0.833 0.071 295.517);
--secondary: oklch(0.491 0.109 122.251);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.109 122.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.452 0.148 35.114);
--destructive-foreground: oklch(0.929 0.031 35.945);
--ring: oklch(0.29 0.135 284.876);
--chart-1: oklch(0.29 0.135 284.876);
--chart-2: oklch(0.491 0.109 122.251);
--chart-3: oklch(0.491 0.109 122.251);
--chart-4: oklch(0.532 0.119 122.336);
--chart-5: oklch(0.288 0.14 284.032);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.02 295.869);
--foreground: oklch(0.992 0.001 297.058);
--muted: oklch(0.241 0.029 119.304);
--muted-foreground: oklch(0.798 0.012 117.341);
--popover: oklch(0.13 0.02 295.869);
--popover-foreground: oklch(0.992 0.001 297.058);
--card: oklch(0.13 0.02 295.869);
--card-foreground: oklch(0.992 0.001 297.058);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.29 0.135 284.876);
--primary-foreground: oklch(0.833 0.071 295.517);
--secondary: oklch(0.491 0.109 122.251);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.491 0.109 122.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.66 0.187 36.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.29 0.135 284.876);
--chart-1: oklch(0.29 0.135 284.876);
--chart-2: oklch(0.491 0.109 122.251);
--chart-3: oklch(0.491 0.109 122.251);
--chart-4: oklch(0.532 0.119 122.336);
--chart-5: oklch(0.288 0.14 284.032);
}