Colonisation is a shadcn/ui theme built around a violet primary color (#b994c7) with muted light violet accents (#d3bddb). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#b994c7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0a030cblack | #fbf8fcghostwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0a030cblack | #fbf8fcghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0a030cblack | #fbf8fcghostwhite |
| Primary | #b994c7darkgray | #b994c7darkgray |
| Primary foreground | #170e1bblack | #170e1bblack |
| Secondary | #e8e0eblavender | #2e2e2edarkslategray |
| Secondary foreground | #543d5cdarkslategray | #c7c7c7silver |
| Muted | #f2ebf4whitesmoke | #140b0bblack |
| Muted foreground | #675c6adimgray | #a39595rosybrown |
| Accent | #d3bddbthistle | #463e3edarkslategray |
| Accent foreground | #3a2442darkslategray | #ddd9d9gainsboro |
| Destructive | #610e05maroon | #f5422etomato |
| Destructive foreground | #faa79elightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b994c7darkgray | #b994c7darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Colonisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.027 318.803);
--muted: oklch(0.948 0.014 317.155);
--muted-foreground: oklch(0.491 0.025 317.073);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.027 318.803);
--card: oklch(1 0 180);
--card-foreground: oklch(0.121 0.027 318.803);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.718 0.083 316.919);
--primary-foreground: oklch(0.183 0.029 316.801);
--secondary: oklch(0.917 0.016 317.15);
--secondary-foreground: oklch(0.398 0.058 316.838);
--accent: oklch(0.826 0.047 317.06);
--accent-foreground: oklch(0.302 0.059 316.678);
--destructive: oklch(0.321 0.118 30.873);
--destructive-foreground: oklch(0.807 0.101 26.474);
--ring: oklch(0.718 0.083 316.919);
--chart-1: oklch(0.718 0.083 316.919);
--chart-2: oklch(0.917 0.016 317.15);
--chart-3: oklch(0.826 0.047 317.06);
--chart-4: oklch(0.942 0.011 317.163);
--chart-5: oklch(0.716 0.091 316.889);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 317.176);
--muted: oklch(0.161 0.016 18.993);
--muted-foreground: oklch(0.681 0.017 17.566);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.006 317.176);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.006 317.176);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.718 0.083 316.919);
--primary-foreground: oklch(0.183 0.029 316.801);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.373 0.011 17.656);
--accent-foreground: oklch(0.889 0.005 17.245);
--destructive: oklch(0.642 0.219 30.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.718 0.083 316.919);
--chart-1: oklch(0.718 0.083 316.919);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.373 0.011 17.656);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.716 0.091 316.889);
}