Double is a shadcn/ui theme built around a light violet primary color (#edd6f5) with muted light violet accents (#ded6e1). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light violet primary (#edd6f5) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #030104black |
| Foreground | #070109black | #fbf8fbsnow |
| Card | #fbf8fcghostwhite | #060208black |
| Card foreground | #040105black | #fdfcfdwhite |
| Popover | #fdfbfdsnow | #030104black |
| Popover foreground | #070109black | #fbf8fbsnow |
| Primary | #edd6f5lavender | #edd6f5lavender |
| Primary foreground | #621f7arebeccapurple | #621f7arebeccapurple |
| Secondary | #ded6e1gainsboro | #272528darkslategray |
| Secondary foreground | #47384cdarkslategray | #c0bdc2silver |
| Muted | #e6dce9gainsboro | #1f1623black |
| Muted foreground | #645b67dimgray | #a198a4darkgray |
| Accent | #ded6e1gainsboro | #272528darkslategray |
| Accent foreground | #47384cdarkslategray | #c0bdc2silver |
| Destructive | #aa2803firebrick | #e13405orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edd6f5lavender | #edd6f5lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.79:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Double in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 317.182);
--foreground: oklch(0.1 0.035 320.076);
--muted: oklch(0.907 0.02 317.139);
--muted-foreground: oklch(0.484 0.021 317.09);
--popover: oklch(0.991 0.003 317.182);
--popover-foreground: oklch(0.1 0.035 320.076);
--card: oklch(0.982 0.006 317.175);
--card-foreground: oklch(0.079 0.028 320.076);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.047 317.072);
--primary-foreground: oklch(0.387 0.152 315.397);
--secondary: oklch(0.885 0.017 317.146);
--secondary-foreground: oklch(0.366 0.039 316.944);
--accent: oklch(0.885 0.017 317.146);
--accent-foreground: oklch(0.366 0.039 316.944);
--destructive: oklch(0.484 0.171 34.106);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.047 317.072);
--chart-1: oklch(0.905 0.047 317.072);
--chart-2: oklch(0.885 0.017 317.146);
--chart-3: oklch(0.885 0.017 317.146);
--chart-4: oklch(0.91 0.013 317.156);
--chart-5: oklch(0.904 0.049 317.066);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.017 318.929);
--foreground: oklch(0.983 0.004 317.179);
--muted: oklch(0.216 0.028 316.877);
--muted-foreground: oklch(0.692 0.019 317.126);
--popover: oklch(0.084 0.017 318.929);
--popover-foreground: oklch(0.983 0.004 317.179);
--card: oklch(0.106 0.021 318.929);
--card-foreground: oklch(0.991 0.002 317.184);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.905 0.047 317.072);
--primary-foreground: oklch(0.387 0.152 315.397);
--secondary: oklch(0.267 0.006 317.134);
--secondary-foreground: oklch(0.802 0.008 317.166);
--accent: oklch(0.267 0.006 317.134);
--accent-foreground: oklch(0.802 0.008 317.166);
--destructive: oklch(0.594 0.213 33.654);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.047 317.072);
--chart-1: oklch(0.905 0.047 317.072);
--chart-2: oklch(0.267 0.006 317.134);
--chart-3: oklch(0.267 0.006 317.134);
--chart-4: oklch(0.298 0.008 317.131);
--chart-5: oklch(0.904 0.049 317.066);
}