Dual is a shadcn/ui theme built around a near-black primary color (#0a0805) with near-black accents (#090a05). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the near-black primary (#0a0805) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #070603black |
| Foreground | #090601black | #f9f8f5whitesmoke |
| Card | #fcf9f3floralwhite | #0a0805black |
| Card foreground | #050301black | #fbfaf9snow |
| Popover | #fdfbf7snow | #070603black |
| Popover foreground | #090601black | #f9f8f5whitesmoke |
| Primary | #0a0805black | #0a0805black |
| Primary foreground | #bca985tan | #bca985tan |
| Secondary | #0a0605black | #0a0605black |
| Secondary foreground | #bc8d85rosybrown | #bc8d85rosybrown |
| Muted | #f0e2e0mistyrose | #1f110fblack |
| Muted foreground | #4f4240darkslategray | #bfb3b0silver |
| Accent | #090a05black | #090a05black |
| Accent foreground | #b4bc85darkkhaki | #b4bc85darkkhaki |
| Destructive | #791406maroon | #f3341borangered |
| Destructive foreground | #fbbeb6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0805black | #0a0805black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 9.90:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 8.70:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 8.97:1 | AAA |
| Accent | 9.90:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Dual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 83.06);
--foreground: oklch(0.125 0.02 91.333);
--muted: oklch(0.924 0.016 29.533);
--muted-foreground: oklch(0.392 0.017 29.684);
--popover: oklch(0.988 0.005 83.06);
--popover-foreground: oklch(0.125 0.02 91.333);
--card: oklch(0.982 0.008 83.062);
--card-foreground: oklch(0.1 0.016 91.333);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.137 0.008 86.435);
--primary-foreground: oklch(0.742 0.053 82.85);
--secondary: oklch(0.128 0.008 32.032);
--secondary-foreground: oklch(0.687 0.058 30.011);
--accent: oklch(0.141 0.011 113.848);
--accent-foreground: oklch(0.775 0.074 115.095);
--destructive: oklch(0.374 0.137 31.113);
--destructive-foreground: oklch(0.856 0.071 27.222);
--ring: oklch(0.137 0.008 86.435);
--chart-1: oklch(0.137 0.008 86.435);
--chart-2: oklch(0.128 0.008 32.032);
--chart-3: oklch(0.141 0.011 113.848);
--chart-4: oklch(0.165 0.013 29.984);
--chart-5: oklch(0.137 0.009 86.764);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.008 86.764);
--foreground: oklch(0.979 0.004 83.058);
--muted: oklch(0.197 0.024 30.401);
--muted-foreground: oklch(0.775 0.014 29.539);
--popover: oklch(0.12 0.008 86.764);
--popover-foreground: oklch(0.979 0.004 83.058);
--card: oklch(0.137 0.009 86.764);
--card-foreground: oklch(0.986 0.002 83.057);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.137 0.008 86.435);
--primary-foreground: oklch(0.742 0.053 82.85);
--secondary: oklch(0.128 0.008 32.032);
--secondary-foreground: oklch(0.687 0.058 30.011);
--accent: oklch(0.141 0.011 113.848);
--accent-foreground: oklch(0.775 0.074 115.095);
--destructive: oklch(0.627 0.228 31.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.137 0.008 86.435);
--chart-1: oklch(0.137 0.008 86.435);
--chart-2: oklch(0.128 0.008 32.032);
--chart-3: oklch(0.141 0.011 113.848);
--chart-4: oklch(0.165 0.013 29.984);
--chart-5: oklch(0.137 0.009 86.764);
}