Obesity for shadcn/ui

Obesity is a shadcn/ui theme built around a neutral gray primary color (#666666) with neutral gray accents (#666666). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#666666) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0707black
Foreground
#040101black
#fdfcfcsnow
Card
#fcfcfcsnow
#110808black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0e0707black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#666666dimgray
#666666dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#666666dimgray
#666666dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d8d8gainsboro
#271b1bblack
Muted foreground
#484747darkslategray
#b8b7b7silver
Accent
#666666dimgray
#666666dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#89330bsaddlebrown
#e25412chocolate
Destructive foreground
#fbdacbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#666666dimgray
#666666dimgray

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button5.74:1AA
Secondary button5.74:1AA
Muted text6.64:1AA
Accent5.74:1AA
Destructive6.30:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.73:1AAA
Primary button5.74:1AA
Secondary button5.74:1AA
Muted text8.33:1AAA
Accent5.74:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.016 21.216);
  --muted: oklch(0.891 0.014 17.418);
  --muted-foreground: oklch(0.398 0.002 17.237);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.016 21.216);
  --card: oklch(0.992 0 161.565);
  --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.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.51 0 171.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.51 0 171.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.438 0.127 41.131);
  --destructive-foreground: oklch(0.912 0.042 46.396);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.51 0 171.87);
  --chart-3: oklch(0.51 0 171.87);
  --chart-4: oklch(0.537 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 19.002);
  --foreground: oklch(0.991 0.002 17.191);
  --muted: oklch(0.237 0.02 18.674);
  --muted-foreground: oklch(0.78 0.002 17.192);
  --popover: oklch(0.137 0.014 19.002);
  --popover-foreground: oklch(0.991 0.002 17.191);
  --card: oklch(0.149 0.016 19.168);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0 171.87);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.51 0 171.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.51 0 171.87);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.189 40.282);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0 171.87);
  --chart-1: oklch(0.51 0 171.87);
  --chart-2: oklch(0.51 0 171.87);
  --chart-3: oklch(0.51 0 171.87);
  --chart-4: oklch(0.537 0 180);
  --chart-5: oklch(0.505 0.008 17.414);
}