Dory is a shadcn/ui theme built around a muted light violet primary color (#e5e3e8) with muted light green accents (#e6e8e3). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the muted light violet primary (#e5e3e8) on a violet-tinted background (#09050f).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #09050fblack |
| Foreground | #020105black | #faf9fbghostwhite |
| Card | #f7f3fbghostwhite | #0c0713black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f9f7fdghostwhite | #09050fblack |
| Popover foreground | #020105black | #faf9fbghostwhite |
| Primary | #e5e3e8gainsboro | #e5e3e8gainsboro |
| Primary foreground | #4b4455darkslategray | #4b4455darkslategray |
| Secondary | #e6e8e3gainsboro | #e6e8e3gainsboro |
| Secondary foreground | #4e5544darkolivegreen | #4e5544darkolivegreen |
| Muted | #dde7d0gainsboro | #262f18darkslategray |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #e6e8e3gainsboro | #e6e8e3gainsboro |
| Accent foreground | #4e5544darkolivegreen | #4e5544darkolivegreen |
| Destructive | #860e0edarkred | #e21818crimson |
| Destructive foreground | #faccccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5e3e8gainsboro | #e5e3e8gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 6.91:1 | AA |
| Accent | 6.29:1 | AA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 6.29:1 | AA |
| Muted text | 6.81:1 | AA |
| Accent | 6.29:1 | AA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Dory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 304.941);
--foreground: oklch(0.074 0.025 306.894);
--muted: oklch(0.914 0.032 125.538);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.98 0.007 304.941);
--popover-foreground: oklch(0.074 0.025 306.894);
--card: oklch(0.97 0.011 304.887);
--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.918 0.008 304.926);
--primary-foreground: oklch(0.4 0.029 304.034);
--secondary: oklch(0.929 0.008 125.163);
--secondary-foreground: oklch(0.438 0.028 125.963);
--accent: oklch(0.929 0.008 125.163);
--accent-foreground: oklch(0.438 0.028 125.963);
--destructive: oklch(0.396 0.152 27.864);
--destructive-foreground: oklch(0.885 0.052 18.171);
--ring: oklch(0.918 0.008 304.926);
--chart-1: oklch(0.918 0.008 304.926);
--chart-2: oklch(0.929 0.008 125.163);
--chart-3: oklch(0.929 0.008 125.163);
--chart-4: oklch(0.95 0.005 125.125);
--chart-5: oklch(0.917 0.01 304.893);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.024 304.602);
--foreground: oklch(0.983 0.004 304.995);
--muted: oklch(0.29 0.041 127.228);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.131 0.024 304.602);
--popover-foreground: oklch(0.983 0.004 304.995);
--card: oklch(0.141 0.028 303.068);
--card-foreground: oklch(0.991 0.002 305.02);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.918 0.008 304.926);
--primary-foreground: oklch(0.4 0.029 304.034);
--secondary: oklch(0.929 0.008 125.163);
--secondary-foreground: oklch(0.438 0.028 125.963);
--accent: oklch(0.929 0.008 125.163);
--accent-foreground: oklch(0.438 0.028 125.963);
--destructive: oklch(0.58 0.228 28.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.008 304.926);
--chart-1: oklch(0.918 0.008 304.926);
--chart-2: oklch(0.929 0.008 125.163);
--chart-3: oklch(0.929 0.008 125.163);
--chart-4: oklch(0.95 0.005 125.125);
--chart-5: oklch(0.917 0.01 304.893);
}