Legitimate is a shadcn/ui theme built around a neutral gray primary color (#282527) with neutral gray accents (#252826). The light mode uses a neutral background (#fefbfd). Dark mode keeps the neutral gray primary (#282527) on a purple-tinted background (#0f050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0f050cblack |
| Foreground | #040103black | #ffffffwhite |
| Card | #fefbfdsnow | #0f050cblack |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fefbfdsnow | #0f050cblack |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #282527darkslategray | #282527darkslategray |
| Primary foreground | #c2bdc0silver | #c2bdc0silver |
| Secondary | #252826darkslategray | #252826darkslategray |
| Secondary foreground | #bdc2besilver | #bdc2besilver |
| Muted | #e2eee5gainsboro | #111d14black |
| Muted foreground | #4b584fdarkslategray | #a7b4aadarkgray |
| Accent | #252826darkslategray | #252826darkslategray |
| Accent foreground | #bdc2besilver | #bdc2besilver |
| Destructive | #e32c02orangered | #fc3003orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #282527darkslategray | #282527darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.53:1 | AA |
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Legitimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 334.583);
--foreground: oklch(0.084 0.02 335.262);
--muted: oklch(0.938 0.019 154.175);
--muted-foreground: oklch(0.446 0.023 153.603);
--popover: oklch(0.991 0.003 334.583);
--popover-foreground: oklch(0.084 0.02 335.262);
--card: oklch(0.991 0.003 334.583);
--card-foreground: oklch(0.084 0.02 335.262);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.268 0.006 334.92);
--primary-foreground: oklch(0.803 0.008 334.694);
--secondary: oklch(0.272 0.006 154.132);
--secondary-foreground: oklch(0.808 0.008 154.36);
--accent: oklch(0.272 0.006 154.132);
--accent-foreground: oklch(0.808 0.008 154.36);
--destructive: oklch(0.592 0.221 32.346);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.268 0.006 334.92);
--chart-1: oklch(0.268 0.006 334.92);
--chart-2: oklch(0.272 0.006 154.132);
--chart-3: oklch(0.272 0.006 154.132);
--chart-4: oklch(0.304 0.007 154.114);
--chart-5: oklch(0.266 0.011 335.212);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.024 336.422);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.026 152.171);
--muted-foreground: oklch(0.757 0.02 154.057);
--popover: oklch(0.138 0.024 336.422);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.024 336.422);
--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.268 0.006 334.92);
--primary-foreground: oklch(0.803 0.008 334.694);
--secondary: oklch(0.272 0.006 154.132);
--secondary-foreground: oklch(0.808 0.008 154.36);
--accent: oklch(0.272 0.006 154.132);
--accent-foreground: oklch(0.808 0.008 154.36);
--destructive: oklch(0.64 0.24 32.219);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.268 0.006 334.92);
--chart-1: oklch(0.268 0.006 334.92);
--chart-2: oklch(0.272 0.006 154.132);
--chart-3: oklch(0.272 0.006 154.132);
--chart-4: oklch(0.304 0.007 154.114);
--chart-5: oklch(0.266 0.011 335.212);
}