Supplement for shadcn/ui

Supplement is a shadcn/ui theme built around a green primary color (#227c43) with teal accents (#227c70). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the green primary (#227c43) on a green-tinted background (#050f09).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#050f09black
Foreground
#000000black
#f7f8f7whitesmoke
Card
#f3fcf6mintcream
#07130bblack
Card foreground
#000000black
#f9fafaghostwhite
Popover
#f7fdf9mintcream
#050f09black
Popover foreground
#000000black
#f7f8f7whitesmoke
Primary
#227c43seagreen
#227c43seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2e7c22forestgreen
#2e7c22forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dadddagainsboro
#222522black
Muted foreground
#475a44darkslategray
#a8bba5darkgray
Accent
#227c70seagreen
#227c70seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cd1b0efirebrick
#f14337tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#227c43seagreen
#227c43seagreen

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.03:1AAA
Primary button5.20:1AA
Secondary button5.21:1AA
Muted text5.45:1AA
Accent5.01:1AA
Destructive5.58:1AA
Dark mode
Text on background18.27:1AAA
Text on card18.17:1AAA
Primary button5.20:1AA
Secondary button5.21:1AA
Muted text7.56:1AAA
Accent5.01:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 158.548);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.894 0.006 141.574);
  --muted-foreground: oklch(0.445 0.043 141.325);
  --popover: oklch(0.988 0.008 158.548);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.012 158.46);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.52 0.122 151.398);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.519 0.146 141.169);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.085 182.177);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.542 0.21 29.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.122 151.398);
  --chart-1: oklch(0.52 0.122 151.398);
  --chart-2: oklch(0.519 0.146 141.169);
  --chart-3: oklch(0.532 0.085 182.177);
  --chart-4: oklch(0.555 0.157 141.177);
  --chart-5: oklch(0.526 0.127 151.054);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.02 157.292);
  --foreground: oklch(0.978 0.002 158.669);
  --muted: oklch(0.262 0.008 141.507);
  --muted-foreground: oklch(0.771 0.037 141.455);
  --popover: oklch(0.156 0.02 157.292);
  --popover-foreground: oklch(0.978 0.002 158.669);
  --card: oklch(0.171 0.024 155.874);
  --card-foreground: oklch(0.985 0.002 158.686);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.52 0.122 151.398);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.519 0.146 141.169);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.085 182.177);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.212 28.672);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.122 151.398);
  --chart-1: oklch(0.52 0.122 151.398);
  --chart-2: oklch(0.519 0.146 141.169);
  --chart-3: oklch(0.532 0.085 182.177);
  --chart-4: oklch(0.555 0.157 141.177);
  --chart-5: oklch(0.526 0.127 151.054);
}