Candidacy is a shadcn/ui theme built around a muted violet primary color (#503e60) with muted teal accents (#3e6050). The light mode uses a neutral background (#faf8fb). Dark mode keeps the muted violet primary (#503e60) on a violet-tinted background (#08040c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fbghostwhite | #08040cblack |
| Foreground | #0d0415black | #ffffffwhite |
| Card | #faf8fbghostwhite | #08040cblack |
| Card foreground | #0d0415black | #ffffffwhite |
| Popover | #faf8fbghostwhite | #08040cblack |
| Popover foreground | #0d0415black | #ffffffwhite |
| Primary | #503e60darkslategray | #503e60darkslategray |
| Primary foreground | #e8e3edlavender | #e8e3edlavender |
| Secondary | #60503edarkolivegreen | #60503edarkolivegreen |
| Secondary foreground | #ede8e3linen | #ede8e3linen |
| Muted | #f7f3eewhitesmoke | #110d08black |
| Muted foreground | #4d453ddarkslategray | #c2bbb2silver |
| Accent | #3e6050darkslategray | #3e6050darkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #e33702orangered | #e33702orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #503e60darkslategray | #503e60darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.47:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.36:1 | AA Large |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 10.17:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Candidacy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 309.739);
--foreground: oklch(0.138 0.04 308.273);
--muted: oklch(0.965 0.008 71.381);
--muted-foreground: oklch(0.397 0.018 70.99);
--popover: oklch(0.982 0.005 309.739);
--popover-foreground: oklch(0.138 0.04 308.273);
--card: oklch(0.982 0.005 309.739);
--card-foreground: oklch(0.138 0.04 308.273);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.397 0.062 308.216);
--primary-foreground: oklch(0.923 0.015 309.627);
--secondary: oklch(0.443 0.036 70.424);
--secondary-foreground: oklch(0.934 0.009 71.368);
--accent: oklch(0.459 0.048 163.587);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.6 0.214 34.147);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.062 308.216);
--chart-1: oklch(0.397 0.062 308.216);
--chart-2: oklch(0.443 0.036 70.424);
--chart-3: oklch(0.459 0.048 163.587);
--chart-4: oklch(0.472 0.039 70.405);
--chart-5: oklch(0.394 0.07 307.97);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.023 311.116);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.012 71.096);
--muted-foreground: oklch(0.795 0.015 71.279);
--popover: oklch(0.119 0.023 311.116);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.023 311.116);
--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.397 0.062 308.216);
--primary-foreground: oklch(0.923 0.015 309.627);
--secondary: oklch(0.443 0.036 70.424);
--secondary-foreground: oklch(0.934 0.009 71.368);
--accent: oklch(0.459 0.048 163.587);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.6 0.214 34.147);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.062 308.216);
--chart-1: oklch(0.397 0.062 308.216);
--chart-2: oklch(0.443 0.036 70.424);
--chart-3: oklch(0.459 0.048 163.587);
--chart-4: oklch(0.472 0.039 70.405);
--chart-5: oklch(0.394 0.07 307.97);
}