Duel is a shadcn/ui theme built around a vivid purple primary color (#a00cc6) with vivid green accents (#31c60c). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#a00cc6) on a neutral background (#060407).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060407black |
| Foreground | #070209black | #ffffffwhite |
| Card | #fdfbfewhite | #060407black |
| Card foreground | #070209black | #ffffffwhite |
| Popover | #fdfbfewhite | #060407black |
| Popover foreground | #070209black | #ffffffwhite |
| Primary | #a00cc6darkviolet | #a00cc6darkviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #31c60climegreen | #31c60climegreen |
| Secondary foreground | #010500black | #010500black |
| Muted | #f0f6eewhitesmoke | #0a1109black |
| Muted foreground | #606f5ddimgray | #93a290darkseagreen |
| Accent | #31c60climegreen | #31c60climegreen |
| Accent foreground | #010500black | #010500black |
| Destructive | #8d1f07darkred | #f43a10orangered |
| Destructive foreground | #fcd3c9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a00cc6darkviolet | #a00cc6darkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 8.96:1 | AAA |
| Muted text | 4.86:1 | AA |
| Accent | 8.96:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.46:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 8.96:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 8.96:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Duel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 319.445);
--foreground: oklch(0.104 0.029 321.731);
--muted: oklch(0.967 0.012 139.441);
--muted-foreground: oklch(0.524 0.033 139.432);
--popover: oklch(0.991 0.004 319.445);
--popover-foreground: oklch(0.104 0.029 321.731);
--card: oklch(0.991 0.004 319.445);
--card-foreground: oklch(0.104 0.029 321.731);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.525 0.25 317.174);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.72 0.235 141.108);
--secondary-foreground: oklch(0.102 0.027 136.727);
--accent: oklch(0.72 0.235 141.108);
--accent-foreground: oklch(0.102 0.027 136.727);
--destructive: oklch(0.423 0.149 33.277);
--destructive-foreground: oklch(0.899 0.049 32.777);
--ring: oklch(0.525 0.25 317.174);
--chart-1: oklch(0.525 0.25 317.174);
--chart-2: oklch(0.72 0.235 141.108);
--chart-3: oklch(0.72 0.235 141.108);
--chart-4: oklch(0.759 0.248 141.133);
--chart-5: oklch(0.529 0.254 316.994);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.012 320.424);
--foreground: oklch(1 0 180);
--muted: oklch(0.166 0.018 139.339);
--muted-foreground: oklch(0.696 0.031 139.434);
--popover: oklch(0.111 0.012 320.424);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.012 320.424);
--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.525 0.25 317.174);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.72 0.235 141.108);
--secondary-foreground: oklch(0.102 0.027 136.727);
--accent: oklch(0.72 0.235 141.108);
--accent-foreground: oklch(0.102 0.027 136.727);
--destructive: oklch(0.632 0.226 33.013);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.525 0.25 317.174);
--chart-1: oklch(0.525 0.25 317.174);
--chart-2: oklch(0.72 0.235 141.108);
--chart-3: oklch(0.72 0.235 141.108);
--chart-4: oklch(0.759 0.248 141.133);
--chart-5: oklch(0.529 0.254 316.994);
}