Dearest is a shadcn/ui theme built around a vivid light violet primary color (#e7dafc) with vivid light green accents (#dafce7). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid light violet primary (#e7dafc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #0a0316black | #fcfcfdwhite |
| Card | #f9f7fcghostwhite | #030303black |
| Card foreground | #080212black | #ffffffwhite |
| Popover | #f9f7fcghostwhite | #030303black |
| Popover foreground | #080212black | #ffffffwhite |
| Primary | #e7dafclavender | #e7dafclavender |
| Primary foreground | #420e95indigo | #420e95indigo |
| Secondary | #fce7daantiquewhite | #fce7daantiquewhite |
| Secondary foreground | #381905black | #381905black |
| Muted | #ded8d4gainsboro | #2b2521darkslategray |
| Muted foreground | #685f5adimgray | #a59d97darkgray |
| Accent | #dafce7honeydew | #dafce7honeydew |
| Accent foreground | #053819darkgreen | #053819darkgreen |
| Destructive | #ce100dfirebrick | #f1211ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7dafclavender | #e7dafclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 13.38:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 11.96:1 | AAA |
| Destructive | 5.65:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 9.12:1 | AAA |
| Secondary button | 13.38:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 11.96:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 303.588);
--foreground: oklch(0.13 0.046 300.889);
--muted: oklch(0.885 0.009 54.373);
--muted-foreground: oklch(0.493 0.014 54.134);
--popover: oklch(0.98 0.007 303.535);
--popover-foreground: oklch(0.119 0.041 302.84);
--card: oklch(0.98 0.007 303.535);
--card-foreground: oklch(0.119 0.041 302.84);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.908 0.048 302.863);
--primary-foreground: oklch(0.356 0.19 289.627);
--secondary: oklch(0.94 0.029 54.092);
--secondary-foreground: oklch(0.254 0.058 49.902);
--accent: oklch(0.96 0.045 158.386);
--accent-foreground: oklch(0.3 0.076 151.006);
--destructive: oklch(0.54 0.215 28.917);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.048 302.863);
--chart-1: oklch(0.908 0.048 302.863);
--chart-2: oklch(0.94 0.029 54.092);
--chart-3: oklch(0.96 0.045 158.386);
--chart-4: oklch(0.963 0.018 54.253);
--chart-5: oklch(0.907 0.049 302.833);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 303.602);
--muted: oklch(0.27 0.012 53.932);
--muted-foreground: oklch(0.7 0.012 54.264);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.908 0.048 302.863);
--primary-foreground: oklch(0.356 0.19 289.627);
--secondary: oklch(0.94 0.029 54.092);
--secondary-foreground: oklch(0.254 0.058 49.902);
--accent: oklch(0.96 0.045 158.386);
--accent-foreground: oklch(0.3 0.076 151.006);
--destructive: oklch(0.611 0.236 28.438);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.908 0.048 302.863);
--chart-1: oklch(0.908 0.048 302.863);
--chart-2: oklch(0.94 0.029 54.092);
--chart-3: oklch(0.96 0.045 158.386);
--chart-4: oklch(0.963 0.018 54.253);
--chart-5: oklch(0.907 0.049 302.833);
}