Sleepy for shadcn/ui

Sleepy is a shadcn/ui theme built around a neutral gray primary color (#635e68) with neutral gray accents (#5e6863). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#635e68) on a violet-tinted background (#0a060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a060eblack
Foreground
#07030cblack
#f7f4fawhitesmoke
Card
#ffffffwhite
#0a060eblack
Card foreground
#07030cblack
#f7f4fawhitesmoke
Popover
#ffffffwhite
#0a060eblack
Popover foreground
#07030cblack
#f7f4fawhitesmoke
Primary
#635e68dimgray
#635e68dimgray
Primary foreground
#fcfcfdwhite
#fcfcfdwhite
Secondary
#68635edimgray
#68635edimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f2f1whitesmoke
#0e0d0bblack
Muted foreground
#484747darkslategray
#b8b8b7silver
Accent
#5e6863dimgray
#5e6863dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d1408maroon
#f15641tomato
Destructive foreground
#f9b7aelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#635e68dimgray
#635e68dimgray

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button6.10:1AA
Secondary button5.91:1AA
Muted text8.30:1AAA
Accent5.73:1AA
Destructive7.07:1AAA
Dark mode
Text on background18.41:1AAA
Text on card18.41:1AAA
Primary button6.10:1AA
Secondary button5.91:1AA
Muted text9.79:1AAA
Accent5.73:1AA
Destructive6.13:1AA

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.115 0.028 309.135);
  --muted: oklch(0.963 0.003 65.934);
  --muted-foreground: oklch(0.4 0.002 65.922);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.028 309.135);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.115 0.028 309.135);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.017 307.393);
  --primary-foreground: oklch(0.992 0 307.785);
  --secondary: oklch(0.504 0.01 65.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.015 163.527);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.35 0.125 31.072);
  --destructive-foreground: oklch(0.838 0.078 27.339);
  --ring: oklch(0.492 0.017 307.393);
  --chart-1: oklch(0.492 0.017 307.393);
  --chart-2: oklch(0.504 0.01 65.727);
  --chart-3: oklch(0.509 0.015 163.527);
  --chart-4: oklch(0.531 0.011 65.725);
  --chart-5: oklch(0.486 0.027 307.147);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.019 307.528);
  --foreground: oklch(0.972 0.008 307.69);
  --muted: oklch(0.159 0.004 65.651);
  --muted-foreground: oklch(0.782 0.001 65.947);
  --popover: oklch(0.135 0.019 307.528);
  --popover-foreground: oklch(0.972 0.008 307.69);
  --card: oklch(0.135 0.019 307.528);
  --card-foreground: oklch(0.972 0.008 307.69);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.017 307.393);
  --primary-foreground: oklch(0.992 0 307.785);
  --secondary: oklch(0.504 0.01 65.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.015 163.527);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.194 30.465);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.492 0.017 307.393);
  --chart-1: oklch(0.492 0.017 307.393);
  --chart-2: oklch(0.504 0.01 65.727);
  --chart-3: oklch(0.509 0.015 163.527);
  --chart-4: oklch(0.531 0.011 65.725);
  --chart-5: oklch(0.486 0.027 307.147);
}