Sport for shadcn/ui

Sport is a shadcn/ui theme built around a muted deep green primary color (#1a281e) with muted deep purple accents (#281a24). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted deep green primary (#1a281e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdf9mintcream
#000000black
Foreground
#010402black
#fcfdfcwhite
Card
#f7fdf9mintcream
#000000black
Card foreground
#010402black
#fcfdfcwhite
Popover
#f7fdf9mintcream
#000000black
Popover foreground
#010402black
#fcfdfcwhite
Primary
#1a281eblack
#1a281eblack
Primary foreground
#acc9b3silver
#acc9b3silver
Secondary
#281a24black
#281a24black
Secondary foreground
#c9acc1silver
#c9acc1silver
Muted
#f3f1f3whitesmoke
#0e0c0dblack
Muted foreground
#665762dimgray
#a899a4darkgray
Accent
#281a24black
#281a24black
Accent foreground
#c9acc1silver
#c9acc1silver
Destructive
#810803maroon
#fa3a33tomato
Destructive foreground
#fdbcb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a281eblack
#1a281eblack

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button8.59:1AAA
Secondary button8.02:1AAA
Muted text6.02:1AA
Accent8.02:1AAA
Destructive6.62:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button8.59:1AAA
Secondary button8.02:1AAA
Muted text7.21:1AAA
Accent8.02:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 154.392);
  --foreground: oklch(0.097 0.015 153.94);
  --muted: oklch(0.961 0.003 334.588);
  --muted-foreground: oklch(0.475 0.026 335.456);
  --popover: oklch(0.988 0.008 154.392);
  --popover-foreground: oklch(0.097 0.015 153.94);
  --card: oklch(0.988 0.008 154.392);
  --card-foreground: oklch(0.097 0.015 153.94);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.261 0.027 152.526);
  --primary-foreground: oklch(0.807 0.043 153.549);
  --secondary: oklch(0.24 0.028 336.468);
  --secondary-foreground: oklch(0.775 0.044 335.49);
  --accent: oklch(0.24 0.028 336.468);
  --accent-foreground: oklch(0.775 0.044 335.49);
  --destructive: oklch(0.383 0.152 29.453);
  --destructive-foreground: oklch(0.854 0.076 21.027);
  --ring: oklch(0.261 0.027 152.526);
  --chart-1: oklch(0.261 0.027 152.526);
  --chart-2: oklch(0.24 0.028 336.468);
  --chart-3: oklch(0.24 0.028 336.468);
  --chart-4: oklch(0.271 0.034 336.579);
  --chart-5: oklch(0.263 0.031 152.241);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.003 154.481);
  --muted: oklch(0.156 0.005 335.101);
  --muted-foreground: oklch(0.7 0.024 335.106);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.003 154.481);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.003 154.481);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.261 0.027 152.526);
  --primary-foreground: oklch(0.807 0.043 153.549);
  --secondary: oklch(0.24 0.028 336.468);
  --secondary-foreground: oklch(0.775 0.044 335.49);
  --accent: oklch(0.24 0.028 336.468);
  --accent-foreground: oklch(0.775 0.044 335.49);
  --destructive: oklch(0.645 0.228 27.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.261 0.027 152.526);
  --chart-1: oklch(0.261 0.027 152.526);
  --chart-2: oklch(0.24 0.028 336.468);
  --chart-3: oklch(0.24 0.028 336.468);
  --chart-4: oklch(0.271 0.034 336.579);
  --chart-5: oklch(0.263 0.031 152.241);
}