Zany for shadcn/ui

Zany is a shadcn/ui theme built around a purple primary color (#df58cb) with cyan accents (#58cbdf). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#df58cb) on a purple-tinted background (#0a0509).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a0509black
Foreground
#11030fblack
#fdfbfdsnow
Card
#fefbfewhite
#0a0509black
Card foreground
#11030fblack
#fdfbfdsnow
Popover
#fefbfewhite
#0a0509black
Popover foreground
#11030fblack
#fdfbfdsnow
Primary
#df58cborchid
#df58cborchid
Primary foreground
#040104black
#040104black
Secondary
#cbdf58darkkhaki
#cbdf58darkkhaki
Secondary foreground
#040401black
#040401black
Muted
#e9ebdbbeige
#222414black
Muted foreground
#5a5b52dimgray
#abada4darkgray
Accent
#58cbdfmediumturquoise
#58cbdfmediumturquoise
Accent foreground
#010404black
#010404black
Destructive
#a63903saddlebrown
#fb5d0eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df58cborchid
#df58cborchid

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button6.32:1AA
Secondary button13.93:1AAA
Muted text5.68:1AA
Accent10.79:1AAA
Destructive6.55:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button6.32:1AA
Secondary button13.93:1AAA
Muted text6.94:1AA
Accent10.79:1AAA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 330.315);
  --foreground: oklch(0.136 0.039 332.699);
  --muted: oklch(0.934 0.022 113.74);
  --muted-foreground: oklch(0.467 0.014 113.854);
  --popover: oklch(0.991 0.005 330.315);
  --popover-foreground: oklch(0.136 0.039 332.699);
  --card: oklch(0.991 0.005 330.315);
  --card-foreground: oklch(0.136 0.039 332.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.674 0.212 333.988);
  --primary-foreground: oklch(0.084 0.023 331.581);
  --secondary: oklch(0.863 0.16 117.09);
  --secondary-foreground: oklch(0.105 0.017 114.398);
  --accent: oklch(0.784 0.107 210.979);
  --accent-foreground: oklch(0.098 0.012 205.607);
  --destructive: oklch(0.496 0.153 40.284);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.212 333.988);
  --chart-1: oklch(0.674 0.212 333.988);
  --chart-2: oklch(0.863 0.16 117.09);
  --chart-3: oklch(0.784 0.107 210.979);
  --chart-4: oklch(0.873 0.151 116.753);
  --chart-5: oklch(0.676 0.219 334.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 330.845);
  --foreground: oklch(0.991 0.003 330.287);
  --muted: oklch(0.253 0.029 115.444);
  --muted-foreground: oklch(0.743 0.012 113.615);
  --popover: oklch(0.128 0.015 330.845);
  --popover-foreground: oklch(0.991 0.003 330.287);
  --card: oklch(0.128 0.015 330.845);
  --card-foreground: oklch(0.991 0.003 330.287);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.674 0.212 333.988);
  --primary-foreground: oklch(0.084 0.023 331.581);
  --secondary: oklch(0.863 0.16 117.09);
  --secondary-foreground: oklch(0.105 0.017 114.398);
  --accent: oklch(0.784 0.107 210.979);
  --accent-foreground: oklch(0.098 0.012 205.607);
  --destructive: oklch(0.679 0.207 40.503);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.674 0.212 333.988);
  --chart-1: oklch(0.674 0.212 333.988);
  --chart-2: oklch(0.863 0.16 117.09);
  --chart-3: oklch(0.784 0.107 210.979);
  --chart-4: oklch(0.873 0.151 116.753);
  --chart-5: oklch(0.676 0.219 334.122);
}