Ectoderm for shadcn/ui

Ectoderm is a shadcn/ui theme built around a purple primary color (#ab3088) with green accents (#30ab53). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#ab3088) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#070306black
Foreground
#10050dblack
#fdfcfdwhite
Card
#faf5f8whitesmoke
#0a0509black
Card foreground
#0c0409black
#ffffffwhite
Popover
#faf5f8whitesmoke
#0a0509black
Popover foreground
#0c0409black
#ffffffwhite
Primary
#ab3088mediumvioletred
#ab3088mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#30ab53seagreen
#30ab53seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecf3eewhitesmoke
#0c130eblack
Muted foreground
#3d433edarkslategray
#bcc2besilver
Accent
#30ab53seagreen
#30ab53seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d05411chocolate
#ed651dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab3088mediumvioletred
#ab3088mediumvioletred

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card18.76:1AAA
Primary button5.97:1AA
Secondary button2.96:1Fail
Muted text9.00:1AAA
Accent2.96:1Fail
Destructive4.25:1AA Large
Dark mode
Text on background19.99:1AAA
Text on card20.21:1AAA
Primary button5.97:1AA
Secondary button2.96:1Fail
Muted text10.41:1AAA
Accent2.96:1Fail
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 335.279);
  --foreground: oklch(0.137 0.028 337.314);
  --muted: oklch(0.958 0.01 154.999);
  --muted-foreground: oklch(0.375 0.011 154.622);
  --popover: oklch(0.975 0.007 335.324);
  --popover-foreground: oklch(0.124 0.024 336.013);
  --card: oklch(0.975 0.007 335.324);
  --card-foreground: oklch(0.124 0.024 336.013);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.525 0.183 341.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.655 0.166 148.619);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.655 0.166 148.619);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.599 0.171 42.787);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.525 0.183 341.472);
  --chart-1: oklch(0.525 0.183 341.472);
  --chart-2: oklch(0.655 0.166 148.619);
  --chart-3: oklch(0.655 0.166 148.619);
  --chart-4: oklch(0.688 0.175 148.577);
  --chart-5: oklch(0.528 0.19 341.781);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.013 335.543);
  --foreground: oklch(0.992 0.001 335.211);
  --muted: oklch(0.177 0.015 153.518);
  --muted-foreground: oklch(0.809 0.009 154.976);
  --popover: oklch(0.127 0.015 335.543);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.015 335.543);
  --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.525 0.183 341.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.655 0.166 148.619);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.655 0.166 148.619);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.184 43.698);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.525 0.183 341.472);
  --chart-1: oklch(0.525 0.183 341.472);
  --chart-2: oklch(0.655 0.166 148.619);
  --chart-3: oklch(0.655 0.166 148.619);
  --chart-4: oklch(0.688 0.175 148.577);
  --chart-5: oklch(0.528 0.19 341.781);
}