Civilian is a shadcn/ui theme built around a light indigo primary color (#aaa9db) with muted light indigo accents (#cacad3). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the light indigo primary (#aaa9db) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #040311black | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #040311black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #040311black | #fcfcfdwhite |
| Primary | #aaa9dblightsteelblue | #aaa9dblightsteelblue |
| Primary foreground | #19183amidnightblue | #19183amidnightblue |
| Secondary | #cacad3lightgrey | #111118black |
| Secondary foreground | #31303bdarkslategray | #a09fbcdarkgray |
| Muted | #dedeedgainsboro | #121221black |
| Muted foreground | #4f4e5adarkslategray | #a5a5b1darkgray |
| Accent | #cacad3lightgrey | #111118black |
| Accent foreground | #31303bdarkslategray | #a09fbcdarkgray |
| Destructive | #730d0dmaroon | #e93535crimson |
| Destructive foreground | #f7babalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aaa9dblightsteelblue | #aaa9dblightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Civilian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 287.883);
--foreground: oklch(0.113 0.036 281.297);
--muted: oklch(0.904 0.021 287.496);
--muted-foreground: oklch(0.43 0.019 287.087);
--popover: oklch(0.99 0.003 287.883);
--popover-foreground: oklch(0.113 0.036 281.297);
--card: oklch(0.99 0.003 287.883);
--card-foreground: oklch(0.113 0.036 281.297);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.753 0.072 286.067);
--primary-foreground: oklch(0.231 0.063 281.803);
--secondary: oklch(0.841 0.013 287.644);
--secondary-foreground: oklch(0.315 0.019 286.782);
--accent: oklch(0.841 0.013 287.644);
--accent-foreground: oklch(0.315 0.019 286.782);
--destructive: oklch(0.356 0.135 27.573);
--destructive-foreground: oklch(0.845 0.071 18.662);
--ring: oklch(0.753 0.072 286.067);
--chart-1: oklch(0.753 0.072 286.067);
--chart-2: oklch(0.841 0.013 287.644);
--chart-3: oklch(0.841 0.013 287.644);
--chart-4: oklch(0.867 0.011 287.7);
--chart-5: oklch(0.749 0.077 285.905);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 287.904);
--muted: oklch(0.19 0.032 284.465);
--muted-foreground: oklch(0.726 0.017 287.505);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 287.904);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 287.904);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.753 0.072 286.067);
--primary-foreground: oklch(0.231 0.063 281.803);
--secondary: oklch(0.18 0.015 286.319);
--secondary-foreground: oklch(0.712 0.042 286.796);
--accent: oklch(0.18 0.015 286.319);
--accent-foreground: oklch(0.712 0.042 286.796);
--destructive: oklch(0.611 0.215 26.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.753 0.072 286.067);
--chart-1: oklch(0.753 0.072 286.067);
--chart-2: oklch(0.18 0.015 286.319);
--chart-3: oklch(0.18 0.015 286.319);
--chart-4: oklch(0.21 0.02 286.081);
--chart-5: oklch(0.749 0.077 285.905);
}