Hungry Chinese Bellflower for shadcn/ui

Hungry Chinese Bellflower is a shadcn/ui theme built around an indigo primary color (#4d55b3) with violet accents (#774db3). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the indigo primary (#4d55b3) on an indigo-tinted background (#07070e).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#07070eblack
Foreground
#010104black
#ffffffwhite
Card
#fbfcfdwhite
#07070eblack
Card foreground
#010104black
#ffffffwhite
Popover
#fbfcfdwhite
#07070eblack
Popover foreground
#010104black
#ffffffwhite
Primary
#4d55b3slateblue
#4d55b3slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4d88b3steelblue
#4d88b3steelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2e3e4gainsboro
#1b1c1dblack
Muted foreground
#3b474fdarkslategray
#b0bcc4silver
Accent
#774db3slateblue
#774db3slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#962908saddlebrown
#df3d0corangered
Destructive foreground
#fdddd3antiquewhite
#ffffffwhite
Border
#e5e6eblavender
#1d1e25black
Input
#e5e6eblavender
#1d1e25black
Ring
#4d55b3slateblue
#4d55b3slateblue

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.44:1AA
Secondary button3.83:1AA Large
Muted text7.43:1AAA
Accent6.03:1AA
Destructive6.27:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button6.44:1AA
Secondary button3.83:1AA Large
Muted text8.79:1AAA
Accent6.03:1AA
Destructive4.36:1AA Large

CSS variables

Paste this into your globals.css to use Hungry Chinese Bellflower in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 282.173);
  --foreground: oklch(0.079 0.014 276.881);
  --muted: oklch(0.915 0.002 238.399);
  --muted-foreground: oklch(0.389 0.021 239.202);
  --popover: oklch(0.99 0.002 282.173);
  --popover-foreground: oklch(0.079 0.014 276.881);
  --card: oklch(0.99 0.002 282.173);
  --card-foreground: oklch(0.079 0.014 276.881);
  --border: oklch(0.925 0.007 282.09);
  --input: oklch(0.925 0.007 282.09);
  --primary: oklch(0.493 0.147 275.72);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.604 0.09 241.445);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.157 300.171);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.45 0.15 35.454);
  --destructive-foreground: oklch(0.921 0.038 37.609);
  --ring: oklch(0.493 0.147 275.72);
  --chart-1: oklch(0.493 0.147 275.72);
  --chart-2: oklch(0.604 0.09 241.445);
  --chart-3: oklch(0.515 0.157 300.171);
  --chart-4: oklch(0.628 0.085 240.996);
  --chart-5: oklch(0.487 0.157 275.025);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.016 279.214);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.226 0.003 238.575);
  --muted-foreground: oklch(0.788 0.018 238.694);
  --popover: oklch(0.132 0.016 279.214);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.016 279.214);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.237 0.014 281.173);
  --input: oklch(0.237 0.014 281.173);
  --primary: oklch(0.493 0.147 275.72);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.604 0.09 241.445);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.515 0.157 300.171);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.598 0.205 34.946);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.493 0.147 275.72);
  --chart-1: oklch(0.493 0.147 275.72);
  --chart-2: oklch(0.604 0.09 241.445);
  --chart-3: oklch(0.515 0.157 300.171);
  --chart-4: oklch(0.628 0.085 240.996);
  --chart-5: oklch(0.487 0.157 275.025);
}