Manifestare Civilization for shadcn/ui

Manifestare Civilization is a shadcn/ui theme built around a violet primary color (#472291) with muted light violet accents (#c3bbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#472291) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#080410black
#ffffffwhite
Card
#fcfcfcsnow
#040308black
Card foreground
#06030cblack
#ffffffwhite
Popover
#fcfcfcsnow
#040308black
Popover foreground
#06030cblack
#ffffffwhite
Primary
#472291darkslateblue
#472291darkslateblue
Primary foreground
#f0eafalavender
#f0eafalavender
Secondary
#dad6e1gainsboro
#302b3bdarkslategray
Secondary foreground
#3f384cdarkslategray
#c9c4d4thistle
Muted
#e0daecgainsboro
#191325black
Muted foreground
#645f6ddimgray
#9792a0darkgray
Accent
#c3bbd3silver
#3f3456darkslategray
Accent foreground
#2b2438darkslategray
#dbd6e6gainsboro
Destructive
#8d2207darkred
#f44e25orangered
Destructive foreground
#fcd4cabisque
#ffffffwhite
Border
#ededeewhitesmoke
#262527darkslategray
Input
#ededeewhitesmoke
#262527darkslategray
Ring
#472291darkslateblue
#472291darkslateblue

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.02:1AAA
Primary button9.39:1AAA
Secondary button7.79:1AAA
Muted text4.53:1AA
Accent8.05:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.79:1AAA
Text on card20.59:1AAA
Primary button9.39:1AAA
Secondary button8.03:1AAA
Muted text5.95:1AA
Accent8.06:1AAA
Destructive3.52:1AA Large

CSS variables

Paste this into your globals.css to use Manifestare Civilization in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.03 300.539);
  --muted: oklch(0.899 0.024 301.058);
  --muted-foreground: oklch(0.494 0.023 300.737);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.113 0.026 301.823);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.113 0.026 301.823);
  --border: oklch(0.946 0.001 301.476);
  --input: oklch(0.946 0.001 301.476);
  --primary: oklch(0.375 0.168 291.267);
  --primary-foreground: oklch(0.947 0.022 301.123);
  --secondary: oklch(0.882 0.015 301.219);
  --secondary-foreground: oklch(0.357 0.035 299.897);
  --accent: oklch(0.806 0.034 300.817);
  --accent-foreground: oklch(0.277 0.036 299.354);
  --destructive: oklch(0.424 0.146 34.014);
  --destructive-foreground: oklch(0.901 0.048 34.341);
  --ring: oklch(0.375 0.168 291.267);
  --chart-1: oklch(0.375 0.168 291.267);
  --chart-2: oklch(0.882 0.015 301.219);
  --chart-3: oklch(0.806 0.034 300.817);
  --chart-4: oklch(0.907 0.012 301.285);
  --chart-5: oklch(0.374 0.174 290.517);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.015 301.958);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.035 298.63);
  --muted-foreground: oklch(0.668 0.021 300.975);
  --popover: oklch(0.102 0.019 301.958);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.019 301.958);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.268 0.003 301.319);
  --input: oklch(0.268 0.003 301.319);
  --primary: oklch(0.375 0.168 291.267);
  --primary-foreground: oklch(0.947 0.022 301.123);
  --secondary: oklch(0.301 0.03 299.873);
  --secondary-foreground: oklch(0.829 0.023 301.041);
  --accent: oklch(0.352 0.06 298.613);
  --accent-foreground: oklch(0.884 0.023 301.07);
  --destructive: oklch(0.651 0.208 34.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.375 0.168 291.267);
  --chart-1: oklch(0.375 0.168 291.267);
  --chart-2: oklch(0.301 0.03 299.873);
  --chart-3: oklch(0.352 0.06 298.613);
  --chart-4: oklch(0.329 0.034 299.821);
  --chart-5: oklch(0.374 0.174 290.517);
}