Citron is a shadcn/ui theme built around a vivid blue primary color (#3a5ff2) with vivid yellow accents (#f2ce3a). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid blue primary (#3a5ff2) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020204black |
| Foreground | #020512black | #f5f6fawhitesmoke |
| Card | #fbfbfeghostwhite | #020204black |
| Card foreground | #020512black | #f5f6fawhitesmoke |
| Popover | #fbfbfeghostwhite | #020204black |
| Popover foreground | #020512black | #f5f6fawhitesmoke |
| Primary | #3a5ff2royalblue | #3a5ff2royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #f2ce3agoldenrod | #f2ce3agoldenrod |
| Secondary foreground | #000000black | #000000black |
| Muted | #efede6linen | #191710black |
| Muted foreground | #67665fdimgray | #a09e98darkgray |
| Accent | #f2ce3agoldenrod | #f2ce3agoldenrod |
| Accent foreground | #000000black | #000000black |
| Destructive | #921001darkred | #f71b02red |
| Destructive foreground | #fecdc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a5ff2royalblue | #3a5ff2royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 5.10:1 | AA |
| Secondary button | 13.64:1 | AAA |
| Muted text | 4.93:1 | AA |
| Accent | 13.64:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 5.10:1 | AA |
| Secondary button | 13.64:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 13.64:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Citron in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 274.99);
--foreground: oklch(0.121 0.033 264.354);
--muted: oklch(0.947 0.01 95.159);
--muted-foreground: oklch(0.509 0.01 95.257);
--popover: oklch(0.99 0.004 274.99);
--popover-foreground: oklch(0.121 0.033 264.354);
--card: oklch(0.99 0.004 274.99);
--card-foreground: oklch(0.121 0.033 264.354);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.553 0.224 267.464);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.858 0.16 94.202);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.858 0.16 94.202);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.422 0.164 30.762);
--destructive-foreground: oklch(0.89 0.057 25.639);
--ring: oklch(0.553 0.224 267.464);
--chart-1: oklch(0.553 0.224 267.464);
--chart-2: oklch(0.858 0.16 94.202);
--chart-3: oklch(0.858 0.16 94.202);
--chart-4: oklch(0.867 0.154 94.72);
--chart-5: oklch(0.551 0.231 267.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.009 270.36);
--foreground: oklch(0.974 0.005 274.974);
--muted: oklch(0.205 0.014 95.682);
--muted-foreground: oklch(0.698 0.009 95.188);
--popover: oklch(0.084 0.009 270.36);
--popover-foreground: oklch(0.974 0.005 274.974);
--card: oklch(0.084 0.009 270.36);
--card-foreground: oklch(0.974 0.005 274.974);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.553 0.224 267.464);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.858 0.16 94.202);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.858 0.16 94.202);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.62 0.246 30.269);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.553 0.224 267.464);
--chart-1: oklch(0.553 0.224 267.464);
--chart-2: oklch(0.858 0.16 94.202);
--chart-3: oklch(0.858 0.16 94.202);
--chart-4: oklch(0.867 0.154 94.72);
--chart-5: oklch(0.551 0.231 267.175);
}