Yawning for shadcn/ui

Yawning is a shadcn/ui theme built around a deep green primary color (#1a220b) with muted light green accents (#d5d8cf). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#1a220b) on a green-tinted background (#090c04).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#090c04black
Foreground
#0f1504black
#f8faf5whitesmoke
Card
#fdfdfbsnow
#090c04black
Card foreground
#0f1504black
#f8faf5whitesmoke
Popover
#fdfdfbsnow
#090c04black
Popover foreground
#0f1504black
#f8faf5whitesmoke
Primary
#1a220bblack
#1a220bblack
Primary foreground
#90bb3eyellowgreen
#90bb3eyellowgreen
Secondary
#d5d8cflightgrey
#2b2f23darkslategray
Secondary foreground
#3d4134darkslategray
#c5cbb9silver
Muted
#f1f4ecwhitesmoke
#10130bblack
Muted foreground
#53574cdarkolivegreen
#afb3a8darkgray
Accent
#d5d8cflightgrey
#2b2f23darkslategray
Accent foreground
#3d4134darkslategray
#c5cbb9silver
Destructive
#871d08darkred
#f2401corangered
Destructive foreground
#fccec5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a220bblack
#1a220bblack

Contrast

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

Light mode
Text on background18.31:1AAA
Text on card18.31:1AAA
Primary button7.29:1AAA
Secondary button7.28:1AAA
Muted text6.64:1AA
Accent7.28:1AAA
Destructive6.68:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.29:1AAA
Secondary button8.24:1AAA
Muted text8.75:1AAA
Accent8.24:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 122.258);
  --foreground: oklch(0.186 0.035 124.633);
  --muted: oklch(0.962 0.011 122.392);
  --muted-foreground: oklch(0.451 0.019 122.876);
  --popover: oklch(0.994 0.003 122.258);
  --popover-foreground: oklch(0.186 0.035 124.633);
  --card: oklch(0.994 0.003 122.258);
  --card-foreground: oklch(0.186 0.035 124.633);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.239 0.041 125.337);
  --primary-foreground: oklch(0.737 0.159 126.616);
  --secondary: oklch(0.878 0.013 122.453);
  --secondary-foreground: oklch(0.367 0.022 123.183);
  --accent: oklch(0.878 0.013 122.453);
  --accent-foreground: oklch(0.367 0.022 123.183);
  --destructive: oklch(0.409 0.144 32.738);
  --destructive-foreground: oklch(0.889 0.053 31.281);
  --ring: oklch(0.239 0.041 125.337);
  --chart-1: oklch(0.239 0.041 125.337);
  --chart-2: oklch(0.878 0.013 122.453);
  --chart-3: oklch(0.878 0.013 122.453);
  --chart-4: oklch(0.9 0.011 122.405);
  --chart-5: oklch(0.241 0.043 125.509);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.02 122.021);
  --foreground: oklch(0.982 0.007 122.33);
  --muted: oklch(0.182 0.016 123.663);
  --muted-foreground: oklch(0.761 0.017 122.557);
  --popover: oklch(0.146 0.02 122.021);
  --popover-foreground: oklch(0.982 0.007 122.33);
  --card: oklch(0.146 0.02 122.021);
  --card-foreground: oklch(0.982 0.007 122.33);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.239 0.041 125.337);
  --primary-foreground: oklch(0.737 0.159 126.616);
  --secondary: oklch(0.297 0.022 123.419);
  --secondary-foreground: oklch(0.832 0.026 122.708);
  --accent: oklch(0.297 0.022 123.419);
  --accent-foreground: oklch(0.832 0.026 122.708);
  --destructive: oklch(0.634 0.219 32.866);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.239 0.041 125.337);
  --chart-1: oklch(0.239 0.041 125.337);
  --chart-2: oklch(0.297 0.022 123.419);
  --chart-3: oklch(0.297 0.022 123.419);
  --chart-4: oklch(0.33 0.026 123.467);
  --chart-5: oklch(0.241 0.043 125.509);
}