Yawning for shadcn/ui

Yawning is a shadcn/ui theme built around a deep red primary color (#442622) with muted light red accents (#cbc3c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#442622) on a red-tinted background (#0a0605).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0605black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#0e0707black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0e0707black
Popover foreground
#000000black
#ffffffwhite
Primary
#442622darkslategray
#442622darkslategray
Primary foreground
#ddbfbbthistle
#ddbfbbthistle
Secondary
#d7d6d6lightgrey
#272121black
Secondary foreground
#3e3d3ddarkslategray
#c2b8b7silver
Muted
#dddad9gainsboro
#262222black
Muted foreground
#4f4645darkslategray
#bab1b0darkgray
Accent
#cbc3c2silver
#473533darkslategray
Accent foreground
#322b2adarkslategray
#ddd1d0lightgrey
Destructive
#6e2608maroon
#f1723btomato
Destructive foreground
#f9c5aepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#442622darkslategray
#442622darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.95:1AAA
Secondary button7.45:1AAA
Muted text6.57:1AA
Accent8.03:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.72:1AAA
Text on card19.93:1AAA
Primary button7.95:1AAA
Secondary button8.15:1AAA
Muted text7.50:1AAA
Accent7.69:1AAA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.004 25.029);
  --muted-foreground: oklch(0.402 0.013 25.28);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.305 0.047 26.93);
  --primary-foreground: oklch(0.828 0.035 25.39);
  --secondary: oklch(0.876 0.001 24.997);
  --secondary-foreground: oklch(0.36 0.002 25.024);
  --accent: oklch(0.824 0.009 25.083);
  --accent-foreground: oklch(0.296 0.01 25.294);
  --destructive: oklch(0.373 0.109 40.235);
  --destructive-foreground: oklch(0.863 0.068 44.35);
  --ring: oklch(0.305 0.047 26.93);
  --chart-1: oklch(0.305 0.047 26.93);
  --chart-2: oklch(0.876 0.001 24.997);
  --chart-3: oklch(0.824 0.009 25.083);
  --chart-4: oklch(0.9 0.001 24.996);
  --chart-5: oklch(0.305 0.051 27.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.01 27.592);
  --foreground: oklch(0.992 0.001 24.998);
  --muted: oklch(0.256 0.006 25.193);
  --muted-foreground: oklch(0.768 0.011 25.109);
  --popover: oklch(0.14 0.012 27.2);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.012 27.2);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.305 0.047 26.93);
  --primary-foreground: oklch(0.828 0.035 25.39);
  --secondary: oklch(0.255 0.008 25.272);
  --secondary-foreground: oklch(0.792 0.011 25.107);
  --accent: oklch(0.349 0.026 25.76);
  --accent-foreground: oklch(0.87 0.013 25.119);
  --destructive: oklch(0.695 0.171 42.154);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.305 0.047 26.93);
  --chart-1: oklch(0.305 0.047 26.93);
  --chart-2: oklch(0.255 0.008 25.272);
  --chart-3: oklch(0.349 0.026 25.76);
  --chart-4: oklch(0.286 0.009 25.289);
  --chart-5: oklch(0.305 0.051 27.176);
}