Chief is a shadcn/ui theme built around a neutral gray primary color (#bababa) with neutral gray accents (#bababa). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#bababa) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080303black |
| Foreground | #0e0202black | #ffffffwhite |
| Card | #ffffffwhite | #080303black |
| Card foreground | #0e0202black | #ffffffwhite |
| Popover | #ffffffwhite | #080303black |
| Popover foreground | #0e0202black | #ffffffwhite |
| Primary | #bababasilver | #bababasilver |
| Primary foreground | #212121black | #212121black |
| Secondary | #bababasilver | #bababasilver |
| Secondary foreground | #212121black | #212121black |
| Muted | #f0e6e6linen | #1a0f0fblack |
| Muted foreground | #554444darkslategray | #bbaaaadarkgray |
| Accent | #bababasilver | #bababasilver |
| Accent foreground | #212121black | #212121black |
| Destructive | #61130amaroon | #ea4a39tomato |
| Destructive foreground | #f6afa7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bababasilver | #bababasilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 7.44:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 8.31:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.31:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Chief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.031 23.351);
--muted: oklch(0.931 0.011 17.356);
--muted-foreground: oklch(0.405 0.023 18.155);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.113 0.031 23.351);
--card: oklch(1 0 180);
--card-foreground: oklch(0.113 0.031 23.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.789 0 171.254);
--primary-foreground: oklch(0.248 0 173.29);
--secondary: oklch(0.789 0 171.254);
--secondary-foreground: oklch(0.248 0 173.29);
--accent: oklch(0.789 0 171.254);
--accent-foreground: oklch(0.248 0 173.29);
--destructive: oklch(0.325 0.112 30.351);
--destructive-foreground: oklch(0.819 0.084 26.153);
--ring: oklch(0.789 0 171.254);
--chart-1: oklch(0.789 0 171.254);
--chart-2: oklch(0.789 0 171.254);
--chart-3: oklch(0.789 0 171.254);
--chart-4: oklch(0.813 0 165.964);
--chart-5: oklch(0.786 0.005 17.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 19.87);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.017 18.875);
--muted-foreground: oklch(0.753 0.02 17.594);
--popover: oklch(0.106 0.015 19.87);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.015 19.87);
--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.789 0 171.254);
--primary-foreground: oklch(0.248 0 173.29);
--secondary: oklch(0.789 0 171.254);
--secondary-foreground: oklch(0.248 0 173.29);
--accent: oklch(0.789 0 171.254);
--accent-foreground: oklch(0.248 0 173.29);
--destructive: oklch(0.634 0.199 29.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0 171.254);
--chart-1: oklch(0.789 0 171.254);
--chart-2: oklch(0.789 0 171.254);
--chart-3: oklch(0.789 0 171.254);
--chart-4: oklch(0.813 0 165.964);
--chart-5: oklch(0.786 0.005 17.256);
}