Chief is a shadcn/ui theme built around a deep green primary color (#233512) with deep green accents (#123513). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#233512) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #050802black | #ffffffwhite |
| Card | #fcfefbwhite | #020401black |
| Card foreground | #050802black | #ffffffwhite |
| Popover | #fcfefbwhite | #020401black |
| Popover foreground | #050802black | #ffffffwhite |
| Primary | #233512darkgreen | #233512darkgreen |
| Primary foreground | #86c350yellowgreen | #86c350yellowgreen |
| Secondary | #343512darkslategray | #343512darkslategray |
| Secondary foreground | #bfc350darkkhaki | #bfc350darkkhaki |
| Muted | #ededdebeige | #212112black |
| Muted foreground | #51514ddarkslategray | #b1b2aedarkgray |
| Accent | #123513darkgreen | #123513darkgreen |
| Accent foreground | #50c354mediumseagreen | #50c354mediumseagreen |
| Destructive | #640a07maroon | #db160fred |
| Destructive foreground | #f9a7a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #233512darkgreen | #233512darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 6.74:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 6.97:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 6.24:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 7.62:1 | AAA |
| Accent | 5.98:1 | AA |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Chief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 129.831);
--foreground: oklch(0.127 0.022 128.436);
--muted: oklch(0.942 0.02 108.332);
--muted-foreground: oklch(0.432 0.005 108.156);
--popover: oklch(0.995 0.005 129.831);
--popover-foreground: oklch(0.127 0.022 128.436);
--card: oklch(0.995 0.005 129.831);
--card-foreground: oklch(0.127 0.022 128.436);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.304 0.062 132.422);
--primary-foreground: oklch(0.752 0.16 132.635);
--secondary: oklch(0.32 0.053 110.818);
--secondary-foreground: oklch(0.792 0.138 110.94);
--accent: oklch(0.294 0.071 144.088);
--accent-foreground: oklch(0.727 0.184 143.944);
--destructive: oklch(0.324 0.122 28.757);
--destructive-foreground: oklch(0.808 0.097 21.605);
--ring: oklch(0.304 0.062 132.422);
--chart-1: oklch(0.304 0.062 132.422);
--chart-2: oklch(0.32 0.053 110.818);
--chart-3: oklch(0.294 0.071 144.088);
--chart-4: oklch(0.362 0.062 110.902);
--chart-5: oklch(0.307 0.065 132.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.015 128.615);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.027 109.875);
--muted-foreground: oklch(0.761 0.004 108.047);
--popover: oklch(0.1 0.015 128.615);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.1 0.015 128.615);
--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.304 0.062 132.422);
--primary-foreground: oklch(0.752 0.16 132.635);
--secondary: oklch(0.32 0.053 110.818);
--secondary-foreground: oklch(0.792 0.138 110.94);
--accent: oklch(0.294 0.071 144.088);
--accent-foreground: oklch(0.727 0.184 143.944);
--destructive: oklch(0.567 0.224 29.145);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.304 0.062 132.422);
--chart-1: oklch(0.304 0.062 132.422);
--chart-2: oklch(0.32 0.053 110.818);
--chart-3: oklch(0.294 0.071 144.088);
--chart-4: oklch(0.362 0.062 110.902);
--chart-5: oklch(0.307 0.065 132.591);
}