Dual is a shadcn/ui theme built around a blue primary color (#1c76ba) with orange accents (#ba611c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#1c76ba) on a neutral background (#030508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030508black |
| Foreground | #030e17black | #f8fafcghostwhite |
| Card | #fcfcfcsnow | #04080bblack |
| Card foreground | #020b12black | #fbfdfdwhite |
| Popover | #fcfcfcsnow | #04080bblack |
| Popover foreground | #020b12black | #fbfdfdwhite |
| Primary | #1c76basteelblue | #1c76basteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ba611cchocolate | #ba611cchocolate |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2efedwhitesmoke | #120f0dblack |
| Muted foreground | #6b6057dimgray | #a89d94darkgray |
| Accent | #ba611cchocolate | #ba611cchocolate |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #88350csaddlebrown | #dd5613chocolate |
| Destructive foreground | #fbdbcbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c76basteelblue | #1c76basteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 4.36:1 | AA Large |
| Muted text | 5.35:1 | AA |
| Accent | 4.36:1 | AA Large |
| Destructive | 6.27:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 4.36:1 | AA Large |
| Muted text | 7.20:1 | AAA |
| Accent | 4.36:1 | AA Large |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Dual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.157 0.027 238.832);
--muted: oklch(0.955 0.004 60.22);
--muted-foreground: oklch(0.496 0.019 59.741);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.144 0.023 235.897);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.144 0.023 235.897);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.549 0.134 247.37);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.587 0.138 52.264);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.587 0.138 52.264);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.441 0.124 42.489);
--destructive-foreground: oklch(0.914 0.041 48.25);
--ring: oklch(0.549 0.134 247.37);
--chart-1: oklch(0.549 0.134 247.37);
--chart-2: oklch(0.587 0.138 52.264);
--chart-3: oklch(0.587 0.138 52.264);
--chart-4: oklch(0.617 0.146 52.15);
--chart-5: oklch(0.552 0.138 247.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.011 233.662);
--foreground: oklch(0.984 0.003 240.329);
--muted: oklch(0.171 0.007 59.732);
--muted-foreground: oklch(0.702 0.018 59.937);
--popover: oklch(0.131 0.012 234.102);
--popover-foreground: oklch(0.992 0.002 240.306);
--card: oklch(0.131 0.012 234.102);
--card-foreground: oklch(0.992 0.002 240.306);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.549 0.134 247.37);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.587 0.138 52.264);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.587 0.138 52.264);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.182 41.635);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.549 0.134 247.37);
--chart-1: oklch(0.549 0.134 247.37);
--chart-2: oklch(0.587 0.138 52.264);
--chart-3: oklch(0.587 0.138 52.264);
--chart-4: oklch(0.617 0.146 52.15);
--chart-5: oklch(0.552 0.138 247.818);
}