Debate is a shadcn/ui theme built around a vivid deep purple primary color (#7b077d) with vivid deep pink accents (#7d0744). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep purple primary (#7b077d) on a purple-tinted background (#0d070d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070dblack |
| Foreground | #0e020eblack | #fbf9fbsnow |
| Card | #fcfcfcsnow | #100911black |
| Card foreground | #090109black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #100911black |
| Popover foreground | #090109black | #fdfcfdwhite |
| Primary | #7b077dpurple | #7b077dpurple |
| Primary foreground | #fabcfblavender | #fabcfblavender |
| Secondary | #40077dindigo | #40077dindigo |
| Secondary foreground | #dabcfbthistle | #dabcfbthistle |
| Muted | #e8e0f0lavender | #170f1fblack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #7d0744brown | #7d0744brown |
| Accent foreground | #fbbcdcpink | #fbbcdcpink |
| Destructive | #79190cmaroon | #e82f17orangered |
| Destructive foreground | #f9c5bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b077dpurple | #7b077dpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 10.15:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 4.32:1 | AA Large |
Paste this into your globals.css to use Debate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.043 327.321);
--muted: oklch(0.918 0.022 307.504);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.105 0.037 327.382);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.105 0.037 327.382);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.414 0.186 327.474);
--primary-foreground: oklch(0.87 0.109 325.919);
--secondary: oklch(0.324 0.169 296.347);
--secondary-foreground: oklch(0.841 0.093 306.494);
--accent: oklch(0.388 0.152 357.816);
--accent-foreground: oklch(0.861 0.084 346.634);
--destructive: oklch(0.378 0.133 31.034);
--destructive-foreground: oklch(0.867 0.06 27.059);
--ring: oklch(0.414 0.186 327.474);
--chart-1: oklch(0.414 0.186 327.474);
--chart-2: oklch(0.324 0.169 296.347);
--chart-3: oklch(0.388 0.152 357.816);
--chart-4: oklch(0.349 0.183 296.017);
--chart-5: oklch(0.418 0.189 327.48);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.017 325.926);
--foreground: oklch(0.984 0.003 325.123);
--muted: oklch(0.187 0.033 305.675);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.154 0.02 325.963);
--popover-foreground: oklch(0.992 0.002 325.112);
--card: oklch(0.154 0.02 325.963);
--card-foreground: oklch(0.992 0.002 325.112);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.414 0.186 327.474);
--primary-foreground: oklch(0.87 0.109 325.919);
--secondary: oklch(0.324 0.169 296.347);
--secondary-foreground: oklch(0.841 0.093 306.494);
--accent: oklch(0.388 0.152 357.816);
--accent-foreground: oklch(0.861 0.084 346.634);
--destructive: oklch(0.604 0.222 31.008);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.186 327.474);
--chart-1: oklch(0.414 0.186 327.474);
--chart-2: oklch(0.324 0.169 296.347);
--chart-3: oklch(0.388 0.152 357.816);
--chart-4: oklch(0.349 0.183 296.017);
--chart-5: oklch(0.418 0.189 327.48);
}