Sleepy for shadcn/ui

Sleepy is a shadcn/ui theme built around a muted green primary color (#59653e) with muted light green accents (#eceee8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#59653e) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#090c03black
#fafbf9snow
Card
#ffffffwhite
#030401black
Card foreground
#090c03black
#fafbf9snow
Popover
#ffffffwhite
#030401black
Popover foreground
#090c03black
#fafbf9snow
Primary
#59653edarkolivegreen
#59653edarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eceee8linen
#34372fdarkslategray
Secondary foreground
#20231ablack
#cdd0c8lightgrey
Muted
#dcded9gainsboro
#252621darkslategray
Muted foreground
#656c56dimgray
#a2a993darkgray
Accent
#eceee8linen
#34372fdarkslategray
Accent foreground
#20231ablack
#cdd0c8lightgrey
Destructive
#a80600darkred
#fa0800red
Destructive foreground
#ffdcdbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59653edarkolivegreen
#59653edarkolivegreen

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button6.24:1AA
Secondary button13.59:1AAA
Muted text4.03:1AA Large
Accent13.59:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.24:1AA
Secondary button7.74:1AAA
Muted text6.25:1AA
Accent7.74:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.022 120.842);
  --muted: oklch(0.897 0.007 120.895);
  --muted-foreground: oklch(0.518 0.033 121.852);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.022 120.842);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.022 120.842);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.486 0.061 122.958);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.945 0.008 120.914);
  --secondary-foreground: oklch(0.251 0.017 121.924);
  --accent: oklch(0.945 0.008 120.914);
  --accent-foreground: oklch(0.251 0.017 121.924);
  --destructive: oklch(0.462 0.187 29.669);
  --destructive-foreground: oklch(0.924 0.038 20.221);
  --ring: oklch(0.486 0.061 122.958);
  --chart-1: oklch(0.486 0.061 122.958);
  --chart-2: oklch(0.945 0.008 120.914);
  --chart-3: oklch(0.945 0.008 120.914);
  --chart-4: oklch(0.966 0.005 120.857);
  --chart-5: oklch(0.493 0.067 123.206);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.011 120.583);
  --foreground: oklch(0.987 0.004 120.83);
  --muted: oklch(0.266 0.009 121.351);
  --muted-foreground: oklch(0.723 0.031 121.481);
  --popover: oklch(0.1 0.011 120.583);
  --popover-foreground: oklch(0.987 0.004 120.83);
  --card: oklch(0.1 0.011 120.583);
  --card-foreground: oklch(0.987 0.004 120.83);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.486 0.061 122.958);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.332 0.014 121.49);
  --secondary-foreground: oklch(0.854 0.011 120.989);
  --accent: oklch(0.332 0.014 121.49);
  --accent-foreground: oklch(0.854 0.011 120.989);
  --destructive: oklch(0.62 0.252 29.499);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.486 0.061 122.958);
  --chart-1: oklch(0.486 0.061 122.958);
  --chart-2: oklch(0.332 0.014 121.49);
  --chart-3: oklch(0.332 0.014 121.49);
  --chart-4: oklch(0.363 0.016 121.51);
  --chart-5: oklch(0.493 0.067 123.206);
}