Colonisation for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button7.29:1AAA
Secondary button7.42:1AAA
Muted text5.42:1AA
Accent7.99:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.29:1AAA
Secondary button8.04:1AAA
Muted text6.74:1AA
Accent7.39:1AAA
Destructive3.68:1AA Large

CSS variables

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);
}