Civilisation is a shadcn/ui theme built around a muted light orange primary color (#eae2dc) with muted light violet accents (#e2dcea). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted light orange primary (#eae2dc) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040202black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fdf9f7snow | #070503black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf9f7snow | #070503black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #eae2dcgainsboro | #eae2dcgainsboro |
| Primary foreground | #5d4737darkolivegreen | #5d4737darkolivegreen |
| Secondary | #dceae2gainsboro | #dceae2gainsboro |
| Secondary foreground | #111d16black | #111d16black |
| Muted | #dae1ddgainsboro | #1e2521black |
| Muted foreground | #5a6d62dimgray | #92a59adarkseagreen |
| Accent | #e2dceagainsboro | #e2dceagainsboro |
| Accent foreground | #47375ddarkslategray | #47375ddarkslategray |
| Destructive | #b14206saddlebrown | #f87630tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eae2dcgainsboro | #eae2dcgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 13.97:1 | AAA |
| Muted text | 4.17:1 | AA Large |
| Accent | 7.91:1 | AAA |
| Destructive | 5.73:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 13.97:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 7.60:1 | AAA |
Paste this into your globals.css to use Civilisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 58.326);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.01 160.759);
--muted-foreground: oklch(0.516 0.03 159.57);
--popover: oklch(0.985 0.005 58.289);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.005 58.289);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.917 0.012 58.174);
--primary-foreground: oklch(0.416 0.04 56.904);
--secondary: oklch(0.924 0.019 160.516);
--secondary-foreground: oklch(0.216 0.022 158.351);
--accent: oklch(0.903 0.021 304.728);
--accent-foreground: oklch(0.371 0.067 302.436);
--destructive: oklch(0.527 0.156 41.77);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.917 0.012 58.174);
--chart-1: oklch(0.917 0.012 58.174);
--chart-2: oklch(0.924 0.019 160.516);
--chart-3: oklch(0.903 0.021 304.728);
--chart-4: oklch(0.945 0.014 160.663);
--chart-5: oklch(0.917 0.014 58.152);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.007 64.041);
--foreground: oklch(0.992 0 58.356);
--muted: oklch(0.255 0.013 159.74);
--muted-foreground: oklch(0.705 0.028 160.048);
--popover: oklch(0.116 0.009 64.041);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.009 64.041);
--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.917 0.012 58.174);
--primary-foreground: oklch(0.416 0.04 56.904);
--secondary: oklch(0.924 0.019 160.516);
--secondary-foreground: oklch(0.216 0.022 158.351);
--accent: oklch(0.903 0.021 304.728);
--accent-foreground: oklch(0.371 0.067 302.436);
--destructive: oklch(0.708 0.177 45.397);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.917 0.012 58.174);
--chart-1: oklch(0.917 0.012 58.174);
--chart-2: oklch(0.924 0.019 160.516);
--chart-3: oklch(0.903 0.021 304.728);
--chart-4: oklch(0.945 0.014 160.663);
--chart-5: oklch(0.917 0.014 58.152);
}