Ziggurat for shadcn/ui

Ziggurat is a shadcn/ui theme built around a deep indigo primary color (#151028) with deep violet accents (#221028). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep indigo primary (#151028) on an indigo-tinted background (#06050b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050bblack
Foreground
#030109black
#ffffffwhite
Card
#f9f8fcghostwhite
#08060eblack
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfewhite
#06050bblack
Popover foreground
#030109black
#ffffffwhite
Primary
#151028black
#151028black
Primary foreground
#a495d6mediumpurple
#a495d6mediumpurple
Secondary
#101628black
#101628black
Secondary foreground
#95a6d6lightsteelblue
#95a6d6lightsteelblue
Muted
#e3e6edlavender
#12151cblack
Muted foreground
#4d5260darkslategray
#9fa4b2darkgray
Accent
#221028black
#221028black
Accent foreground
#c495d6plum
#c495d6plum
Destructive
#b5420dfirebrick
#ea5510orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#151028black
#151028black

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.63:1AAA
Primary button6.90:1AA
Secondary button7.44:1AAA
Muted text6.23:1AA
Accent7.35:1AAA
Destructive5.59:1AA
Dark mode
Text on background20.34:1AAA
Text on card20.13:1AAA
Primary button6.90:1AA
Secondary button7.44:1AAA
Muted text7.34:1AAA
Accent7.35:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 297.025);
  --foreground: oklch(0.091 0.029 296.239);
  --muted: oklch(0.924 0.01 270.026);
  --muted-foreground: oklch(0.44 0.024 269.593);
  --popover: oklch(0.99 0.003 297.025);
  --popover-foreground: oklch(0.091 0.029 296.239);
  --card: oklch(0.98 0.006 296.969);
  --card-foreground: oklch(0.073 0.023 296.239);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.194 0.049 291.99);
  --primary-foreground: oklch(0.706 0.095 294.554);
  --secondary: oklch(0.205 0.038 267.857);
  --secondary-foreground: oklch(0.729 0.072 269.045);
  --accent: oklch(0.211 0.053 316.457);
  --accent-foreground: oklch(0.736 0.105 316.844);
  --destructive: oklch(0.533 0.16 40.33);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.049 291.99);
  --chart-1: oklch(0.194 0.049 291.99);
  --chart-2: oklch(0.205 0.038 267.857);
  --chart-3: oklch(0.211 0.053 316.457);
  --chart-4: oklch(0.233 0.046 267.624);
  --chart-5: oklch(0.192 0.052 291.521);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.017 296.687);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.016 269.289);
  --muted-foreground: oklch(0.719 0.021 269.858);
  --popover: oklch(0.118 0.017 296.687);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.02 295.903);
  --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.194 0.049 291.99);
  --primary-foreground: oklch(0.706 0.095 294.554);
  --secondary: oklch(0.205 0.038 267.857);
  --secondary-foreground: oklch(0.729 0.072 269.045);
  --accent: oklch(0.211 0.053 316.457);
  --accent-foreground: oklch(0.736 0.105 316.844);
  --destructive: oklch(0.642 0.196 39.923);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.194 0.049 291.99);
  --chart-1: oklch(0.194 0.049 291.99);
  --chart-2: oklch(0.205 0.038 267.857);
  --chart-3: oklch(0.211 0.053 316.457);
  --chart-4: oklch(0.233 0.046 267.624);
  --chart-5: oklch(0.192 0.052 291.521);
}