Legitimate is a shadcn/ui theme built around a vivid deep red primary color (#130402) with muted light red accents (#e1dcdb). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the vivid deep red primary (#130402) on a red-tinted background (#0c0403).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #0c0403black |
| Foreground | #120503black | #ffffffwhite |
| Card | #fdf7f6snow | #0c0403black |
| Card foreground | #120503black | #ffffffwhite |
| Popover | #fdf7f6snow | #0c0403black |
| Popover foreground | #120503black | #ffffffwhite |
| Primary | #130402black | #130402black |
| Primary foreground | #ee6c58tomato | #ee6c58tomato |
| Secondary | #ebeaealinen | #271d1cblack |
| Secondary foreground | #535050darkslategray | #c6b2aesilver |
| Muted | #e9dfddgainsboro | #221816black |
| Muted foreground | #6a6362dimgray | #9d9695darkgray |
| Accent | #e1dcdbgainsboro | #402926darkslategray |
| Accent foreground | #4b403fdarkslategray | #d9c2bfsilver |
| Destructive | #6f1702maroon | #fb4113orangered |
| Destructive foreground | #feb6a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #130402black | #130402black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 4.48:1 | AA Large |
| Accent | 7.32:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Legitimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 27.968);
--foreground: oklch(0.136 0.027 35.249);
--muted: oklch(0.91 0.011 27.999);
--muted-foreground: oklch(0.506 0.009 28.033);
--popover: oklch(0.981 0.007 27.968);
--popover-foreground: oklch(0.136 0.027 35.249);
--card: oklch(0.981 0.007 27.968);
--card-foreground: oklch(0.136 0.027 35.249);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.135 0.032 36.957);
--primary-foreground: oklch(0.686 0.165 30.687);
--secondary: oklch(0.938 0.001 27.938);
--secondary-foreground: oklch(0.435 0.004 27.978);
--accent: oklch(0.897 0.006 27.966);
--accent-foreground: oklch(0.383 0.015 28.184);
--destructive: oklch(0.356 0.124 34.449);
--destructive-foreground: oklch(0.84 0.087 34.544);
--ring: oklch(0.135 0.032 36.957);
--chart-1: oklch(0.135 0.032 36.957);
--chart-2: oklch(0.938 0.001 27.938);
--chart-3: oklch(0.897 0.006 27.966);
--chart-4: oklch(0.962 0 27.936);
--chart-5: oklch(0.134 0.033 37.595);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.018 33.714);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.017 28.521);
--muted-foreground: oklch(0.679 0.009 27.999);
--popover: oklch(0.124 0.018 33.714);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.018 33.714);
--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.135 0.032 36.957);
--primary-foreground: oklch(0.686 0.165 30.687);
--secondary: oklch(0.242 0.016 28.404);
--secondary-foreground: oklch(0.779 0.024 28.117);
--accent: oklch(0.309 0.035 28.941);
--accent-foreground: oklch(0.833 0.027 28.126);
--destructive: oklch(0.651 0.228 33.762);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.135 0.032 36.957);
--chart-1: oklch(0.135 0.032 36.957);
--chart-2: oklch(0.242 0.016 28.404);
--chart-3: oklch(0.309 0.035 28.941);
--chart-4: oklch(0.273 0.019 28.443);
--chart-5: oklch(0.134 0.033 37.595);
}