Double is a shadcn/ui theme built around a muted deep violet primary color (#493653) with muted deep green accents (#415336). The light mode uses a neutral background (#fbf7fc). Dark mode keeps the muted deep violet primary (#493653) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fcghostwhite | #08050bblack |
| Foreground | #0f0515black | #ffffffwhite |
| Card | #f8f4fbghostwhite | #0b060eblack |
| Card foreground | #0c0410black | #ffffffwhite |
| Popover | #fbf7fcghostwhite | #08050bblack |
| Popover foreground | #0f0515black | #ffffffwhite |
| Primary | #493653darkslategray | #493653darkslategray |
| Primary foreground | #e0d7e5gainsboro | #e0d7e5gainsboro |
| Secondary | #415336darkslategray | #415336darkslategray |
| Secondary foreground | #dce5d7gainsboro | #dce5d7gainsboro |
| Muted | #d5e6ccgainsboro | #233319darkslategray |
| Muted foreground | #5d635adimgray | #9fa59cdarkgray |
| Accent | #415336darkslategray | #415336darkslategray |
| Accent foreground | #dce5d7gainsboro | #dce5d7gainsboro |
| Destructive | #651306maroon | #f3462btomato |
| Destructive foreground | #faafa3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #493653darkslategray | #493653darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 4.70:1 | AA |
| Accent | 6.42:1 | AA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 6.42:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 6.42:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Double in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 313.558);
--foreground: oklch(0.142 0.038 312.815);
--muted: oklch(0.905 0.039 133.881);
--muted-foreground: oklch(0.492 0.017 133.819);
--popover: oklch(0.981 0.008 313.558);
--popover-foreground: oklch(0.142 0.038 312.815);
--card: oklch(0.972 0.011 313.534);
--card-foreground: oklch(0.13 0.033 313.83);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.367 0.054 312.684);
--primary-foreground: oklch(0.89 0.021 313.46);
--secondary: oklch(0.419 0.052 134.472);
--secondary-foreground: oklch(0.911 0.021 133.75);
--accent: oklch(0.419 0.052 134.472);
--accent-foreground: oklch(0.911 0.021 133.75);
--destructive: oklch(0.333 0.118 31.811);
--destructive-foreground: oklch(0.822 0.09 28.881);
--ring: oklch(0.367 0.054 312.684);
--chart-1: oklch(0.367 0.054 312.684);
--chart-2: oklch(0.419 0.052 134.472);
--chart-3: oklch(0.419 0.052 134.472);
--chart-4: oklch(0.451 0.056 134.488);
--chart-5: oklch(0.364 0.061 312.534);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.018 314.86);
--foreground: oklch(1 0 180);
--muted: oklch(0.3 0.049 134.87);
--muted-foreground: oklch(0.716 0.015 133.738);
--popover: oklch(0.123 0.018 314.86);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.021 313.645);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.367 0.054 312.684);
--primary-foreground: oklch(0.89 0.021 313.46);
--secondary: oklch(0.419 0.052 134.472);
--secondary-foreground: oklch(0.911 0.021 133.75);
--accent: oklch(0.419 0.052 134.472);
--accent-foreground: oklch(0.911 0.021 133.75);
--destructive: oklch(0.642 0.214 31.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.367 0.054 312.684);
--chart-1: oklch(0.367 0.054 312.684);
--chart-2: oklch(0.419 0.052 134.472);
--chart-3: oklch(0.419 0.052 134.472);
--chart-4: oklch(0.451 0.056 134.488);
--chart-5: oklch(0.364 0.061 312.534);
}