Muscle for shadcn/ui

Muscle is a shadcn/ui theme built around a purple primary color (#e273e2) with neutral gray accents (#d4ced4). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#e273e2) on a purple-tinted background (#0c030c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c030cblack
Foreground
#0d020dblack
#fdfcfdwhite
Card
#ffffffwhite
#0c030cblack
Card foreground
#0d020dblack
#fdfcfdwhite
Popover
#ffffffwhite
#0c030cblack
Popover foreground
#0d020dblack
#fdfcfdwhite
Primary
#e273e2orchid
#e273e2orchid
Primary foreground
#1e061eblack
#1e061eblack
Secondary
#d4ced4lightgrey
#322f32darkslategray
Secondary foreground
#3b353bdarkslategray
#ccc7cclightgrey
Muted
#dbd7dbgainsboro
#282428darkslategray
Muted foreground
#584658dimgray
#b9a7b9darkgray
Accent
#d4ced4lightgrey
#322f32darkslategray
Accent foreground
#3b353bdarkslategray
#ccc7cclightgrey
Destructive
#752a0asaddlebrown
#ec5f22chocolate
Destructive foreground
#f9ccb9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e273e2orchid
#e273e2orchid

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button7.10:1AAA
Secondary button7.73:1AAA
Muted text6.05:1AA
Accent7.73:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button7.10:1AAA
Secondary button7.96:1AAA
Muted text6.74:1AA
Accent7.96:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.04 327.679);
  --muted: oklch(0.883 0.007 325.633);
  --muted-foreground: oklch(0.42 0.036 326.198);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.04 327.679);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.04 327.679);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.723 0.192 327.336);
  --primary-foreground: oklch(0.178 0.057 327.656);
  --secondary: oklch(0.858 0.01 325.66);
  --secondary-foreground: oklch(0.338 0.015 325.9);
  --accent: oklch(0.858 0.01 325.66);
  --accent-foreground: oklch(0.338 0.015 325.9);
  --destructive: oklch(0.392 0.113 40.389);
  --destructive-foreground: oklch(0.879 0.058 44.438);
  --ring: oklch(0.723 0.192 327.336);
  --chart-1: oklch(0.723 0.192 327.336);
  --chart-2: oklch(0.858 0.01 325.66);
  --chart-3: oklch(0.858 0.01 325.66);
  --chart-4: oklch(0.882 0.008 325.644);
  --chart-5: oklch(0.724 0.2 327.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.03 327.174);
  --foreground: oklch(0.992 0.001 325.583);
  --muted: oklch(0.267 0.009 325.824);
  --muted-foreground: oklch(0.749 0.031 325.885);
  --popover: oklch(0.124 0.03 327.174);
  --popover-foreground: oklch(0.992 0.001 325.583);
  --card: oklch(0.124 0.03 327.174);
  --card-foreground: oklch(0.992 0.001 325.583);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.723 0.192 327.336);
  --primary-foreground: oklch(0.178 0.057 327.656);
  --secondary: oklch(0.309 0.009 325.786);
  --secondary-foreground: oklch(0.835 0.008 325.644);
  --accent: oklch(0.309 0.009 325.786);
  --accent-foreground: oklch(0.835 0.008 325.644);
  --destructive: oklch(0.659 0.187 40.594);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.723 0.192 327.336);
  --chart-1: oklch(0.723 0.192 327.336);
  --chart-2: oklch(0.309 0.009 325.786);
  --chart-3: oklch(0.309 0.009 325.786);
  --chart-4: oklch(0.339 0.01 325.793);
  --chart-5: oklch(0.724 0.2 327.395);
}