Daybed for shadcn/ui

Daybed is a shadcn/ui theme built around a green primary color (#81ae61) with neutral gray accents (#d1d2d1). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the green primary (#81ae61) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#020401black
Foreground
#000000black
#fafcf8snow
Card
#f7fcf3whitesmoke
#050703black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f9fdf7mintcream
#020401black
Popover foreground
#000000black
#fafcf8snow
Primary
#81ae61darkseagreen
#81ae61darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#d1d2d1lightgrey
#2f3928darkslategray
Secondary foreground
#383938darkslategray
#c8d3c0silver
Muted
#e0e5dcgainsboro
#1e231ablack
Muted foreground
#525f49darkolivegreen
#a9b6a0darkgray
Accent
#d1d2d1lightgrey
#2f3928darkslategray
Accent foreground
#383938darkslategray
#c8d3c0silver
Destructive
#6f0d0bmaroon
#e91f1ccrimson
Destructive foreground
#f8b6b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#81ae61darkseagreen
#81ae61darkseagreen

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.16:1AAA
Primary button8.11:1AAA
Secondary button7.62:1AAA
Muted text5.30:1AA
Accent7.62:1AAA
Destructive7.09:1AAA
Dark mode
Text on background19.95:1AAA
Text on card19.81:1AAA
Primary button8.11:1AAA
Secondary button7.77:1AAA
Muted text7.53:1AAA
Accent7.77:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.009 131.8);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.014 131.846);
  --muted-foreground: oklch(0.468 0.038 132.419);
  --popover: oklch(0.99 0.009 131.8);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.014 131.839);
  --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.699 0.116 133.35);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.862 0.001 131.738);
  --secondary-foreground: oklch(0.342 0.002 131.775);
  --accent: oklch(0.862 0.001 131.738);
  --accent-foreground: oklch(0.342 0.002 131.775);
  --destructive: oklch(0.349 0.132 28.071);
  --destructive-foreground: oklch(0.836 0.077 19.929);
  --ring: oklch(0.699 0.116 133.35);
  --chart-1: oklch(0.699 0.116 133.35);
  --chart-2: oklch(0.862 0.001 131.738);
  --chart-3: oklch(0.862 0.001 131.738);
  --chart-4: oklch(0.885 0.001 131.735);
  --chart-5: oklch(0.706 0.125 133.511);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.013 130.579);
  --foreground: oklch(0.987 0.005 131.765);
  --muted: oklch(0.248 0.019 132.366);
  --muted-foreground: oklch(0.759 0.034 132.094);
  --popover: oklch(0.098 0.013 130.579);
  --popover-foreground: oklch(0.987 0.005 131.765);
  --card: oklch(0.124 0.016 130.579);
  --card-foreground: oklch(0.994 0.002 131.744);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.116 133.35);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.33 0.033 132.595);
  --secondary-foreground: oklch(0.853 0.029 132.005);
  --accent: oklch(0.33 0.033 132.595);
  --accent-foreground: oklch(0.853 0.029 132.005);
  --destructive: oklch(0.596 0.23 28.472);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.116 133.35);
  --chart-1: oklch(0.699 0.116 133.35);
  --chart-2: oklch(0.33 0.033 132.595);
  --chart-3: oklch(0.33 0.033 132.595);
  --chart-4: oklch(0.363 0.037 132.622);
  --chart-5: oklch(0.706 0.125 133.511);
}