Legitimate is a shadcn/ui theme built around a muted green primary color (#498362) with neutral gray accents (#d8dad9). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#498362) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #010402black |
| Foreground | #010502black | #f8fcfamintcream |
| Card | #f7fdfamintcream | #020805black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #010402black |
| Popover foreground | #010502black | #f8fcfamintcream |
| Primary | #498362seagreen | #498362seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8dad9gainsboro | #1b1d1cblack |
| Secondary foreground | #3e423fdarkslategray | #b3b7b5silver |
| Muted | #f0f4f2whitesmoke | #0b0f0cblack |
| Muted foreground | #4a4f4cdarkslategray | #b0b5b2darkgray |
| Accent | #d8dad9gainsboro | #1b1d1cblack |
| Accent foreground | #3e423fdarkslategray | #b3b7b5silver |
| Destructive | #7e1907maroon | #f22f0dorangered |
| Destructive foreground | #fbc5bblightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #498362seagreen | #498362seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 4.48:1 | AA Large |
| Secondary button | 7.25:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 4.48:1 | AA Large |
| Secondary button | 8.36:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Legitimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 161.723);
--foreground: oklch(0.1 0.018 161.782);
--muted: oklch(0.964 0.005 161.675);
--muted-foreground: oklch(0.422 0.007 161.385);
--popover: oklch(0.994 0.003 161.723);
--popover-foreground: oklch(0.1 0.018 161.782);
--card: oklch(0.988 0.007 161.637);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.56 0.079 157.692);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.003 161.725);
--secondary-foreground: oklch(0.373 0.006 161.398);
--accent: oklch(0.886 0.003 161.725);
--accent-foreground: oklch(0.373 0.006 161.398);
--destructive: oklch(0.388 0.139 32.18);
--destructive-foreground: oklch(0.869 0.064 29.915);
--ring: oklch(0.56 0.079 157.692);
--chart-1: oklch(0.56 0.079 157.692);
--chart-2: oklch(0.886 0.003 161.725);
--chart-3: oklch(0.886 0.003 161.725);
--chart-4: oklch(0.909 0.002 161.744);
--chart-5: oklch(0.566 0.087 157.257);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.013 161.789);
--foreground: oklch(0.987 0.005 161.695);
--muted: oklch(0.162 0.008 160.535);
--muted-foreground: oklch(0.768 0.006 161.609);
--popover: oklch(0.098 0.013 161.789);
--popover-foreground: oklch(0.987 0.005 161.695);
--card: oklch(0.123 0.016 161.789);
--card-foreground: oklch(0.993 0.002 161.752);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.56 0.079 157.692);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.228 0.003 161.474);
--secondary-foreground: oklch(0.776 0.006 161.618);
--accent: oklch(0.228 0.003 161.474);
--accent-foreground: oklch(0.776 0.006 161.618);
--destructive: oklch(0.622 0.232 31.722);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.56 0.079 157.692);
--chart-1: oklch(0.56 0.079 157.692);
--chart-2: oklch(0.228 0.003 161.474);
--chart-3: oklch(0.228 0.003 161.474);
--chart-4: oklch(0.261 0.004 161.449);
--chart-5: oklch(0.566 0.087 157.257);
}