bioparallel for shadcn/ui

bioparallel is a shadcn/ui theme built around a green primary color (#61bd67) with teal accents (#9ee0c9). The light mode uses a green-tinted background (#ecf9ed). Dark mode keeps the green primary (#61bd67) on a green-tinted background (#080e09).

Color palette

TokenLightDark
Background
#ecf9edhoneydew
#080e09black
Foreground
#437046darkolivegreen
#cce4cdlightgrey
Card
#cdedcfgainsboro
#0b1a0cblack
Card foreground
#0a130ablack
#f8fbf8mintcream
Popover
#b7f0bbpowderblue
#173419darkgreen
Popover foreground
#49924eseagreen
#f8fbf8mintcream
Primary
#61bd67mediumseagreen
#61bd67mediumseagreen
Primary foreground
#0a130ablack
#0a130ablack
Secondary
#badebdsilver
#173619darkgreen
Secondary foreground
#0a130ablack
#f8fbf8mintcream
Muted
#c8e0calightgrey
#122a14black
Muted foreground
#595e59dimgray
#889e89darkseagreen
Accent
#9ee0c9lightblue
#1d4f3edarkslategray
Accent foreground
#12241eblack
#f8fbfamintcream
Destructive
#ae3210firebrick
#c97b66indianred
Destructive foreground
#e1ece1gainsboro
#0e0f0eblack
Border
#427e46seagreen
#4b654ddarkolivegreen
Input
#a3bfa5darkgray
#4b654ddarkolivegreen
Ring
#6fae74darkseagreen
#61bd67mediumseagreen

Contrast

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

Light mode
Text on background5.29:1AA
Text on card14.92:1AAA
Primary button8.07:1AAA
Secondary button12.83:1AAA
Muted text4.71:1AA
Accent10.78:1AAA
Destructive5.31:1AA
Dark mode
Text on background14.39:1AAA
Text on card17.28:1AAA
Primary button8.07:1AAA
Secondary button12.71:1AAA
Muted text5.34:1AA
Accent8.99:1AAA
Destructive5.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.968 0.021 147.333);
  --foreground: oklch(0.5 0.082 145.735);
  --muted: oklch(0.882 0.038 147.107);
  --muted-foreground: oklch(0.476 0.011 145.408);
  --popover: oklch(0.902 0.092 146.479);
  --popover-foreground: oklch(0.595 0.124 145.159);
  --card: oklch(0.914 0.052 146.966);
  --card-foreground: oklch(0.174 0.023 144.521);
  --border: oklch(0.538 0.106 145.308);
  --input: oklch(0.776 0.048 146.914);
  --primary: oklch(0.72 0.15 145.154);
  --primary-foreground: oklch(0.174 0.023 146.146);
  --secondary: oklch(0.865 0.059 146.844);
  --secondary-foreground: oklch(0.175 0.023 146.122);
  --accent: oklch(0.857 0.075 170.71);
  --accent-foreground: oklch(0.243 0.027 169.732);
  --destructive: oklch(0.502 0.166 34.861);
  --destructive-foreground: oklch(0.932 0.019 145.423);
  --ring: oklch(0.693 0.107 145.859);
  --chart-1: oklch(0.72 0.15 145.154);
  --chart-2: oklch(0.865 0.059 146.844);
  --chart-3: oklch(0.857 0.075 170.71);
  --chart-4: oklch(0.885 0.05 146.969);
  --chart-5: oklch(0.727 0.159 145.003);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.015 146.655);
  --foreground: oklch(0.895 0.04 147.093);
  --muted: oklch(0.258 0.051 145.307);
  --muted-foreground: oklch(0.676 0.04 146.943);
  --popover: oklch(0.293 0.06 145.22);
  --popover-foreground: oklch(0.985 0.006 147.489);
  --card: oklch(0.199 0.033 145.716);
  --card-foreground: oklch(0.985 0.006 147.489);
  --border: oklch(0.478 0.049 146.462);
  --input: oklch(0.478 0.049 146.462);
  --primary: oklch(0.72 0.15 145.154);
  --primary-foreground: oklch(0.173 0.022 146.211);
  --secondary: oklch(0.301 0.064 145.102);
  --secondary-foreground: oklch(0.985 0.006 147.489);
  --accent: oklch(0.388 0.062 167.148);
  --accent-foreground: oklch(0.986 0.004 173.455);
  --destructive: oklch(0.662 0.103 35.936);
  --destructive-foreground: oklch(0.167 0.003 145.457);
  --ring: oklch(0.72 0.15 145.154);
  --chart-1: oklch(0.72 0.15 145.154);
  --chart-2: oklch(0.301 0.064 145.102);
  --chart-3: oklch(0.388 0.062 167.148);
  --chart-4: oklch(0.338 0.074 145.004);
  --chart-5: oklch(0.727 0.159 145.003);
}