Dearest is a shadcn/ui theme built around a muted deep purple primary color (#5b3453) with muted deep green accents (#345b3c). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the muted deep purple primary (#5b3453) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fbsnow | #000000black |
| Foreground | #140511black | #fcf8fbsnow |
| Card | #fcf7fbsnow | #000000black |
| Card foreground | #140511black | #fcf8fbsnow |
| Popover | #fcf7fbsnow | #000000black |
| Popover foreground | #140511black | #fcf8fbsnow |
| Primary | #5b3453darkslategray | #5b3453darkslategray |
| Primary foreground | #e9d8e5gainsboro | #e9d8e5gainsboro |
| Secondary | #345b3cdarkslategray | #345b3cdarkslategray |
| Secondary foreground | #d8e9dbgainsboro | #d8e9dbgainsboro |
| Muted | #e8ede9linen | #121713black |
| Muted foreground | #46584adarkslategray | #a7b9abdarkgray |
| Accent | #345b3cdarkslategray | #345b3cdarkslategray |
| Accent foreground | #d8e9dbgainsboro | #d8e9dbgainsboro |
| Destructive | #c83504firebrick | #fa4205orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b3453darkslategray | #5b3453darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 6.44:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 5.29:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 8.77:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 332.121);
--foreground: oklch(0.15 0.036 334.779);
--muted: oklch(0.942 0.009 151.869);
--muted-foreground: oklch(0.44 0.031 150.886);
--popover: oklch(0.982 0.008 332.121);
--popover-foreground: oklch(0.15 0.036 334.779);
--card: oklch(0.982 0.008 332.121);
--card-foreground: oklch(0.15 0.036 334.779);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.385 0.072 334.562);
--primary-foreground: oklch(0.9 0.025 332.416);
--secondary: oklch(0.432 0.067 149.321);
--secondary-foreground: oklch(0.917 0.025 151.592);
--accent: oklch(0.432 0.067 149.321);
--accent-foreground: oklch(0.917 0.025 151.592);
--destructive: oklch(0.551 0.19 35.263);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.072 334.562);
--chart-1: oklch(0.385 0.072 334.562);
--chart-2: oklch(0.432 0.067 149.321);
--chart-3: oklch(0.432 0.067 149.321);
--chart-4: oklch(0.463 0.073 149.279);
--chart-5: oklch(0.384 0.079 334.824);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.005 332.086);
--muted: oklch(0.198 0.013 151.012);
--muted-foreground: oklch(0.767 0.027 151.458);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.005 332.086);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.005 332.086);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.072 334.562);
--primary-foreground: oklch(0.9 0.025 332.416);
--secondary: oklch(0.432 0.067 149.321);
--secondary-foreground: oklch(0.917 0.025 151.592);
--accent: oklch(0.432 0.067 149.321);
--accent-foreground: oklch(0.917 0.025 151.592);
--destructive: oklch(0.649 0.226 34.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.072 334.562);
--chart-1: oklch(0.385 0.072 334.562);
--chart-2: oklch(0.432 0.067 149.321);
--chart-3: oklch(0.432 0.067 149.321);
--chart-4: oklch(0.463 0.073 149.279);
--chart-5: oklch(0.384 0.079 334.824);
}