Endorsement is a shadcn/ui theme built around a deep blue primary color (#2a3950) with deep orange accents (#50412a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#2a3950) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030507black |
| Foreground | #040910black | #ffffffwhite |
| Card | #fbfcfewhite | #030507black |
| Card foreground | #040910black | #ffffffwhite |
| Popover | #fbfcfewhite | #030507black |
| Popover foreground | #040910black | #ffffffwhite |
| Primary | #2a3950darkslategray | #2a3950darkslategray |
| Primary foreground | #cad4e3lightgrey | #cad4e3lightgrey |
| Secondary | #50412adarkolivegreen | #50412adarkolivegreen |
| Secondary foreground | #e3d9calightgrey | #e3d9calightgrey |
| Muted | #ede7deantiquewhite | #211b12black |
| Muted foreground | #656058dimgray | #a7a29adarkgray |
| Accent | #50412adarkolivegreen | #50412adarkolivegreen |
| Accent foreground | #e3d9calightgrey | #e3d9calightgrey |
| Destructive | #aa3608firebrick | #f45b1fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a3950darkslategray | #2a3950darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.39:1 | AA |
Paste this into your globals.css to use Endorsement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 258.319);
--foreground: oklch(0.137 0.019 252.559);
--muted: oklch(0.93 0.014 78.261);
--muted-foreground: oklch(0.49 0.014 78.191);
--popover: oklch(0.991 0.002 258.319);
--popover-foreground: oklch(0.137 0.019 252.559);
--card: oklch(0.991 0.002 258.319);
--card-foreground: oklch(0.137 0.019 252.559);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.343 0.045 258.303);
--primary-foreground: oklch(0.866 0.024 258.363);
--secondary: oklch(0.385 0.041 77.177);
--secondary-foreground: oklch(0.888 0.023 78.205);
--accent: oklch(0.385 0.041 77.177);
--accent-foreground: oklch(0.888 0.023 78.205);
--destructive: oklch(0.5 0.16 37.807);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.343 0.045 258.303);
--chart-1: oklch(0.343 0.045 258.303);
--chart-2: oklch(0.385 0.041 77.177);
--chart-3: oklch(0.385 0.041 77.177);
--chart-4: oklch(0.417 0.045 77.132);
--chart-5: oklch(0.342 0.049 258.29);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.112 0.008 253.556);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.019 77.647);
--muted-foreground: oklch(0.714 0.013 78.246);
--popover: oklch(0.112 0.008 253.556);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.112 0.008 253.556);
--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.343 0.045 258.303);
--primary-foreground: oklch(0.866 0.024 258.363);
--secondary: oklch(0.385 0.041 77.177);
--secondary-foreground: oklch(0.888 0.023 78.205);
--accent: oklch(0.385 0.041 77.177);
--accent-foreground: oklch(0.888 0.023 78.205);
--destructive: oklch(0.667 0.199 39.061);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.343 0.045 258.303);
--chart-1: oklch(0.343 0.045 258.303);
--chart-2: oklch(0.385 0.041 77.177);
--chart-3: oklch(0.385 0.041 77.177);
--chart-4: oklch(0.417 0.045 77.132);
--chart-5: oklch(0.342 0.049 258.29);
}