Sweatsuit for shadcn/ui

Sweatsuit is a shadcn/ui theme built around a red primary color (#9a3750) with teal accents (#379a81). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the red primary (#9a3750) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fcf8f9snow
#040202black
Foreground
#080203black
#fbf9fasnow
Card
#fbf4f6lavenderblush
#070304black
Card foreground
#040102black
#fdfcfcsnow
Popover
#fcf8f9snow
#040202black
Popover foreground
#080203black
#fbf9fasnow
Primary
#9a3750brown
#9a3750brown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#379a81mediumseagreen
#379a81mediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8f3f0whitesmoke
#0c1715black
Muted foreground
#4c615cdimgray
#9eb3aedarkgray
Accent
#379a81mediumseagreen
#379a81mediumseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a21401darkred
#e41c01red
Destructive foreground
#ffdbd6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9a3750brown
#9a3750brown

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.13:1AAA
Primary button6.91:1AA
Secondary button3.45:1AA Large
Muted text5.81:1AA
Accent3.45:1AA Large
Destructive6.18:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.01:1AAA
Primary button6.91:1AA
Secondary button3.45:1AA Large
Muted text8.25:1AAA
Accent3.45:1AA Large
Destructive4.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 0.02);
  --foreground: oklch(0.104 0.021 359.775);
  --muted: oklch(0.954 0.012 179.496);
  --muted-foreground: oklch(0.474 0.027 178.164);
  --popover: oklch(0.982 0.005 0.02);
  --popover-foreground: oklch(0.104 0.021 359.775);
  --card: oklch(0.972 0.008 0.099);
  --card-foreground: oklch(0.082 0.017 359.775);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.484 0.132 8.218);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.621 0.099 173.339);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.621 0.099 173.339);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.456 0.177 31.015);
  --destructive-foreground: oklch(0.92 0.04 26.793);
  --ring: oklch(0.484 0.132 8.218);
  --chart-1: oklch(0.484 0.132 8.218);
  --chart-2: oklch(0.621 0.099 173.339);
  --chart-3: oklch(0.621 0.099 173.339);
  --chart-4: oklch(0.654 0.104 173.288);
  --chart-5: oklch(0.485 0.14 8.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 359.817);
  --foreground: oklch(0.984 0.001 359.905);
  --muted: oklch(0.195 0.017 177.044);
  --muted-foreground: oklch(0.748 0.024 178.916);
  --popover: oklch(0.086 0.01 359.817);
  --popover-foreground: oklch(0.984 0.001 359.905);
  --card: oklch(0.109 0.012 359.817);
  --card-foreground: oklch(0.992 0.001 359.885);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.484 0.132 8.218);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.621 0.099 173.339);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.621 0.099 173.339);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.585 0.23 30.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.484 0.132 8.218);
  --chart-1: oklch(0.484 0.132 8.218);
  --chart-2: oklch(0.621 0.099 173.339);
  --chart-3: oklch(0.621 0.099 173.339);
  --chart-4: oklch(0.654 0.104 173.288);
  --chart-5: oklch(0.485 0.14 8.871);
}