Slumber Bee for shadcn/ui

Slumber Bee is a shadcn/ui theme built around a blue primary color (#2a507e) with indigo accents (#2e2a7e). The light mode uses a neutral background (#f7fafc). Dark mode keeps the blue primary (#2a507e) on a neutral background (#040507).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#040507black
Foreground
#010509black
#f5f7fawhitesmoke
Card
#f4f7fbghostwhite
#05070ablack
Card foreground
#010205black
#f8fafcghostwhite
Popover
#f7fafcghostwhite
#040507black
Popover foreground
#010509black
#f5f7fawhitesmoke
Primary
#2a507edarkslateblue
#2a507edarkslateblue
Primary foreground
#e4ecf6lavender
#e4ecf6lavender
Secondary
#2a7a7eteal
#2a7a7eteal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eceeeewhitesmoke
#111313black
Muted foreground
#545e5fdimgray
#a0ababdarkgray
Accent
#2e2a7emidnightblue
#2e2a7emidnightblue
Accent foreground
#e5e4f6lavender
#e5e4f6lavender
Destructive
#a23a02saddlebrown
#f25602orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e1e3e5gainsboro
#1a1c1eblack
Input
#e1e3e5gainsboro
#1a1c1eblack
Ring
#2a507edarkslateblue
#2a507edarkslateblue

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.29:1AAA
Primary button6.92:1AA
Secondary button5.01:1AA
Muted text5.74:1AA
Accent9.56:1AAA
Destructive6.71:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.23:1AAA
Primary button6.92:1AA
Secondary button5.01:1AA
Muted text7.91:1AAA
Accent9.56:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 253.249);
  --foreground: oklch(0.108 0.018 241.44);
  --muted: oklch(0.948 0.003 200.856);
  --muted-foreground: oklch(0.474 0.013 200.578);
  --popover: oklch(0.983 0.004 253.249);
  --popover-foreground: oklch(0.108 0.018 241.44);
  --card: oklch(0.975 0.006 253.264);
  --card-foreground: oklch(0.086 0.014 241.44);
  --border: oklch(0.914 0.004 253.245);
  --input: oklch(0.914 0.004 253.245);
  --primary: oklch(0.426 0.089 254.551);
  --primary-foreground: oklch(0.941 0.016 253.329);
  --secondary: oklch(0.534 0.076 200.096);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.347 0.137 278.696);
  --accent-foreground: oklch(0.926 0.024 288.219);
  --destructive: oklch(0.489 0.148 41.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.089 254.551);
  --chart-1: oklch(0.426 0.089 254.551);
  --chart-2: oklch(0.534 0.076 200.096);
  --chart-3: oklch(0.347 0.137 278.696);
  --chart-4: oklch(0.568 0.081 200.105);
  --chart-5: oklch(0.426 0.094 254.69);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.007 248.972);
  --foreground: oklch(0.976 0.004 253.249);
  --muted: oklch(0.184 0.004 200.647);
  --muted-foreground: oklch(0.732 0.012 200.701);
  --popover: oklch(0.113 0.007 248.972);
  --popover-foreground: oklch(0.976 0.004 253.249);
  --card: oklch(0.129 0.008 248.972);
  --card-foreground: oklch(0.984 0.003 253.239);
  --border: oklch(0.225 0.005 253.361);
  --input: oklch(0.225 0.005 253.361);
  --primary: oklch(0.426 0.089 254.551);
  --primary-foreground: oklch(0.941 0.016 253.329);
  --secondary: oklch(0.534 0.076 200.096);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.347 0.137 278.696);
  --accent-foreground: oklch(0.926 0.024 288.219);
  --destructive: oklch(0.657 0.204 40.277);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.089 254.551);
  --chart-1: oklch(0.426 0.089 254.551);
  --chart-2: oklch(0.534 0.076 200.096);
  --chart-3: oklch(0.347 0.137 278.696);
  --chart-4: oklch(0.568 0.081 200.105);
  --chart-5: oklch(0.426 0.094 254.69);
}