Yawning for shadcn/ui

Yawning is a shadcn/ui theme built around a muted red primary color (#ae9189) with muted yellow accents (#aea489). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted red primary (#ae9189) on a neutral background (#040202).

Color palette

TokenLightDark
Background
#fefcfbsnow
#040202black
Foreground
#150804black
#ffffffwhite
Card
#fefcfbsnow
#040202black
Card foreground
#150804black
#ffffffwhite
Popover
#fefcfbsnow
#040202black
Popover foreground
#150804black
#ffffffwhite
Primary
#ae9189rosybrown
#ae9189rosybrown
Primary foreground
#030202black
#030202black
Secondary
#ae8993rosybrown
#ae8993rosybrown
Secondary foreground
#030202black
#030202black
Muted
#e9d8ddgainsboro
#27161bblack
Muted foreground
#675f62dimgray
#a0989adarkgray
Accent
#aea489rosybrown
#aea489rosybrown
Accent foreground
#030302black
#030302black
Destructive
#b50a08firebrick
#eb0e0ared
Destructive foreground
#fef1f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ae9189rosybrown
#ae9189rosybrown

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button7.11:1AAA
Secondary button6.70:1AA
Muted text4.50:1AA
Accent8.31:1AAA
Destructive6.31:1AA
Dark mode
Text on background20.71:1AAA
Text on card20.71:1AAA
Primary button7.11:1AAA
Secondary button6.70:1AA
Muted text6.12:1AA
Accent8.31:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 36.005);
  --foreground: oklch(0.154 0.026 40.71);
  --muted: oklch(0.897 0.021 358.366);
  --muted-foreground: oklch(0.495 0.011 358.328);
  --popover: oklch(0.992 0.002 36.005);
  --popover-foreground: oklch(0.154 0.026 40.71);
  --card: oklch(0.992 0.002 36.005);
  --card-foreground: oklch(0.154 0.026 40.71);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.038 35.953);
  --primary-foreground: oklch(0.091 0.004 37.961);
  --secondary: oklch(0.668 0.048 359.706);
  --secondary-foreground: oklch(0.089 0.005 357.649);
  --accent: oklch(0.72 0.04 89.014);
  --accent-foreground: oklch(0.094 0.004 90.782);
  --destructive: oklch(0.489 0.196 29.03);
  --destructive-foreground: oklch(0.968 0.015 18.601);
  --ring: oklch(0.681 0.038 35.953);
  --chart-1: oklch(0.681 0.038 35.953);
  --chart-2: oklch(0.668 0.048 359.706);
  --chart-3: oklch(0.72 0.04 89.014);
  --chart-4: oklch(0.694 0.044 359.467);
  --chart-5: oklch(0.68 0.044 35.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.008 40.702);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.03 1.375);
  --muted-foreground: oklch(0.686 0.01 358.124);
  --popover: oklch(0.089 0.008 40.702);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.089 0.008 40.702);
  --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.681 0.038 35.953);
  --primary-foreground: oklch(0.091 0.004 37.961);
  --secondary: oklch(0.668 0.048 359.706);
  --secondary-foreground: oklch(0.089 0.005 357.649);
  --accent: oklch(0.72 0.04 89.014);
  --accent-foreground: oklch(0.094 0.004 90.782);
  --destructive: oklch(0.593 0.239 29.097);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.038 35.953);
  --chart-1: oklch(0.681 0.038 35.953);
  --chart-2: oklch(0.668 0.048 359.706);
  --chart-3: oklch(0.72 0.04 89.014);
  --chart-4: oklch(0.694 0.044 359.467);
  --chart-5: oklch(0.68 0.044 35.966);
}