Hive for shadcn/ui

Hive is a shadcn/ui theme built around a vivid indigo primary color (#1518cb) with vivid yellow accents (#cbc815). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the vivid indigo primary (#1518cb) on a neutral background (#030308).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#030308black
Foreground
#040410black
#f8f8fbghostwhite
Card
#f3f3fcaliceblue
#04040bblack
Card foreground
#03030cblack
#fcfcfdwhite
Popover
#f7f7fdghostwhite
#030308black
Popover foreground
#040410black
#f8f8fbghostwhite
Primary
#1518cbmediumblue
#1518cbmediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbc815goldenrod
#cbc815goldenrod
Secondary foreground
#121202black
#121202black
Muted
#efefeblinen
#141410black
Muted foreground
#53534bdarkslategray
#b4b4acdarkgray
Accent
#cbc815goldenrod
#cbc815goldenrod
Accent foreground
#121202black
#121202black
Destructive
#8a250fsaddlebrown
#d43916firebrick
Destructive foreground
#fad8d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1518cbmediumblue
#1518cbmediumblue

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card18.61:1AAA
Primary button10.34:1AAA
Secondary button10.61:1AAA
Muted text6.75:1AA
Accent10.61:1AAA
Destructive6.68:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.94:1AAA
Primary button10.34:1AAA
Secondary button10.61:1AAA
Muted text8.84:1AAA
Accent10.61:1AAA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 285.473);
  --foreground: oklch(0.118 0.03 279.645);
  --muted: oklch(0.952 0.006 105.73);
  --muted-foreground: oklch(0.439 0.012 106.11);
  --popover: oklch(0.978 0.008 285.473);
  --popover-foreground: oklch(0.118 0.03 279.645);
  --card: oklch(0.967 0.012 285.397);
  --card-foreground: oklch(0.107 0.026 279.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.399 0.251 266.692);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.809 0.172 108.567);
  --secondary-foreground: oklch(0.178 0.033 108.574);
  --accent: oklch(0.809 0.172 108.567);
  --accent-foreground: oklch(0.178 0.033 108.574);
  --destructive: oklch(0.424 0.14 33.751);
  --destructive-foreground: oklch(0.91 0.039 32.733);
  --ring: oklch(0.399 0.251 266.692);
  --chart-1: oklch(0.399 0.251 266.692);
  --chart-2: oklch(0.809 0.172 108.567);
  --chart-3: oklch(0.809 0.172 108.567);
  --chart-4: oklch(0.85 0.18 108.566);
  --chart-5: oklch(0.4 0.257 266.123);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.018 281.398);
  --foreground: oklch(0.981 0.004 285.542);
  --muted: oklch(0.19 0.009 106.423);
  --muted-foreground: oklch(0.767 0.011 105.867);
  --popover: oklch(0.098 0.018 281.398);
  --popover-foreground: oklch(0.981 0.004 285.542);
  --card: oklch(0.112 0.021 281.38);
  --card-foreground: oklch(0.991 0.002 285.58);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.399 0.251 266.692);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.809 0.172 108.567);
  --secondary-foreground: oklch(0.178 0.033 108.574);
  --accent: oklch(0.809 0.172 108.567);
  --accent-foreground: oklch(0.178 0.033 108.574);
  --destructive: oklch(0.577 0.197 33.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.399 0.251 266.692);
  --chart-1: oklch(0.399 0.251 266.692);
  --chart-2: oklch(0.809 0.172 108.567);
  --chart-3: oklch(0.809 0.172 108.567);
  --chart-4: oklch(0.85 0.18 108.566);
  --chart-5: oklch(0.4 0.257 266.123);
}