Double is a shadcn/ui theme built around a green primary color (#467a2e) with muted light green accents (#e4e9e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#467a2e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #091703black | #f6faf5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #091703black | #f6faf5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #091703black | #f6faf5whitesmoke |
| Primary | #467a2edarkolivegreen | #467a2edarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e9e2gainsboro | #30322fdarkslategray |
| Secondary foreground | #495742darkolivegreen | #c9cbc8silver |
| Muted | #dbe5d6gainsboro | #1e291ablack |
| Muted foreground | #475341darkslategray | #b2beacdarkgray |
| Accent | #e4e9e2gainsboro | #30322fdarkslategray |
| Accent foreground | #495742darkolivegreen | #c9cbc8silver |
| Destructive | #b3400ffirebrick | #ed5b1dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #467a2edarkolivegreen | #467a2edarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.49:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 6.26:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 6.26:1 | AA |
| Destructive | 5.73:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Double in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.184 0.045 135.227);
--muted: oklch(0.911 0.023 135.539);
--muted-foreground: oklch(0.425 0.033 135.778);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.184 0.045 135.227);
--card: oklch(1 0 180);
--card-foreground: oklch(0.184 0.045 135.227);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.526 0.121 137.016);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.929 0.011 135.478);
--secondary-foreground: oklch(0.438 0.039 135.842);
--accent: oklch(0.929 0.011 135.478);
--accent-foreground: oklch(0.438 0.039 135.842);
--destructive: oklch(0.528 0.16 39.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.526 0.121 137.016);
--chart-1: oklch(0.526 0.121 137.016);
--chart-2: oklch(0.929 0.011 135.478);
--chart-3: oklch(0.929 0.011 135.478);
--chart-4: oklch(0.95 0.008 135.462);
--chart-5: oklch(0.532 0.128 137.152);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.008 135.461);
--muted: oklch(0.265 0.031 136.004);
--muted-foreground: oklch(0.787 0.028 135.584);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.008 135.461);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.008 135.461);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.526 0.121 137.016);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.314 0.006 135.507);
--secondary-foreground: oklch(0.84 0.005 135.453);
--accent: oklch(0.314 0.006 135.507);
--accent-foreground: oklch(0.84 0.005 135.453);
--destructive: oklch(0.655 0.192 40.065);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.526 0.121 137.016);
--chart-1: oklch(0.526 0.121 137.016);
--chart-2: oklch(0.314 0.006 135.507);
--chart-3: oklch(0.314 0.006 135.507);
--chart-4: oklch(0.344 0.007 135.51);
--chart-5: oklch(0.532 0.128 137.152);
}