Candidate is a shadcn/ui theme built around a deep orange primary color (#241a14) with deep yellow accents (#242214). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#241a14) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040202black |
| Foreground | #050201black | #ffffffwhite |
| Card | #ffffffwhite | #040202black |
| Card foreground | #050201black | #ffffffwhite |
| Popover | #ffffffwhite | #040202black |
| Popover foreground | #050201black | #ffffffwhite |
| Primary | #241a14black | #241a14black |
| Primary foreground | #cbae9ftan | #cbae9ftan |
| Secondary | #241416black | #241416black |
| Secondary foreground | #cb9fa6rosybrown | #cb9fa6rosybrown |
| Muted | #eae6e7linen | #191516black |
| Muted foreground | #4b3a3cdarkslategray | #c5b4b7silver |
| Accent | #242214black | #242214black |
| Accent foreground | #cbc59ftan | #cbc59ftan |
| Destructive | #920702darkred | #fc2e27orangered |
| Destructive foreground | #fecac8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #241a14black | #241a14black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.67:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 8.63:1 | AAA |
| Accent | 9.14:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.68:1 | AAA |
| Text on card | 20.68:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 9.11:1 | AAA |
| Accent | 9.14:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Candidate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.091 0.015 63.071);
--muted: oklch(0.929 0.004 6.691);
--muted-foreground: oklch(0.367 0.025 8.272);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.091 0.015 63.071);
--card: oklch(1 0 180);
--card-foreground: oklch(0.091 0.015 63.071);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.227 0.021 49.586);
--primary-foreground: oklch(0.773 0.04 50.039);
--secondary: oklch(0.214 0.028 9.924);
--secondary-foreground: oklch(0.745 0.053 8.38);
--accent: oklch(0.25 0.025 99.406);
--accent-foreground: oklch(0.818 0.051 99.091);
--destructive: oklch(0.417 0.167 29.554);
--destructive-foreground: oklch(0.883 0.06 20.654);
--ring: oklch(0.227 0.021 49.586);
--chart-1: oklch(0.227 0.021 49.586);
--chart-2: oklch(0.214 0.028 9.924);
--chart-3: oklch(0.25 0.025 99.406);
--chart-4: oklch(0.244 0.035 10.219);
--chart-5: oklch(0.228 0.023 49.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.007 56.162);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.005 7.247);
--muted-foreground: oklch(0.785 0.02 7.233);
--popover: oklch(0.091 0.007 56.162);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.091 0.007 56.162);
--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.227 0.021 49.586);
--primary-foreground: oklch(0.773 0.04 50.039);
--secondary: oklch(0.214 0.028 9.924);
--secondary-foreground: oklch(0.745 0.053 8.38);
--accent: oklch(0.25 0.025 99.406);
--accent-foreground: oklch(0.818 0.051 99.091);
--destructive: oklch(0.639 0.238 28.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.227 0.021 49.586);
--chart-1: oklch(0.227 0.021 49.586);
--chart-2: oklch(0.214 0.028 9.924);
--chart-3: oklch(0.25 0.025 99.406);
--chart-4: oklch(0.244 0.035 10.219);
--chart-5: oklch(0.228 0.023 49.475);
}