Dearest is a shadcn/ui theme built around a vivid deep yellow primary color (#4a4702) with vivid deep purple accents (#47024a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#4a4702) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #0c0c03black | #fcfcf8snow |
| Card | #fcfcfcsnow | #0b0b04black |
| Card foreground | #080802black | #fdfdfbsnow |
| Popover | #fcfcfcsnow | #0b0b04black |
| Popover foreground | #080802black | #fdfdfbsnow |
| Primary | #4a4702darkolivegreen | #4a4702darkolivegreen |
| Primary foreground | #f8ed20yellow | #f8ed20yellow |
| Secondary | #024a47darkslategray | #024a47darkslategray |
| Secondary foreground | #20f8edaqua | #20f8edaqua |
| Muted | #e1efeelavender | #101e1dblack |
| Muted foreground | #5f6363dimgray | #9ca0a0darkgray |
| Accent | #47024aindigo | #47024aindigo |
| Accent foreground | #f583fbviolet | #f583fbviolet |
| Destructive | #a13112brown | #e6461aorangered |
| Destructive foreground | #fcece8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a4702darkolivegreen | #4a4702darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Dearest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.022 106.682);
--muted: oklch(0.942 0.015 193.29);
--muted-foreground: oklch(0.496 0.005 193.413);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.132 0.019 106.894);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.132 0.019 106.894);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.388 0.081 106.259);
--primary-foreground: oklch(0.926 0.193 106.164);
--secondary: oklch(0.37 0.063 189.187);
--secondary-foreground: oklch(0.885 0.15 189.109);
--accent: oklch(0.283 0.128 325.882);
--accent-foreground: oklch(0.778 0.2 325.416);
--destructive: oklch(0.478 0.153 35.34);
--destructive-foreground: oklch(0.956 0.018 35.96);
--ring: oklch(0.388 0.081 106.259);
--chart-1: oklch(0.388 0.081 106.259);
--chart-2: oklch(0.37 0.063 189.187);
--chart-3: oklch(0.283 0.128 325.882);
--chart-4: oklch(0.419 0.072 189.044);
--chart-5: oklch(0.391 0.083 106.246);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 106.094);
--foreground: oklch(0.989 0.005 104.06);
--muted: oklch(0.222 0.02 191.823);
--muted-foreground: oklch(0.703 0.004 193.481);
--popover: oklch(0.145 0.015 106.016);
--popover-foreground: oklch(0.995 0.003 104.015);
--card: oklch(0.145 0.015 106.016);
--card-foreground: oklch(0.995 0.003 104.015);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.388 0.081 106.259);
--primary-foreground: oklch(0.926 0.193 106.164);
--secondary: oklch(0.37 0.063 189.187);
--secondary-foreground: oklch(0.885 0.15 189.109);
--accent: oklch(0.283 0.128 325.882);
--accent-foreground: oklch(0.778 0.2 325.416);
--destructive: oklch(0.619 0.203 35.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.388 0.081 106.259);
--chart-1: oklch(0.388 0.081 106.259);
--chart-2: oklch(0.37 0.063 189.187);
--chart-3: oklch(0.283 0.128 325.882);
--chart-4: oklch(0.419 0.072 189.044);
--chart-5: oklch(0.391 0.083 106.246);
}