Basket for shadcn/ui

Basket is a shadcn/ui theme built around a vivid deep green primary color (#057636) with vivid deep orange accents (#763605). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid deep green primary (#057636) on a green-tinted background (#050f0a).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#050f0ablack
Foreground
#06140cblack
#f9fbfamintcream
Card
#f8fcfamintcream
#050f0ablack
Card foreground
#06140cblack
#f9fbfamintcream
Popover
#f8fcfamintcream
#050f0ablack
Popover foreground
#06140cblack
#f9fbfamintcream
Primary
#057636forestgreen
#057636forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#360576indigo
#360576indigo
Secondary foreground
#d1b1fcplum
#d1b1fcplum
Muted
#e0dbe6gainsboro
#1e1924black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#763605saddlebrown
#763605saddlebrown
Accent foreground
#fcd1b1peachpuff
#fcd1b1peachpuff
Destructive
#9e0505darkred
#f81212red
Destructive foreground
#fed7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#057636forestgreen
#057636forestgreen

Contrast

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

Light mode
Text on background18.20:1AAA
Text on card18.20:1AAA
Primary button5.78:1AA
Secondary button7.94:1AAA
Muted text5.55:1AA
Accent6.51:1AA
Destructive6.40:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button5.78:1AA
Secondary button7.94:1AAA
Muted text7.50:1AAA
Accent6.51:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 161.692);
  --foreground: oklch(0.174 0.026 158.413);
  --muted: oklch(0.898 0.017 305.494);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.987 0.005 161.692);
  --popover-foreground: oklch(0.174 0.026 158.413);
  --card: oklch(0.987 0.005 161.692);
  --card-foreground: oklch(0.174 0.026 158.413);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.494 0.133 150.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.301 0.162 292.306);
  --secondary-foreground: oklch(0.814 0.109 303.927);
  --accent: oklch(0.41 0.105 50.232);
  --accent-foreground: oklch(0.89 0.065 59.218);
  --destructive: oklch(0.442 0.178 28.886);
  --destructive-foreground: oklch(0.913 0.043 17.966);
  --ring: oklch(0.494 0.133 150.362);
  --chart-1: oklch(0.494 0.133 150.362);
  --chart-2: oklch(0.301 0.162 292.306);
  --chart-3: oklch(0.41 0.105 50.232);
  --chart-4: oklch(0.326 0.177 291.851);
  --chart-5: oklch(0.499 0.136 150.103);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.021 160.125);
  --foreground: oklch(0.986 0.003 161.734);
  --muted: oklch(0.224 0.023 304.338);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.157 0.021 160.125);
  --popover-foreground: oklch(0.986 0.003 161.734);
  --card: oklch(0.157 0.021 160.125);
  --card-foreground: oklch(0.986 0.003 161.734);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.494 0.133 150.362);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.301 0.162 292.306);
  --secondary-foreground: oklch(0.814 0.109 303.927);
  --accent: oklch(0.41 0.105 50.232);
  --accent-foreground: oklch(0.89 0.065 59.218);
  --destructive: oklch(0.618 0.248 28.738);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.494 0.133 150.362);
  --chart-1: oklch(0.494 0.133 150.362);
  --chart-2: oklch(0.301 0.162 292.306);
  --chart-3: oklch(0.41 0.105 50.232);
  --chart-4: oklch(0.326 0.177 291.851);
  --chart-5: oklch(0.499 0.136 150.103);
}