Pickle for shadcn/ui

Pickle is a shadcn/ui theme built around a yellow primary color (#b6ad49) with neutral gray accents (#d6d6d1). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the yellow primary (#b6ad49) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#fcfcf7snow
#0b0b04black
Foreground
#0c0c03black
#fcfbf8snow
Card
#fbfaf4floralwhite
#0f0e05black
Card foreground
#080802black
#fdfdfcwhite
Popover
#fbfaf4floralwhite
#0f0e05black
Popover foreground
#080802black
#fdfdfcwhite
Primary
#b6ad49darkkhaki
#b6ad49darkkhaki
Primary foreground
#24230fblack
#24230fblack
Secondary
#d6d6d1lightgrey
#181816black
Secondary foreground
#3e3e37darkslategray
#b3b3addarkgray
Muted
#e9e7d3antiquewhite
#2c2b16black
Muted foreground
#686864dimgray
#9b9b97darkgray
Accent
#d6d6d1lightgrey
#181816black
Accent foreground
#3e3e37darkslategray
#b3b3addarkgray
Destructive
#b84a0asienna
#f36e20chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6ad49darkkhaki
#b6ad49darkkhaki

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.25:1AAA
Primary button6.86:1AA
Secondary button7.38:1AAA
Muted text4.49:1AA Large
Accent7.38:1AAA
Destructive5.23:1AA
Dark mode
Text on background19.09:1AAA
Text on card18.98:1AAA
Primary button6.86:1AA
Secondary button8.45:1AAA
Muted text5.15:1AA
Accent8.45:1AAA
Destructive7.05:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 102.312);
  --foreground: oklch(0.15 0.021 105.076);
  --muted: oklch(0.925 0.027 102.684);
  --muted-foreground: oklch(0.515 0.006 102.395);
  --popover: oklch(0.985 0.009 102.362);
  --popover-foreground: oklch(0.13 0.018 105.409);
  --card: oklch(0.985 0.009 102.362);
  --card-foreground: oklch(0.13 0.018 105.409);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.122 104.119);
  --primary-foreground: oklch(0.251 0.034 103.964);
  --secondary: oklch(0.875 0.006 102.333);
  --secondary-foreground: oklch(0.361 0.011 102.689);
  --accent: oklch(0.875 0.006 102.333);
  --accent-foreground: oklch(0.361 0.011 102.689);
  --destructive: oklch(0.548 0.157 43.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.122 104.119);
  --chart-1: oklch(0.736 0.122 104.119);
  --chart-2: oklch(0.875 0.006 102.333);
  --chart-3: oklch(0.875 0.006 102.333);
  --chart-4: oklch(0.897 0.005 102.309);
  --chart-5: oklch(0.746 0.128 104.122);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.016 104.632);
  --foreground: oklch(0.989 0.004 102.286);
  --muted: oklch(0.283 0.034 103.849);
  --muted-foreground: oklch(0.688 0.005 102.34);
  --popover: oklch(0.162 0.019 104.176);
  --popover-foreground: oklch(0.994 0.002 102.249);
  --card: oklch(0.162 0.019 104.176);
  --card-foreground: oklch(0.994 0.002 102.249);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.736 0.122 104.119);
  --primary-foreground: oklch(0.251 0.034 103.964);
  --secondary: oklch(0.207 0.003 102.467);
  --secondary-foreground: oklch(0.764 0.008 102.385);
  --accent: oklch(0.207 0.003 102.467);
  --accent-foreground: oklch(0.764 0.008 102.385);
  --destructive: oklch(0.689 0.184 45.31);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.736 0.122 104.119);
  --chart-1: oklch(0.736 0.122 104.119);
  --chart-2: oklch(0.207 0.003 102.467);
  --chart-3: oklch(0.207 0.003 102.467);
  --chart-4: oklch(0.241 0.004 102.492);
  --chart-5: oklch(0.746 0.128 104.122);
}