Tender for shadcn/ui

Tender is a shadcn/ui theme built around a green primary color (#c1e391) with violet accents (#b391e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#c1e391) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b04black
Foreground
#0b1104black
#ffffffwhite
Card
#fcfcfcsnow
#0b0f06black
Card foreground
#080d03black
#ffffffwhite
Popover
#ffffffwhite
#080b04black
Popover foreground
#0b1104black
#ffffffwhite
Primary
#c1e391khaki
#c1e391khaki
Primary foreground
#24350ddarkgreen
#24350ddarkgreen
Secondary
#b391e3plum
#b391e3plum
Secondary foreground
#1e0d35midnightblue
#1e0d35midnightblue
Muted
#dcd3e9gainsboro
#1f162cblack
Muted foreground
#56515cdimgray
#a7a3aedarkgray
Accent
#b391e3plum
#b391e3plum
Accent foreground
#1e0d35midnightblue
#1e0d35midnightblue
Destructive
#d4520cchocolate
#f2671cchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1e391khaki
#c1e391khaki

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.21:1AAA
Primary button9.25:1AAA
Secondary button6.93:1AA
Muted text5.31:1AA
Accent6.93:1AA
Destructive4.18:1AA Large
Dark mode
Text on background19.79:1AAA
Text on card19.37:1AAA
Primary button9.25:1AAA
Secondary button6.93:1AA
Muted text7.01:1AAA
Accent6.93:1AA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.03 126.025);
  --muted: oklch(0.88 0.032 304.54);
  --muted-foreground: oklch(0.445 0.018 304.497);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.03 126.025);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.148 0.026 124.567);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.873 0.114 127.015);
  --primary-foreground: oklch(0.304 0.066 128.959);
  --secondary: oklch(0.719 0.122 302.606);
  --secondary-foreground: oklch(0.21 0.075 299.007);
  --accent: oklch(0.719 0.122 302.606);
  --accent-foreground: oklch(0.21 0.075 299.007);
  --destructive: oklch(0.604 0.178 42.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.114 127.015);
  --chart-1: oklch(0.873 0.114 127.015);
  --chart-2: oklch(0.719 0.122 302.606);
  --chart-3: oklch(0.719 0.122 302.606);
  --chart-4: oklch(0.75 0.108 303.005);
  --chart-5: oklch(0.877 0.119 127.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.018 124.499);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.044 302.144);
  --muted-foreground: oklch(0.723 0.016 304.746);
  --popover: oklch(0.144 0.018 124.499);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.16 0.021 125.795);
  --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.873 0.114 127.015);
  --primary-foreground: oklch(0.304 0.066 128.959);
  --secondary: oklch(0.719 0.122 302.606);
  --secondary-foreground: oklch(0.21 0.075 299.007);
  --accent: oklch(0.719 0.122 302.606);
  --accent-foreground: oklch(0.21 0.075 299.007);
  --destructive: oklch(0.678 0.188 43.592);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.873 0.114 127.015);
  --chart-1: oklch(0.873 0.114 127.015);
  --chart-2: oklch(0.719 0.122 302.606);
  --chart-3: oklch(0.719 0.122 302.606);
  --chart-4: oklch(0.75 0.108 303.005);
  --chart-5: oklch(0.877 0.119 127.109);
}