Sportsman for shadcn/ui

Sportsman is a shadcn/ui theme built around a deep red primary color (#5a3038) with neutral gray accents (#d9d8d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#5a3038) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#080203black
#f9f6f7whitesmoke
Card
#ffffffwhite
#070304black
Card foreground
#080203black
#f9f6f7whitesmoke
Popover
#ffffffwhite
#070304black
Popover foreground
#080203black
#f9f6f7whitesmoke
Primary
#5a3038darkslategray
#5a3038darkslategray
Primary foreground
#e8d4d8gainsboro
#e8d4d8gainsboro
Secondary
#d9d8d9gainsboro
#211819black
Secondary foreground
#403f3fdarkslategray
#c1a9aedarkgray
Muted
#e6e0e1gainsboro
#1f191ablack
Muted foreground
#585556dimgray
#aaa7a7darkgray
Accent
#d9d8d9gainsboro
#211819black
Accent foreground
#403f3fdarkslategray
#c1a9aedarkgray
Destructive
#cd2a0afirebrick
#f54f2etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5a3038darkslategray
#5a3038darkslategray

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button7.75:1AAA
Secondary button7.40:1AAA
Muted text5.66:1AA
Accent7.40:1AAA
Destructive5.35:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button7.75:1AAA
Secondary button7.93:1AAA
Muted text7.24:1AAA
Accent7.93:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.018 3.442);
  --muted: oklch(0.912 0.006 3.37);
  --muted-foreground: oklch(0.453 0.005 3.46);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.018 3.442);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.018 3.442);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.365 0.061 7.68);
  --primary-foreground: oklch(0.887 0.023 3.867);
  --secondary: oklch(0.884 0.001 3.21);
  --secondary-foreground: oklch(0.369 0.002 3.315);
  --accent: oklch(0.884 0.001 3.21);
  --accent-foreground: oklch(0.369 0.002 3.315);
  --destructive: oklch(0.55 0.201 32.296);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.061 7.68);
  --chart-1: oklch(0.365 0.061 7.68);
  --chart-2: oklch(0.884 0.001 3.21);
  --chart-3: oklch(0.884 0.001 3.21);
  --chart-4: oklch(0.907 0.001 3.205);
  --chart-5: oklch(0.364 0.067 8.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.011 3.329);
  --foreground: oklch(0.975 0.003 3.268);
  --muted: oklch(0.222 0.009 4.276);
  --muted-foreground: oklch(0.73 0.004 3.336);
  --popover: oklch(0.109 0.011 3.329);
  --popover-foreground: oklch(0.975 0.003 3.268);
  --card: oklch(0.109 0.011 3.329);
  --card-foreground: oklch(0.975 0.003 3.268);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.365 0.061 7.68);
  --primary-foreground: oklch(0.887 0.023 3.867);
  --secondary: oklch(0.219 0.015 4.965);
  --secondary-foreground: oklch(0.757 0.028 4.175);
  --accent: oklch(0.219 0.015 4.965);
  --accent-foreground: oklch(0.757 0.028 4.175);
  --destructive: oklch(0.655 0.208 33.17);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.061 7.68);
  --chart-1: oklch(0.365 0.061 7.68);
  --chart-2: oklch(0.219 0.015 4.965);
  --chart-3: oklch(0.219 0.015 4.965);
  --chart-4: oklch(0.25 0.018 5.11);
  --chart-5: oklch(0.364 0.067 8.202);
}