Workout for shadcn/ui

Workout is a shadcn/ui theme built around a neutral gray primary color (#48454a) with neutral gray accents (#4a4549). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#48454a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#050109black
#f8f5fawhitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#030105black
#faf8fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#050109black
#f8f5fawhitesmoke
Primary
#48454adarkslategray
#48454adarkslategray
Primary foreground
#e0dfe1gainsboro
#e0dfe1gainsboro
Secondary
#45454adarkslategray
#45454adarkslategray
Secondary foreground
#e0dfe1gainsboro
#e0dfe1gainsboro
Muted
#e9e9f2lavender
#0e0d16black
Muted foreground
#47474ddarkslategray
#b2b2b8darkgray
Accent
#4a4549darkslategray
#4a4549darkslategray
Accent foreground
#e1dfe1gainsboro
#e1dfe1gainsboro
Destructive
#821b0dmaroon
#ed5945tomato
Destructive foreground
#f9cdc7pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#48454adarkslategray
#48454adarkslategray

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.33:1AAA
Primary button7.09:1AAA
Secondary button7.15:1AAA
Muted text7.61:1AAA
Accent7.06:1AAA
Destructive6.92:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.58:1AAA
Primary button7.09:1AAA
Secondary button7.15:1AAA
Muted text9.14:1AAA
Accent7.06:1AAA
Destructive6.10:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.034 312.461);
  --muted: oklch(0.935 0.012 287.692);
  --muted-foreground: oklch(0.4 0.01 287.479);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.034 312.461);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.076 0.027 312.461);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.395 0.008 309.592);
  --primary-foreground: oklch(0.906 0.003 309.756);
  --secondary: oklch(0.393 0.007 287.6);
  --secondary-foreground: oklch(0.906 0.002 287.889);
  --accent: oklch(0.397 0.009 326.733);
  --accent-foreground: oklch(0.907 0.003 326.571);
  --destructive: oklch(0.397 0.14 31.039);
  --destructive-foreground: oklch(0.885 0.051 26.931);
  --ring: oklch(0.395 0.008 309.592);
  --chart-1: oklch(0.395 0.008 309.592);
  --chart-2: oklch(0.393 0.007 287.6);
  --chart-3: oklch(0.397 0.009 326.733);
  --chart-4: oklch(0.421 0.008 287.595);
  --chart-5: oklch(0.391 0.015 309.394);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.007 309.715);
  --muted: oklch(0.165 0.019 285.599);
  --muted-foreground: oklch(0.766 0.008 287.737);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.007 309.715);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.982 0.005 309.739);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.395 0.008 309.592);
  --primary-foreground: oklch(0.906 0.003 309.756);
  --secondary: oklch(0.393 0.007 287.6);
  --secondary-foreground: oklch(0.906 0.002 287.889);
  --accent: oklch(0.397 0.009 326.733);
  --accent-foreground: oklch(0.907 0.003 326.571);
  --destructive: oklch(0.656 0.186 30.297);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.395 0.008 309.592);
  --chart-1: oklch(0.395 0.008 309.592);
  --chart-2: oklch(0.393 0.007 287.6);
  --chart-3: oklch(0.397 0.009 326.733);
  --chart-4: oklch(0.421 0.008 287.595);
  --chart-5: oklch(0.391 0.015 309.394);
}