Hefty for shadcn/ui

Hefty is a shadcn/ui theme built around a vivid orange primary color (#ce7012) with vivid blue accents (#1270ce). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#ce7012) on an orange-tinted background (#0b0804).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0b0804black
Foreground
#0d0802black
#fdfcfcsnow
Card
#fefcfbsnow
#0b0804black
Card foreground
#0d0802black
#fdfcfcsnow
Popover
#fefcfbsnow
#0b0804black
Popover foreground
#0d0802black
#fdfcfcsnow
Primary
#ce7012chocolate
#ce7012chocolate
Primary foreground
#000000black
#000000black
Secondary
#1270ceroyalblue
#1270ceroyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d1dbe6gainsboro
#19242edarkslategray
Muted foreground
#4d545bdarkslategray
#a4abb2darkgray
Accent
#1270ceroyalblue
#1270ceroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d23d14firebrick
#eb562dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ce7012chocolate
#ce7012chocolate

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button5.97:1AA
Secondary button4.94:1AA
Muted text5.48:1AA
Accent4.94:1AA
Destructive4.75:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button5.97:1AA
Secondary button4.94:1AA
Muted text6.80:1AA
Accent4.94:1AA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 67.801);
  --foreground: oklch(0.138 0.02 77.139);
  --muted: oklch(0.887 0.019 248.039);
  --muted-foreground: oklch(0.443 0.014 248.144);
  --popover: oklch(0.993 0.002 67.801);
  --popover-foreground: oklch(0.138 0.02 77.139);
  --card: oklch(0.993 0.002 67.801);
  --card-foreground: oklch(0.138 0.02 77.139);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.15 56.888);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.548 0.166 254.065);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.166 254.065);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.576 0.192 34.895);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.15 56.888);
  --chart-1: oklch(0.641 0.15 56.888);
  --chart-2: oklch(0.548 0.166 254.065);
  --chart-3: oklch(0.548 0.166 254.065);
  --chart-4: oklch(0.575 0.175 254.14);
  --chart-5: oklch(0.645 0.154 56.172);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.011 73.621);
  --foreground: oklch(0.993 0.001 67.805);
  --muted: oklch(0.254 0.025 248.857);
  --muted-foreground: oklch(0.737 0.012 247.995);
  --popover: oklch(0.135 0.011 73.621);
  --popover-foreground: oklch(0.993 0.001 67.805);
  --card: oklch(0.135 0.011 73.621);
  --card-foreground: oklch(0.993 0.001 67.805);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.15 56.888);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.548 0.166 254.065);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.166 254.065);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.192 35.875);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.15 56.888);
  --chart-1: oklch(0.641 0.15 56.888);
  --chart-2: oklch(0.548 0.166 254.065);
  --chart-3: oklch(0.548 0.166 254.065);
  --chart-4: oklch(0.575 0.175 254.14);
  --chart-5: oklch(0.645 0.154 56.172);
}