Sleepy for shadcn/ui

Sleepy is a shadcn/ui theme built around an indigo primary color (#514889) with muted light indigo accents (#b9b5d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#514889) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020109black
#f9f8fbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#010104black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020109black
#f9f8fbghostwhite
Primary
#514889darkslateblue
#514889darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d4d2dflightgrey
#1d1c21black
Secondary foreground
#38354bdarkslategray
#b4b3bdsilver
Muted
#efedf7whitesmoke
#090812black
Muted foreground
#3b3947darkslategray
#bab8c6silver
Accent
#b9b5d4lightsteelblue
#272532darkslategray
Accent foreground
#232037darkslategray
#bebccdsilver
Destructive
#ca1e07firebrick
#f7361dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#514889darkslateblue
#514889darkslateblue

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.39:1AAA
Primary button7.95:1AAA
Secondary button7.93:1AAA
Muted text9.74:1AAA
Accent7.97:1AAA
Destructive5.68:1AA
Dark mode
Text on background19.84:1AAA
Text on card20.16:1AAA
Primary button7.95:1AAA
Secondary button8.13:1AAA
Muted text10.20:1AAA
Accent8.08:1AAA
Destructive3.82: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.088 0.03 289.089);
  --muted: oklch(0.951 0.013 292.279);
  --muted-foreground: oklch(0.351 0.024 291.209);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.088 0.03 289.089);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.07 0.023 289.089);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.443 0.104 287.481);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.87 0.018 292.156);
  --secondary-foreground: oklch(0.341 0.038 290.356);
  --accent: oklch(0.787 0.043 291.493);
  --accent-foreground: oklch(0.259 0.042 289.237);
  --destructive: oklch(0.537 0.206 30.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.443 0.104 287.481);
  --chart-1: oklch(0.443 0.104 287.481);
  --chart-2: oklch(0.87 0.018 292.156);
  --chart-3: oklch(0.787 0.043 291.493);
  --chart-4: oklch(0.896 0.014 292.245);
  --chart-5: oklch(0.436 0.114 286.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 292.468);
  --muted: oklch(0.141 0.022 289.942);
  --muted-foreground: oklch(0.789 0.02 292.07);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.004 292.468);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 292.506);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.443 0.104 287.481);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.231 0.008 291.867);
  --secondary-foreground: oklch(0.77 0.014 292.196);
  --accent: oklch(0.271 0.024 290.82);
  --accent-foreground: oklch(0.801 0.025 291.959);
  --destructive: oklch(0.635 0.23 31.032);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.443 0.104 287.481);
  --chart-1: oklch(0.443 0.104 287.481);
  --chart-2: oklch(0.231 0.008 291.867);
  --chart-3: oklch(0.271 0.024 290.82);
  --chart-4: oklch(0.262 0.01 291.819);
  --chart-5: oklch(0.436 0.114 286.806);
}