Honey for shadcn/ui

Honey is a shadcn/ui theme built around a light yellow primary color (#e3e0b5) with muted light yellow accents (#d8d7c5). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#e3e0b5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefefbwhite
#000000black
Foreground
#040401black
#ffffffwhite
Card
#fdfdf7snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdf7snow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#e3e0b5palegoldenrod
#e3e0b5palegoldenrod
Primary foreground
#4a471cdarkolivegreen
#4a471cdarkolivegreen
Secondary
#d8d7c5lightgrey
#313021darkslategray
Secondary foreground
#403f2bdarkslategray
#cdccb6silver
Muted
#ecebdfbeige
#201f13black
Muted foreground
#52524cdarkslategray
#b3b3addarkgray
Accent
#d8d7c5lightgrey
#313021darkslategray
Accent foreground
#403f2bdarkslategray
#cdccb6silver
Destructive
#c72c05firebrick
#fa5b33tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e0b5palegoldenrod
#e3e0b5palegoldenrod

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.55:1AAA
Primary button7.05:1AAA
Secondary button7.35:1AAA
Muted text6.55:1AA
Accent7.35:1AAA
Destructive5.54:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.05:1AAA
Secondary button8.24:1AAA
Muted text7.86:1AAA
Accent8.24:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 103.176);
  --foreground: oklch(0.105 0.017 106.424);
  --muted: oklch(0.938 0.016 103.386);
  --muted-foreground: oklch(0.436 0.009 103.465);
  --popover: oklch(0.992 0.008 103.246);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.008 103.246);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.898 0.056 104.089);
  --primary-foreground: oklch(0.39 0.062 105.16);
  --secondary: oklch(0.875 0.024 103.562);
  --secondary-foreground: oklch(0.363 0.032 104.451);
  --accent: oklch(0.875 0.024 103.562);
  --accent-foreground: oklch(0.363 0.032 104.451);
  --destructive: oklch(0.541 0.195 33.258);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.898 0.056 104.089);
  --chart-1: oklch(0.898 0.056 104.089);
  --chart-2: oklch(0.875 0.024 103.562);
  --chart-3: oklch(0.875 0.024 103.562);
  --chart-4: oklch(0.895 0.02 103.483);
  --chart-5: oklch(0.902 0.06 104.141);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.021 104.468);
  --muted-foreground: oklch(0.764 0.008 103.287);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.898 0.056 104.089);
  --primary-foreground: oklch(0.39 0.062 105.16);
  --secondary: oklch(0.304 0.025 104.344);
  --secondary-foreground: oklch(0.84 0.029 103.675);
  --accent: oklch(0.304 0.025 104.344);
  --accent-foreground: oklch(0.84 0.029 103.675);
  --destructive: oklch(0.676 0.202 34.985);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.898 0.056 104.089);
  --chart-1: oklch(0.898 0.056 104.089);
  --chart-2: oklch(0.304 0.025 104.344);
  --chart-3: oklch(0.304 0.025 104.344);
  --chart-4: oklch(0.338 0.028 104.382);
  --chart-5: oklch(0.902 0.06 104.141);
}