Civilian is a shadcn/ui theme built around a deep pink primary color (#6d1c51) with muted pink accents (#c5afbd). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep pink primary (#6d1c51) on a pink-tinted background (#0d070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0d070bblack |
| Foreground | #14050fblack | #f9f6f8whitesmoke |
| Card | #fcf8fasnow | #11090eblack |
| Card foreground | #10040cblack | #fbf9fasnow |
| Popover | #fdfcfdwhite | #0d070bblack |
| Popover foreground | #14050fblack | #f9f6f8whitesmoke |
| Primary | #6d1c51purple | #6d1c51purple |
| Primary foreground | #f1cae4gainsboro | #f1cae4gainsboro |
| Secondary | #d5cdd2lightgrey | #2e2e2edarkslategray |
| Secondary foreground | #3d3439darkslategray | #c7c7c7silver |
| Muted | #efebeewhitesmoke | #141010black |
| Muted foreground | #5e5059dimgray | #afa1a1darkgray |
| Accent | #c5afbdsilver | #453b3bdarkslategray |
| Accent foreground | #261c23black | #dcd6d6gainsboro |
| Destructive | #752106maroon | #f4450borangered |
| Destructive foreground | #fbc4b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d1c51purple | #6d1c51purple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Civilian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 338.034);
--foreground: oklch(0.149 0.034 341.429);
--muted: oklch(0.944 0.005 338.104);
--muted-foreground: oklch(0.447 0.023 339.025);
--popover: oklch(0.991 0.002 338.034);
--popover-foreground: oklch(0.149 0.034 341.429);
--card: oklch(0.983 0.005 338.085);
--card-foreground: oklch(0.136 0.03 340.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.378 0.128 345.058);
--primary-foreground: oklch(0.881 0.055 339.235);
--secondary: oklch(0.857 0.01 338.235);
--secondary-foreground: oklch(0.335 0.016 338.952);
--accent: oklch(0.778 0.032 338.818);
--accent-foreground: oklch(0.242 0.021 339.674);
--destructive: oklch(0.379 0.122 36.759);
--destructive-foreground: oklch(0.864 0.069 39.233);
--ring: oklch(0.378 0.128 345.058);
--chart-1: oklch(0.378 0.128 345.058);
--chart-2: oklch(0.857 0.01 338.235);
--chart-3: oklch(0.778 0.032 338.818);
--chart-4: oklch(0.881 0.009 338.186);
--chart-5: oklch(0.38 0.133 345.41);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 339.264);
--foreground: oklch(0.975 0.005 338.083);
--muted: oklch(0.177 0.007 17.789);
--muted-foreground: oklch(0.722 0.016 17.534);
--popover: oklch(0.141 0.014 339.264);
--popover-foreground: oklch(0.975 0.005 338.083);
--card: oklch(0.153 0.017 340.061);
--card-foreground: oklch(0.984 0.003 338.05);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.378 0.128 345.058);
--primary-foreground: oklch(0.881 0.055 339.235);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.362 0.014 17.834);
--accent-foreground: oklch(0.88 0.007 17.285);
--destructive: oklch(0.642 0.218 35.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.128 345.058);
--chart-1: oklch(0.378 0.128 345.058);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.362 0.014 17.834);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.38 0.133 345.41);
}