Legitimate is a shadcn/ui theme built around a vivid light red primary color (#fef0f4) with vivid light teal accents (#f0fefb). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid light red primary (#fef0f4) on a red-tinted background (#0f0508).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0f0508black |
| Foreground | #130609black | #f9f6f6whitesmoke |
| Card | #fbf8f9snow | #130709black |
| Card foreground | #0f0507black | #fbf9f9snow |
| Popover | #fbf8f9snow | #130709black |
| Popover foreground | #0f0507black | #fbf9f9snow |
| Primary | #fef0f4lavenderblush | #fef0f4lavenderblush |
| Primary foreground | #b50830firebrick | #b50830firebrick |
| Secondary | #f0fefbazure | #f0fefbazure |
| Secondary foreground | #035341darkslategray | #035341darkslategray |
| Muted | #edf7f5whitesmoke | #08120fblack |
| Muted foreground | #424343darkslategray | #bcbdbdsilver |
| Accent | #f0fefbazure | #f0fefbazure |
| Accent foreground | #035341darkslategray | #035341darkslategray |
| Destructive | #812d09saddlebrown | #f06428chocolate |
| Destructive foreground | #fbd2c1peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fef0f4lavenderblush | #fef0f4lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 9.10:1 | AAA |
| Accent | 8.77:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.25:1 | AA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 10.11:1 | AAA |
| Accent | 8.77:1 | AAA |
| Destructive | 6.57:1 | AA |
Paste this into your globals.css to use Legitimate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 1.008);
--foreground: oklch(0.147 0.025 3.835);
--muted: oklch(0.969 0.011 180.632);
--muted-foreground: oklch(0.381 0.002 180.824);
--popover: oklch(0.983 0.003 1.057);
--popover-foreground: oklch(0.135 0.021 2.255);
--card: oklch(0.983 0.003 1.057);
--card-foreground: oklch(0.135 0.021 2.255);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.016 1.412);
--primary-foreground: oklch(0.492 0.194 19.502);
--secondary: oklch(0.987 0.015 180.517);
--secondary-foreground: oklch(0.395 0.076 170.792);
--accent: oklch(0.987 0.015 180.517);
--accent-foreground: oklch(0.395 0.076 170.792);
--destructive: oklch(0.416 0.124 39.862);
--destructive-foreground: oklch(0.895 0.051 44.494);
--ring: oklch(0.968 0.016 1.412);
--chart-1: oklch(0.968 0.016 1.412);
--chart-2: oklch(0.987 0.015 180.517);
--chart-3: oklch(0.987 0.015 180.517);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.968 0.016 1.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.02 2.203);
--foreground: oklch(0.975 0.004 1.068);
--muted: oklch(0.17 0.016 178.176);
--muted-foreground: oklch(0.798 0.002 180.906);
--popover: oklch(0.148 0.024 3.778);
--popover-foreground: oklch(0.983 0.002 1.031);
--card: oklch(0.148 0.024 3.778);
--card-foreground: oklch(0.983 0.002 1.031);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.016 1.412);
--primary-foreground: oklch(0.492 0.194 19.502);
--secondary: oklch(0.987 0.015 180.517);
--secondary-foreground: oklch(0.395 0.076 170.792);
--accent: oklch(0.987 0.015 180.517);
--accent-foreground: oklch(0.395 0.076 170.792);
--destructive: oklch(0.672 0.186 40.992);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.968 0.016 1.412);
--chart-1: oklch(0.968 0.016 1.412);
--chart-2: oklch(0.987 0.015 180.517);
--chart-3: oklch(0.987 0.015 180.517);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.968 0.016 1.426);
}