Citron is a shadcn/ui theme built around a light teal primary color (#e9fcf7) with light yellow accents (#fcf7e9). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the light teal primary (#e9fcf7) on a teal-tinted background (#070e0c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #070e0cblack |
| Foreground | #03120eblack | #ffffffwhite |
| Card | #f3fcfamintcream | #08110fblack |
| Card foreground | #020d0ablack | #ffffffwhite |
| Popover | #f7fdfbmintcream | #070e0cblack |
| Popover foreground | #03120eblack | #ffffffwhite |
| Primary | #e9fcf7honeydew | #e9fcf7honeydew |
| Primary foreground | #0a4234darkslategray | #0a4234darkslategray |
| Secondary | #f7e9fclavenderblush | #f7e9fclavenderblush |
| Secondary foreground | #7a189adarkmagenta | #7a189adarkmagenta |
| Muted | #ebe1eflavender | #1a101eblack |
| Muted foreground | #604c67dimgray | #ac98b3darkgray |
| Accent | #fcf7e9oldlace | #fcf7e9oldlace |
| Accent foreground | #42340adarkolivegreen | #42340adarkolivegreen |
| Destructive | #7a1800maroon | #ff3300orangered |
| Destructive foreground | #ffbeadlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9fcf7honeydew | #e9fcf7honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.60:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 11.34:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 10.68:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 11.34:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Citron in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 179.664);
--foreground: oklch(0.164 0.025 176.756);
--muted: oklch(0.922 0.021 317.725);
--muted-foreground: oklch(0.447 0.05 317.574);
--popover: oklch(0.989 0.007 179.664);
--popover-foreground: oklch(0.164 0.025 176.756);
--card: oklch(0.984 0.01 179.561);
--card-foreground: oklch(0.146 0.021 178.729);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.975 0.02 179.258);
--primary-foreground: oklch(0.341 0.061 171.565);
--secondary: oklch(0.95 0.029 317.714);
--secondary-foreground: oklch(0.441 0.198 315.351);
--accent: oklch(0.976 0.019 91.57);
--accent-foreground: oklch(0.333 0.06 89.624);
--destructive: oklch(0.38 0.136 34.181);
--destructive-foreground: oklch(0.856 0.079 34.488);
--ring: oklch(0.975 0.02 179.258);
--chart-1: oklch(0.975 0.02 179.258);
--chart-2: oklch(0.95 0.029 317.714);
--chart-3: oklch(0.976 0.019 91.57);
--chart-4: oklch(0.98 0.011 317.744);
--chart-5: oklch(0.975 0.021 179.234);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.013 178.198);
--foreground: oklch(1 0 180);
--muted: oklch(0.194 0.031 317.469);
--muted-foreground: oklch(0.707 0.045 317.66);
--popover: oklch(0.154 0.013 178.198);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.015 177.243);
--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.975 0.02 179.258);
--primary-foreground: oklch(0.341 0.061 171.565);
--secondary: oklch(0.95 0.029 317.714);
--secondary-foreground: oklch(0.441 0.198 315.351);
--accent: oklch(0.976 0.019 91.57);
--accent-foreground: oklch(0.333 0.06 89.624);
--destructive: oklch(0.646 0.241 32.615);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.02 179.258);
--chart-1: oklch(0.975 0.02 179.258);
--chart-2: oklch(0.95 0.029 317.714);
--chart-3: oklch(0.976 0.019 91.57);
--chart-4: oklch(0.98 0.011 317.744);
--chart-5: oklch(0.975 0.021 179.234);
}