Legitimate is a shadcn/ui theme built around a near-black primary color (#030302) with muted light yellow accents (#d3cfc5). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-black primary (#030302) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #161103black | #ffffffwhite |
| Card | #fdfbf7snow | #030303black |
| Card foreground | #120e02black | #ffffffwhite |
| Popover | #fefdfbsnow | #000000black |
| Popover foreground | #161103black | #ffffffwhite |
| Primary | #030302black | #030302black |
| Primary foreground | #a7a190darkgray | #a7a190darkgray |
| Secondary | #dddcdagainsboro | #141414black |
| Secondary foreground | #46443fdarkslategray | #adadaddarkgray |
| Muted | #efeadcantiquewhite | #231010black |
| Muted foreground | #635f54dimgray | #ab9c9cdarkgray |
| Accent | #d3cfc5lightgrey | #262222black |
| Accent foreground | #3a362cdarkslategray | #c1b9b9silver |
| Destructive | #d05411chocolate | #ef7c3ecoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.54:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 5.29:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 4.25:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.62:1 | AAA |
Paste this into your globals.css to use Legitimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 90.146);
--foreground: oklch(0.181 0.029 91.884);
--muted: oklch(0.937 0.019 90.262);
--muted-foreground: oklch(0.487 0.017 90.349);
--popover: oklch(0.995 0.003 90.146);
--popover-foreground: oklch(0.181 0.029 91.884);
--card: oklch(0.989 0.007 90.171);
--card-foreground: oklch(0.164 0.026 93.343);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.093 0.002 91.36);
--primary-foreground: oklch(0.71 0.026 90.351);
--secondary: oklch(0.895 0.004 90.152);
--secondary-foreground: oklch(0.386 0.008 90.273);
--accent: oklch(0.855 0.014 90.238);
--accent-foreground: oklch(0.334 0.017 90.406);
--destructive: oklch(0.599 0.171 42.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.093 0.002 91.36);
--chart-1: oklch(0.093 0.002 91.36);
--chart-2: oklch(0.895 0.004 90.152);
--chart-3: oklch(0.855 0.014 90.238);
--chart-4: oklch(0.918 0.003 90.145);
--chart-5: oklch(0.094 0.003 91.656);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.031 20.159);
--muted-foreground: oklch(0.705 0.017 17.57);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.093 0.002 91.36);
--primary-foreground: oklch(0.71 0.026 90.351);
--secondary: oklch(0.193 0 164.055);
--secondary-foreground: oklch(0.749 0 158.199);
--accent: oklch(0.255 0.007 17.587);
--accent-foreground: oklch(0.791 0.009 17.347);
--destructive: oklch(0.707 0.161 46.542);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.093 0.002 91.36);
--chart-1: oklch(0.093 0.002 91.36);
--chart-2: oklch(0.193 0 164.055);
--chart-3: oklch(0.255 0.007 17.587);
--chart-4: oklch(0.227 0 164.055);
--chart-5: oklch(0.094 0.003 91.656);
}