Doe is a shadcn/ui theme built around a deep violet primary color (#4f2272) with muted light violet accents (#c8c0ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#4f2272) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #08020dblack | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #08020dblack | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #08020dblack | #fdfcfdwhite |
| Primary | #4f2272darkslateblue | #4f2272darkslateblue |
| Primary foreground | #e5d4f2lavender | #e5d4f2lavender |
| Secondary | #d9d6dbgainsboro | #312d34darkslategray |
| Secondary foreground | #403b44darkslategray | #cac6cdlightgrey |
| Muted | #e2d6eagainsboro | #201529black |
| Muted foreground | #5e4e6adimgray | #a595b1darkgray |
| Accent | #c8c0cesilver | #463b4edarkslategray |
| Accent foreground | #2f2834darkslategray | #ded9e2gainsboro |
| Destructive | #833101saddlebrown | #fc5e03orangered |
| Destructive foreground | #fed2b8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f2272darkslateblue | #4f2272darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 7.57:1 | AAA |
| Muted text | 5.43:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Doe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.037 313.024);
--muted: oklch(0.892 0.03 310.794);
--muted-foreground: oklch(0.45 0.048 310.155);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.037 313.024);
--card: oklch(1 0 180);
--card-foreground: oklch(0.112 0.037 313.024);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.359 0.133 306.875);
--primary-foreground: oklch(0.892 0.045 310.65);
--secondary: oklch(0.88 0.008 311.006);
--secondary-foreground: oklch(0.362 0.017 310.688);
--accent: oklch(0.818 0.022 310.85);
--accent-foreground: oklch(0.289 0.023 310.384);
--destructive: oklch(0.426 0.124 43.383);
--destructive-foreground: oklch(0.895 0.061 51.717);
--ring: oklch(0.359 0.133 306.875);
--chart-1: oklch(0.359 0.133 306.875);
--chart-2: oklch(0.88 0.008 311.006);
--chart-3: oklch(0.818 0.022 310.85);
--chart-4: oklch(0.905 0.006 311.023);
--chart-5: oklch(0.358 0.139 306.534);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 311.065);
--muted: oklch(0.219 0.041 309.363);
--muted-foreground: oklch(0.694 0.043 310.544);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 311.065);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 311.065);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.359 0.133 306.875);
--primary-foreground: oklch(0.892 0.045 310.65);
--secondary: oklch(0.304 0.013 310.71);
--secondary-foreground: oklch(0.831 0.011 310.966);
--accent: oklch(0.372 0.035 310.259);
--accent-foreground: oklch(0.893 0.014 310.95);
--destructive: oklch(0.682 0.208 41.342);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.359 0.133 306.875);
--chart-1: oklch(0.359 0.133 306.875);
--chart-2: oklch(0.304 0.013 310.71);
--chart-3: oklch(0.372 0.035 310.259);
--chart-4: oklch(0.333 0.015 310.698);
--chart-5: oklch(0.358 0.139 306.534);
}