Dearest is a shadcn/ui theme built around a pink primary color (#da2f65) with teal accents (#2fdaa4). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the pink primary (#da2f65) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #030202black |
| Foreground | #000000black | #f9f6f7whitesmoke |
| Card | #fdf7f9snow | #030202black |
| Card foreground | #000000black | #f9f6f7whitesmoke |
| Popover | #fdf7f9snow | #030202black |
| Popover foreground | #000000black | #f9f6f7whitesmoke |
| Primary | #da2f65mediumvioletred | #da2f65mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2fdaa4lightseagreen | #2fdaa4lightseagreen |
| Secondary foreground | #093426darkgreen | #093426darkgreen |
| Muted | #dff1eblavender | #0e201ablack |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #2fdaa4lightseagreen | #2fdaa4lightseagreen |
| Accent foreground | #093426darkgreen | #093426darkgreen |
| Destructive | #b74210firebrick | #eb5819chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #da2f65mediumvioletred | #da2f65mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 4.58:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 4.58:1 | AA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 355.835);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.02 174.974);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.981 0.007 355.835);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 355.835);
--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.591 0.207 8.196);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.793 0.155 165.822);
--secondary-foreground: oklch(0.292 0.052 167.485);
--accent: oklch(0.793 0.155 165.822);
--accent-foreground: oklch(0.292 0.052 167.485);
--destructive: oklch(0.536 0.161 39.637);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.591 0.207 8.196);
--chart-1: oklch(0.591 0.207 8.196);
--chart-2: oklch(0.793 0.155 165.822);
--chart-3: oklch(0.793 0.155 165.822);
--chart-4: oklch(0.802 0.15 166.827);
--chart-5: oklch(0.594 0.213 8.861);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.009 355.432);
--foreground: oklch(0.976 0.003 355.699);
--muted: oklch(0.225 0.027 171.435);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.087 0.009 355.432);
--popover-foreground: oklch(0.976 0.003 355.699);
--card: oklch(0.087 0.009 355.432);
--card-foreground: oklch(0.976 0.003 355.699);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.591 0.207 8.196);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.793 0.155 165.822);
--secondary-foreground: oklch(0.292 0.052 167.485);
--accent: oklch(0.793 0.155 165.822);
--accent-foreground: oklch(0.292 0.052 167.485);
--destructive: oklch(0.648 0.194 39.763);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.591 0.207 8.196);
--chart-1: oklch(0.591 0.207 8.196);
--chart-2: oklch(0.793 0.155 165.822);
--chart-3: oklch(0.793 0.155 165.822);
--chart-4: oklch(0.802 0.15 166.827);
--chart-5: oklch(0.594 0.213 8.861);
}