Epithelium for shadcn/ui

Epithelium is a shadcn/ui theme built around a vivid light green primary color (#d4f8a5) with muted light green accents (#d9ded4). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid light green primary (#d4f8a5) on a green-tinted background (#0b0e07).

Color palette

TokenLightDark
Background
#fafcf8snow
#0b0e07black
Foreground
#030401black
#f8f8f6whitesmoke
Card
#fafcf8snow
#0b0e07black
Card foreground
#030401black
#f8f8f6whitesmoke
Popover
#fafcf8snow
#0b0e07black
Popover foreground
#030401black
#f8f8f6whitesmoke
Primary
#d4f8a5palegoldenrod
#d4f8a5palegoldenrod
Primary foreground
#030500black
#030500black
Secondary
#d9ded4gainsboro
#333432darkslategray
Secondary foreground
#414837darkslategray
#cccdcblightgrey
Muted
#dce1d5gainsboro
#252a1edarkslategray
Muted foreground
#4b5242darkslategray
#b6bdadsilver
Accent
#d9ded4gainsboro
#333432darkslategray
Accent foreground
#414837darkslategray
#cccdcblightgrey
Destructive
#6d1108maroon
#e82311orangered
Destructive foreground
#f9b5aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d4f8a5palegoldenrod
#d4f8a5palegoldenrod

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button17.35:1AAA
Secondary button6.94:1AA
Muted text6.12:1AA
Accent6.94:1AA
Destructive7.06:1AAA
Dark mode
Text on background18.30:1AAA
Text on card18.30:1AAA
Primary button17.35:1AAA
Secondary button7.83:1AAA
Muted text7.63:1AAA
Accent7.83:1AAA
Destructive4.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 125.801);
  --foreground: oklch(0.102 0.017 124.779);
  --muted: oklch(0.903 0.017 125.995);
  --muted-foreground: oklch(0.427 0.028 126.626);
  --popover: oklch(0.988 0.005 125.801);
  --popover-foreground: oklch(0.102 0.017 124.779);
  --card: oklch(0.988 0.005 125.801);
  --card-foreground: oklch(0.102 0.017 124.779);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.935 0.114 127.501);
  --primary-foreground: oklch(0.105 0.023 124.509);
  --secondary: oklch(0.894 0.014 125.952);
  --secondary-foreground: oklch(0.39 0.029 126.756);
  --accent: oklch(0.894 0.014 125.952);
  --accent-foreground: oklch(0.39 0.029 126.756);
  --destructive: oklch(0.347 0.127 30.01);
  --destructive-foreground: oklch(0.834 0.081 24.789);
  --ring: oklch(0.935 0.114 127.501);
  --chart-1: oklch(0.935 0.114 127.501);
  --chart-2: oklch(0.894 0.014 125.952);
  --chart-3: oklch(0.894 0.014 125.952);
  --chart-4: oklch(0.915 0.011 125.904);
  --chart-5: oklch(0.938 0.117 127.56);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.017 126.307);
  --foreground: oklch(0.979 0.003 125.783);
  --muted: oklch(0.275 0.023 126.898);
  --muted-foreground: oklch(0.789 0.024 126.147);
  --popover: oklch(0.157 0.017 126.307);
  --popover-foreground: oklch(0.979 0.003 125.783);
  --card: oklch(0.157 0.017 126.307);
  --card-foreground: oklch(0.979 0.003 125.783);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.935 0.114 127.501);
  --primary-foreground: oklch(0.105 0.023 124.509);
  --secondary: oklch(0.323 0.004 125.895);
  --secondary-foreground: oklch(0.847 0.003 125.786);
  --accent: oklch(0.323 0.004 125.895);
  --accent-foreground: oklch(0.847 0.003 125.786);
  --destructive: oklch(0.597 0.229 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.935 0.114 127.501);
  --chart-1: oklch(0.935 0.114 127.501);
  --chart-2: oklch(0.323 0.004 125.895);
  --chart-3: oklch(0.323 0.004 125.895);
  --chart-4: oklch(0.354 0.004 125.899);
  --chart-5: oklch(0.938 0.117 127.56);
}