Basketball for shadcn/ui

Basketball is a shadcn/ui theme built around a deep green primary color (#215425) with deep teal accents (#21543e). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#215425) on a neutral background (#020803).

Color palette

TokenLightDark
Background
#fbfefbwhite
#020803black
Foreground
#010401black
#fcfdfcwhite
Card
#f7fdf7mintcream
#030c04black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefbwhite
#020803black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#215425darkslategray
#215425darkslategray
Primary foreground
#c1e6c3lightgrey
#c1e6c3lightgrey
Secondary
#375421darkolivegreen
#375421darkolivegreen
Secondary foreground
#d1e6c1lightgrey
#d1e6c1lightgrey
Muted
#d8dfd3gainsboro
#252c20darkslategray
Muted foreground
#585f53dimgray
#a5aca0darkgray
Accent
#21543edarkslategray
#21543edarkslategray
Accent foreground
#c1e6d6powderblue
#c1e6d6powderblue
Destructive
#e41001red
#f91201red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#215425darkslategray
#215425darkslategray

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.36:1AAA
Primary button6.52:1AA
Secondary button6.44:1AA
Muted text4.84:1AA
Accent6.48:1AA
Destructive4.78:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.84:1AAA
Primary button6.52:1AA
Secondary button6.44:1AA
Muted text6.14:1AA
Accent6.48:1AA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 147.492);
  --foreground: oklch(0.099 0.024 145.664);
  --muted: oklch(0.895 0.018 131.263);
  --muted-foreground: oklch(0.477 0.022 131.489);
  --popover: oklch(0.994 0.005 147.492);
  --popover-foreground: oklch(0.099 0.024 145.664);
  --card: oklch(0.988 0.011 147.437);
  --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.398 0.093 144.785);
  --primary-foreground: oklch(0.89 0.061 146.838);
  --secondary: oklch(0.41 0.084 133.449);
  --secondary-foreground: oklch(0.9 0.055 131.635);
  --accent: oklch(0.404 0.066 162.56);
  --accent-foreground: oklch(0.895 0.045 167.253);
  --destructive: oklch(0.581 0.234 29.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.398 0.093 144.785);
  --chart-1: oklch(0.398 0.093 144.785);
  --chart-2: oklch(0.41 0.084 133.449);
  --chart-3: oklch(0.404 0.066 162.56);
  --chart-4: oklch(0.446 0.093 133.507);
  --chart-5: oklch(0.403 0.099 144.628);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.022 146.179);
  --foreground: oklch(0.993 0.001 147.535);
  --muted: oklch(0.284 0.024 131.863);
  --muted-foreground: oklch(0.735 0.019 131.318);
  --popover: oklch(0.122 0.022 146.179);
  --popover-foreground: oklch(0.993 0.001 147.535);
  --card: oklch(0.14 0.026 146.146);
  --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.398 0.093 144.785);
  --primary-foreground: oklch(0.89 0.061 146.838);
  --secondary: oklch(0.41 0.084 133.449);
  --secondary-foreground: oklch(0.9 0.055 131.635);
  --accent: oklch(0.404 0.066 162.56);
  --accent-foreground: oklch(0.895 0.045 167.253);
  --destructive: oklch(0.62 0.249 29.792);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.398 0.093 144.785);
  --chart-1: oklch(0.398 0.093 144.785);
  --chart-2: oklch(0.41 0.084 133.449);
  --chart-3: oklch(0.404 0.066 162.56);
  --chart-4: oklch(0.446 0.093 133.507);
  --chart-5: oklch(0.403 0.099 144.628);
}