Hunger for shadcn/ui

Hunger is a shadcn/ui theme built around a vivid light violet primary color (#f6ecfe) with vivid light purple accents (#feecfc). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid light violet primary (#f6ecfe) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#08040bblack
Foreground
#0e0316black
#faf9fasnow
Card
#fdfbfdsnow
#08040bblack
Card foreground
#0e0316black
#faf9fasnow
Popover
#fdfbfdsnow
#08040bblack
Popover foreground
#0e0316black
#faf9fasnow
Primary
#f6ecfeghostwhite
#f6ecfeghostwhite
Primary foreground
#660dabrebeccapurple
#660dabrebeccapurple
Secondary
#edecfelavender
#edecfelavender
Secondary foreground
#3b2eefroyalblue
#3b2eefroyalblue
Muted
#e1e0f0lavender
#100f1fblack
Muted foreground
#5e5d65dimgray
#9b9aa2darkgray
Accent
#feecfclavenderblush
#feecfclavenderblush
Accent foreground
#4c0647indigo
#4c0647indigo
Destructive
#aa1103darkred
#fb3523orangered
Destructive foreground
#fee3e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6ecfeghostwhite
#f6ecfeghostwhite

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button8.29:1AAA
Secondary button6.38:1AA
Muted text4.98:1AA
Accent13.06:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button8.29:1AAA
Secondary button6.38:1AA
Muted text6.80:1AA
Accent13.06:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 311.059);
  --foreground: oklch(0.136 0.048 309.794);
  --muted: oklch(0.912 0.022 289.014);
  --muted-foreground: oklch(0.482 0.012 288.994);
  --popover: oklch(0.991 0.003 311.059);
  --popover-foreground: oklch(0.136 0.048 309.794);
  --card: oklch(0.991 0.003 311.059);
  --card-foreground: oklch(0.136 0.048 309.794);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.956 0.026 310.853);
  --primary-foreground: oklch(0.422 0.214 302.158);
  --secondary: oklch(0.949 0.024 289.01);
  --secondary-foreground: oklch(0.479 0.267 272.676);
  --accent: oklch(0.962 0.029 327.834);
  --accent-foreground: oklch(0.293 0.124 331.404);
  --destructive: oklch(0.469 0.184 30.207);
  --destructive-foreground: oklch(0.938 0.03 23.918);
  --ring: oklch(0.956 0.026 310.853);
  --chart-1: oklch(0.956 0.026 310.853);
  --chart-2: oklch(0.949 0.024 289.01);
  --chart-3: oklch(0.962 0.029 327.834);
  --chart-4: oklch(0.987 0.006 289.368);
  --chart-5: oklch(0.956 0.026 310.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.019 312.321);
  --foreground: oklch(0.984 0.002 311.07);
  --muted: oklch(0.178 0.034 285.486);
  --muted-foreground: oklch(0.69 0.011 289.171);
  --popover: oklch(0.122 0.019 312.321);
  --popover-foreground: oklch(0.984 0.002 311.07);
  --card: oklch(0.122 0.019 312.321);
  --card-foreground: oklch(0.984 0.002 311.07);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.956 0.026 310.853);
  --primary-foreground: oklch(0.422 0.214 302.158);
  --secondary: oklch(0.949 0.024 289.01);
  --secondary-foreground: oklch(0.479 0.267 272.676);
  --accent: oklch(0.962 0.029 327.834);
  --accent-foreground: oklch(0.293 0.124 331.404);
  --destructive: oklch(0.641 0.233 29.956);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.026 310.853);
  --chart-1: oklch(0.956 0.026 310.853);
  --chart-2: oklch(0.949 0.024 289.01);
  --chart-3: oklch(0.962 0.029 327.834);
  --chart-4: oklch(0.987 0.006 289.368);
  --chart-5: oklch(0.956 0.026 310.844);
}