Sweatsuit for shadcn/ui

Sweatsuit is a shadcn/ui theme built around a vivid blue primary color (#5875f3) with vivid yellow accents (#f3d758). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#5875f3) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#04050cblack
#f5f6f9whitesmoke
Card
#fcfcfcsnow
#05060ablack
Card foreground
#020308black
#f9f9fbghostwhite
Popover
#ffffffwhite
#030407black
Popover foreground
#04050cblack
#f5f6f9whitesmoke
Primary
#5875f3royalblue
#5875f3royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f3d758sandybrown
#f3d758sandybrown
Secondary foreground
#181402black
#181402black
Muted
#f6f5efwhitesmoke
#100f09black
Muted foreground
#6e6a59dimgray
#a6a291darkgray
Accent
#f3d758sandybrown
#f3d758sandybrown
Accent foreground
#181402black
#181402black
Destructive
#d82003firebrick
#fb3213orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5875f3royalblue
#5875f3royalblue

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.16:1AAA
Primary button4.00:1AA Large
Secondary button12.87:1AAA
Muted text4.95:1AA
Accent12.87:1AAA
Destructive5.09:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.25:1AAA
Primary button4.00:1AA Large
Secondary button12.87:1AAA
Muted text7.48:1AAA
Accent12.87:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.018 269.768);
  --muted: oklch(0.968 0.008 96.27);
  --muted-foreground: oklch(0.524 0.027 96.741);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.117 0.018 269.768);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.016 269.664);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.607 0.192 270.225);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.88 0.147 96.556);
  --secondary-foreground: oklch(0.19 0.035 98.488);
  --accent: oklch(0.88 0.147 96.556);
  --accent-foreground: oklch(0.19 0.035 98.488);
  --destructive: oklch(0.564 0.218 31.064);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.192 270.225);
  --chart-1: oklch(0.607 0.192 270.225);
  --chart-2: oklch(0.88 0.147 96.556);
  --chart-3: oklch(0.88 0.147 96.556);
  --chart-4: oklch(0.889 0.138 96.791);
  --chart-5: oklch(0.604 0.198 269.956);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.01 272.55);
  --foreground: oklch(0.974 0.005 276.105);
  --muted: oklch(0.168 0.012 96.946);
  --muted-foreground: oklch(0.712 0.026 96.583);
  --popover: oklch(0.108 0.01 272.55);
  --popover-foreground: oklch(0.974 0.005 276.105);
  --card: oklch(0.123 0.011 272.55);
  --card-foreground: oklch(0.982 0.003 276.125);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.607 0.192 270.225);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.88 0.147 96.556);
  --secondary-foreground: oklch(0.19 0.035 98.488);
  --accent: oklch(0.88 0.147 96.556);
  --accent-foreground: oklch(0.19 0.035 98.488);
  --destructive: oklch(0.64 0.237 31.391);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.192 270.225);
  --chart-1: oklch(0.607 0.192 270.225);
  --chart-2: oklch(0.88 0.147 96.556);
  --chart-3: oklch(0.88 0.147 96.556);
  --chart-4: oklch(0.889 0.138 96.791);
  --chart-5: oklch(0.604 0.198 269.956);
}