Patriot is a shadcn/ui theme built around a purple primary color (#e387ce) with cyan accents (#87cee3). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e387ce) on a neutral background (#080207).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080207black |
| Foreground | #170312black | #faf5f9whitesmoke |
| Card | #ffffffwhite | #080207black |
| Card foreground | #170312black | #faf5f9whitesmoke |
| Popover | #ffffffwhite | #080207black |
| Popover foreground | #170312black | #faf5f9whitesmoke |
| Primary | #e387ceorchid | #e387ceorchid |
| Primary foreground | #2d0b25black | #2d0b25black |
| Secondary | #cee387khaki | #cee387khaki |
| Secondary foreground | #252d0bblack | #252d0bblack |
| Muted | #e7ebdbbeige | #202414black |
| Muted foreground | #65685adimgray | #a2a597darkgray |
| Accent | #87cee3skyblue | #87cee3skyblue |
| Accent foreground | #0b252dblack | #0b252dblack |
| Destructive | #c73605firebrick | #f9470borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e387ceorchid | #e387ceorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 10.23:1 | AAA |
| Muted text | 4.69:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.27:1 | AAA |
| Secondary button | 10.23:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 9.05:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Patriot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.049 336.958);
--muted: oklch(0.932 0.021 117.488);
--muted-foreground: oklch(0.509 0.021 117.829);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.049 336.958);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.049 336.958);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.142 336.088);
--primary-foreground: oklch(0.22 0.069 338.009);
--secondary: oklch(0.879 0.119 119.64);
--secondary-foreground: oklch(0.282 0.055 121.211);
--accent: oklch(0.811 0.077 219.052);
--accent-foreground: oklch(0.249 0.035 221.03);
--destructive: oklch(0.549 0.188 35.362);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.142 336.088);
--chart-1: oklch(0.743 0.142 336.088);
--chart-2: oklch(0.879 0.119 119.64);
--chart-3: oklch(0.811 0.077 219.052);
--chart-4: oklch(0.891 0.107 119.331);
--chart-5: oklch(0.743 0.148 336.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.022 333.984);
--foreground: oklch(0.974 0.008 333.378);
--muted: oklch(0.251 0.028 119.173);
--muted-foreground: oklch(0.715 0.02 117.571);
--popover: oklch(0.108 0.022 333.984);
--popover-foreground: oklch(0.974 0.008 333.378);
--card: oklch(0.108 0.022 333.984);
--card-foreground: oklch(0.974 0.008 333.378);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.743 0.142 336.088);
--primary-foreground: oklch(0.22 0.069 338.009);
--secondary: oklch(0.879 0.119 119.64);
--secondary-foreground: oklch(0.282 0.055 121.211);
--accent: oklch(0.811 0.077 219.052);
--accent-foreground: oklch(0.249 0.035 221.03);
--destructive: oklch(0.651 0.222 35.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.142 336.088);
--chart-1: oklch(0.743 0.142 336.088);
--chart-2: oklch(0.879 0.119 119.64);
--chart-3: oklch(0.811 0.077 219.052);
--chart-4: oklch(0.891 0.107 119.331);
--chart-5: oklch(0.743 0.148 336.217);
}