Elbow for shadcn/ui

Elbow is a shadcn/ui theme built around a violet primary color (#673681) with muted light violet accents (#d1c5d8). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#673681) on a neutral background (#060208).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#060208black
Foreground
#000000black
#faf9fbghostwhite
Card
#faf8fbghostwhite
#09030cblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#faf8fbghostwhite
#09030cblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#673681rebeccapurple
#673681rebeccapurple
Primary foreground
#f6f1f9whitesmoke
#f6f1f9whitesmoke
Secondary
#d1c5d8thistle
#242226darkslategray
Secondary foreground
#392b40darkslategray
#beb9c1silver
Muted
#e1dde4gainsboro
#201b22black
Muted foreground
#575658dimgray
#a9a7a9darkgray
Accent
#d1c5d8thistle
#242226darkslategray
Accent foreground
#392b40darkslategray
#beb9c1silver
Destructive
#bd2405firebrick
#fa4c29tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#673681rebeccapurple
#673681rebeccapurple

Contrast

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

Light mode
Text on background20.46:1AAA
Text on card19.94:1AAA
Primary button7.77:1AAA
Secondary button7.96:1AAA
Muted text5.44:1AA
Accent7.96:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.89:1AAA
Primary button7.77:1AAA
Secondary button8.20:1AAA
Muted text7.07:1AAA
Accent8.20:1AAA
Destructive3.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 314.207);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.01 314.157);
  --muted-foreground: oklch(0.454 0.003 314.182);
  --popover: oklch(0.983 0.005 314.193);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 314.193);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.43 0.128 312.225);
  --primary-foreground: oklch(0.964 0.012 314.148);
  --secondary: oklch(0.839 0.03 314.024);
  --secondary-foreground: oklch(0.313 0.042 313.474);
  --accent: oklch(0.839 0.03 314.024);
  --accent-foreground: oklch(0.313 0.042 313.474);
  --destructive: oklch(0.516 0.192 32.178);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.43 0.128 312.225);
  --chart-1: oklch(0.43 0.128 312.225);
  --chart-2: oklch(0.839 0.03 314.024);
  --chart-3: oklch(0.839 0.03 314.024);
  --chart-4: oklch(0.865 0.025 314.061);
  --chart-5: oklch(0.429 0.136 312.018);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.023 316.168);
  --foreground: oklch(0.984 0.002 314.208);
  --muted: oklch(0.231 0.014 313.88);
  --muted-foreground: oklch(0.731 0.003 314.199);
  --popover: oklch(0.119 0.027 315.865);
  --popover-foreground: oklch(0.992 0.001 314.214);
  --card: oklch(0.119 0.027 315.865);
  --card-foreground: oklch(0.992 0.001 314.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.43 0.128 312.225);
  --primary-foreground: oklch(0.964 0.012 314.148);
  --secondary: oklch(0.255 0.009 314.028);
  --secondary-foreground: oklch(0.791 0.012 314.133);
  --accent: oklch(0.255 0.009 314.028);
  --accent-foreground: oklch(0.791 0.012 314.133);
  --destructive: oklch(0.659 0.215 33.107);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.43 0.128 312.225);
  --chart-1: oklch(0.43 0.128 312.225);
  --chart-2: oklch(0.255 0.009 314.028);
  --chart-3: oklch(0.255 0.009 314.028);
  --chart-4: oklch(0.286 0.011 314.017);
  --chart-5: oklch(0.429 0.136 312.018);
}