Gherkin for shadcn/ui

Gherkin is a shadcn/ui theme built around a vivid green primary color (#0ebe5a) with vivid teal accents (#0ebeb2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid green primary (#0ebe5a) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#020805black
Foreground
#000000black
#f5faf7whitesmoke
Card
#f8fcfamintcream
#030c07black
Card foreground
#000000black
#f8fcfamintcream
Popover
#f8fcfamintcream
#030c07black
Popover foreground
#000000black
#f8fcfamintcream
Primary
#0ebe5amediumseagreen
#0ebe5amediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1abe0elimegreen
#1abe0elimegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff1eewhitesmoke
#0e110eblack
Muted foreground
#5c675bdimgray
#99a498darkgray
Accent
#0ebeb2lightseagreen
#0ebeb2lightseagreen
Accent foreground
#000000black
#000000black
Destructive
#d63605orangered
#fa5a29tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0ebe5amediumseagreen
#0ebe5amediumseagreen

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.26:1AAA
Primary button2.46:1Fail
Secondary button2.50:1Fail
Muted text5.21:1AA
Accent9.00:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.14:1AAA
Primary button2.46:1Fail
Secondary button2.50:1Fail
Muted text7.35:1AAA
Accent9.00:1AAA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 161.749);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.005 143.61);
  --muted-foreground: oklch(0.5 0.023 143.395);
  --popover: oklch(0.987 0.005 161.689);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 161.689);
  --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.701 0.189 150.231);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.696 0.231 142.218);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.722 0.124 186.952);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.576 0.202 34.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.189 150.231);
  --chart-1: oklch(0.701 0.189 150.231);
  --chart-2: oklch(0.696 0.231 142.218);
  --chart-3: oklch(0.722 0.124 186.952);
  --chart-4: oklch(0.734 0.244 142.224);
  --chart-5: oklch(0.709 0.194 149.921);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.018 161.788);
  --foreground: oklch(0.98 0.007 161.647);
  --muted: oklch(0.172 0.007 143.42);
  --muted-foreground: oklch(0.706 0.021 143.48);
  --popover: oklch(0.142 0.02 161.486);
  --popover-foreground: oklch(0.987 0.004 161.702);
  --card: oklch(0.142 0.02 161.486);
  --card-foreground: oklch(0.987 0.004 161.702);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.701 0.189 150.231);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.696 0.231 142.218);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.722 0.124 186.952);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.674 0.204 36.581);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.701 0.189 150.231);
  --chart-1: oklch(0.701 0.189 150.231);
  --chart-2: oklch(0.696 0.231 142.218);
  --chart-3: oklch(0.722 0.124 186.952);
  --chart-4: oklch(0.734 0.244 142.224);
  --chart-5: oklch(0.709 0.194 149.921);
}