Paramecium for shadcn/ui

Paramecium is a shadcn/ui theme built around a vivid deep violet primary color (#170632) with vivid deep green accents (#063217). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the vivid deep violet primary (#170632) on a violet-tinted background (#09060f).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#09060fblack
Foreground
#040208black
#ffffffwhite
Card
#f6f3fcghostwhite
#0b0712black
Card foreground
#020104black
#ffffffwhite
Popover
#f6f3fcghostwhite
#0b0712black
Popover foreground
#020104black
#ffffffwhite
Primary
#170632black
#170632black
Primary foreground
#a77befmediumpurple
#a77befmediumpurple
Secondary
#321706black
#321706black
Secondary foreground
#efa77blightsalmon
#efa77blightsalmon
Muted
#ede4deantiquewhite
#211812black
Muted foreground
#635a54dimgray
#aba19cdarkgray
Accent
#063217black
#063217black
Accent foreground
#1fe56bspringgreen
#1fe56bspringgreen
Destructive
#b21510firebrick
#e11a14crimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#170632black
#170632black

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.00:1AAA
Primary button6.06:1AA
Secondary button8.31:1AAA
Muted text5.35:1AA
Accent8.43:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.12:1AAA
Text on card19.90:1AAA
Primary button6.06:1AA
Secondary button8.31:1AAA
Muted text6.91:1AA
Accent8.43:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 303.523);
  --foreground: oklch(0.098 0.025 304.772);
  --muted: oklch(0.924 0.013 54.313);
  --muted-foreground: oklch(0.475 0.015 54.084);
  --popover: oklch(0.969 0.012 303.462);
  --popover-foreground: oklch(0.078 0.02 304.772);
  --card: oklch(0.969 0.012 303.462);
  --card-foreground: oklch(0.078 0.02 304.772);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.185 0.082 294.91);
  --primary-foreground: oklch(0.676 0.171 299.518);
  --secondary: oklch(0.24 0.052 50.511);
  --secondary-foreground: oklch(0.789 0.104 52.535);
  --accent: oklch(0.281 0.068 151.558);
  --accent-foreground: oklch(0.807 0.219 149.397);
  --destructive: oklch(0.488 0.189 28.943);
  --destructive-foreground: oklch(0.979 0.009 19.733);
  --ring: oklch(0.185 0.082 294.91);
  --chart-1: oklch(0.185 0.082 294.91);
  --chart-2: oklch(0.24 0.052 50.511);
  --chart-3: oklch(0.281 0.068 151.558);
  --chart-4: oklch(0.277 0.063 49.344);
  --chart-5: oklch(0.184 0.085 294.503);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.022 303.113);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.218 0.019 53.323);
  --muted-foreground: oklch(0.717 0.013 54.252);
  --popover: oklch(0.142 0.025 301.609);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.025 301.609);
  --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.185 0.082 294.91);
  --primary-foreground: oklch(0.676 0.171 299.518);
  --secondary: oklch(0.24 0.052 50.511);
  --secondary-foreground: oklch(0.789 0.104 52.535);
  --accent: oklch(0.281 0.068 151.558);
  --accent-foreground: oklch(0.807 0.219 149.397);
  --destructive: oklch(0.58 0.227 29.045);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.185 0.082 294.91);
  --chart-1: oklch(0.185 0.082 294.91);
  --chart-2: oklch(0.24 0.052 50.511);
  --chart-3: oklch(0.281 0.068 151.558);
  --chart-4: oklch(0.277 0.063 49.344);
  --chart-5: oklch(0.184 0.085 294.503);
}