Fond Cucumber Queen for shadcn/ui

Fond Cucumber Queen is a shadcn/ui theme built around a green primary color (#3c773d) with purple accents (#773c76). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#3c773d) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#010401black
Foreground
#000000black
#f9fbf9mintcream
Card
#f3fcf3honeydew
#030703black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#010401black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#3c773ddarkolivegreen
#3c773ddarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#773c76rebeccapurple
#773c76rebeccapurple
Secondary foreground
#f6eef6whitesmoke
#f6eef6whitesmoke
Muted
#e9d8e8gainsboro
#271627black
Muted foreground
#584158darkslategray
#bea7besilver
Accent
#773c76rebeccapurple
#773c76rebeccapurple
Accent foreground
#f6eef6whitesmoke
#f6eef6whitesmoke
Destructive
#b62707firebrick
#e23008orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e2e9e2gainsboro
#1b231bblack
Input
#e2e9e2gainsboro
#1b231bblack
Ring
#3c773ddarkolivegreen
#3c773ddarkolivegreen

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.00:1AAA
Primary button5.40:1AA
Secondary button6.88:1AA
Muted text6.68:1AA
Accent6.88:1AA
Destructive6.39:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.85:1AAA
Primary button5.40:1AA
Secondary button6.88:1AA
Muted text7.67:1AAA
Accent6.88:1AA
Destructive4.49:1AA Large

CSS variables

Paste this into your globals.css to use Fond Cucumber Queen in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 145.971);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.028 326.303);
  --muted-foreground: oklch(0.409 0.047 326.941);
  --popover: oklch(0.988 0.01 145.971);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.015 145.928);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.927 0.011 145.955);
  --input: oklch(0.927 0.011 145.955);
  --primary: oklch(0.513 0.108 144.125);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.114 327.87);
  --secondary-foreground: oklch(0.958 0.014 326.172);
  --accent: oklch(0.452 0.114 327.87);
  --accent-foreground: oklch(0.958 0.014 326.172);
  --destructive: oklch(0.506 0.183 32.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.513 0.108 144.125);
  --chart-1: oklch(0.513 0.108 144.125);
  --chart-2: oklch(0.452 0.114 327.87);
  --chart-3: oklch(0.452 0.114 327.87);
  --chart-4: oklch(0.479 0.122 327.885);
  --chart-5: oklch(0.519 0.116 143.982);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.015 144.761);
  --foreground: oklch(0.986 0.003 146.033);
  --muted: oklch(0.231 0.039 327.312);
  --muted-foreground: oklch(0.755 0.041 326.481);
  --popover: oklch(0.096 0.015 144.761);
  --popover-foreground: oklch(0.986 0.003 146.033);
  --card: oklch(0.121 0.019 144.761);
  --card-foreground: oklch(0.993 0.001 146.043);
  --border: oklch(0.244 0.019 145.408);
  --input: oklch(0.244 0.019 145.408);
  --primary: oklch(0.513 0.108 144.125);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.452 0.114 327.87);
  --secondary-foreground: oklch(0.958 0.014 326.172);
  --accent: oklch(0.452 0.114 327.87);
  --accent-foreground: oklch(0.958 0.014 326.172);
  --destructive: oklch(0.594 0.217 32.647);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.513 0.108 144.125);
  --chart-1: oklch(0.513 0.108 144.125);
  --chart-2: oklch(0.452 0.114 327.87);
  --chart-3: oklch(0.452 0.114 327.87);
  --chart-4: oklch(0.479 0.122 327.885);
  --chart-5: oklch(0.519 0.116 143.982);
}