Candid is a shadcn/ui theme built around a deep teal primary color (#144d35) with deep pink accents (#4d142c). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep teal primary (#144d35) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #030705black |
| Foreground | #020806black | #f5faf8mintcream |
| Card | #f2fcf8mintcream | #050b08black |
| Card foreground | #010403black | #f8fcfamintcream |
| Popover | #f2fcf8mintcream | #050b08black |
| Popover foreground | #010403black | #f8fcfamintcream |
| Primary | #144d35darkslategray | #144d35darkslategray |
| Primary foreground | #aae9cfpowderblue | #aae9cfpowderblue |
| Secondary | #4d142cmaroon | #4d142cmaroon |
| Secondary foreground | #e9aac4lightpink | #e9aac4lightpink |
| Muted | #efebedlinen | #141012black |
| Muted foreground | #554a4edarkslategray | #b5aaafdarkgray |
| Accent | #4d142cmaroon | #4d142cmaroon |
| Accent foreground | #e9aac4lightpink | #e9aac4lightpink |
| Destructive | #96160ddarkred | #ee463atomato |
| Destructive foreground | #fcdcd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #144d35darkslategray | #144d35darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Candid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.008 169.448);
--foreground: oklch(0.125 0.018 169.966);
--muted: oklch(0.944 0.005 349.811);
--muted-foreground: oklch(0.42 0.017 350.744);
--popover: oklch(0.983 0.012 169.333);
--popover-foreground: oklch(0.099 0.014 169.966);
--card: oklch(0.983 0.012 169.333);
--card-foreground: oklch(0.099 0.014 169.966);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.377 0.072 161.595);
--primary-foreground: oklch(0.884 0.074 167.04);
--secondary: oklch(0.294 0.089 358.535);
--secondary-foreground: oklch(0.804 0.081 352.339);
--accent: oklch(0.294 0.089 358.535);
--accent-foreground: oklch(0.804 0.081 352.339);
--destructive: oklch(0.434 0.163 29.6);
--destructive-foreground: oklch(0.92 0.036 22.688);
--ring: oklch(0.377 0.072 161.595);
--chart-1: oklch(0.377 0.072 161.595);
--chart-2: oklch(0.294 0.089 358.535);
--chart-3: oklch(0.294 0.089 358.535);
--chart-4: oklch(0.323 0.1 358.853);
--chart-5: oklch(0.381 0.074 161.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.011 169.857);
--foreground: oklch(0.981 0.007 169.476);
--muted: oklch(0.178 0.007 350.783);
--muted-foreground: oklch(0.75 0.014 350.196);
--popover: oklch(0.139 0.013 169.81);
--popover-foreground: oklch(0.987 0.004 169.542);
--card: oklch(0.139 0.013 169.81);
--card-foreground: oklch(0.987 0.004 169.542);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.377 0.072 161.595);
--primary-foreground: oklch(0.884 0.074 167.04);
--secondary: oklch(0.294 0.089 358.535);
--secondary-foreground: oklch(0.804 0.081 352.339);
--accent: oklch(0.294 0.089 358.535);
--accent-foreground: oklch(0.804 0.081 352.339);
--destructive: oklch(0.636 0.206 28.476);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.072 161.595);
--chart-1: oklch(0.377 0.072 161.595);
--chart-2: oklch(0.294 0.089 358.535);
--chart-3: oklch(0.294 0.089 358.535);
--chart-4: oklch(0.323 0.1 358.853);
--chart-5: oklch(0.381 0.074 161.204);
}