Yawning for shadcn/ui

Yawning is a shadcn/ui theme built around a vivid purple primary color (#fd68f8) with vivid pink accents (#fd68ae). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#fd68f8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#040104black
#fbf9fbsnow
Card
#fdf7fdsnow
#030303black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfewhite
#000000black
Popover foreground
#040104black
#fbf9fbsnow
Primary
#fd68f8violet
#fd68f8violet
Primary foreground
#320131black
#320131black
Secondary
#b768fdmediumorchid
#b768fdmediumorchid
Secondary foreground
#000000black
#000000black
Muted
#e9e0f0lavender
#170f1fblack
Muted foreground
#52465ddarkslategray
#aea2b9darkgray
Accent
#fd68aehotpink
#fd68aehotpink
Accent foreground
#320118black
#320118black
Destructive
#6c1d04maroon
#e63d0aorangered
Destructive foreground
#fbbba7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fd68f8violet
#fd68f8violet

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.88:1AAA
Primary button7.18:1AAA
Secondary button6.43:1AA
Muted text6.85:1AA
Accent6.73:1AA
Destructive7.06:1AAA
Dark mode
Text on background20.04:1AAA
Text on card20.20:1AAA
Primary button7.18:1AAA
Secondary button6.43:1AA
Muted text7.69:1AAA
Accent6.73:1AA
Destructive4.16: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.991 0.005 326.582);
  --foreground: oklch(0.086 0.02 328.008);
  --muted: oklch(0.919 0.023 309.54);
  --muted-foreground: oklch(0.416 0.04 308.823);
  --popover: oklch(0.991 0.005 326.582);
  --popover-foreground: oklch(0.086 0.02 328.008);
  --card: oklch(0.982 0.009 326.624);
  --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.753 0.241 328.976);
  --primary-foreground: oklch(0.223 0.1 329.83);
  --secondary: oklch(0.672 0.217 305.984);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.722 0.193 353.955);
  --accent-foreground: oklch(0.208 0.083 357.724);
  --destructive: oklch(0.356 0.116 36.063);
  --destructive-foreground: oklch(0.845 0.08 37.611);
  --ring: oklch(0.753 0.241 328.976);
  --chart-1: oklch(0.753 0.241 328.976);
  --chart-2: oklch(0.672 0.217 305.984);
  --chart-3: oklch(0.722 0.193 353.955);
  --chart-4: oklch(0.701 0.197 306.642);
  --chart-5: oklch(0.754 0.247 329.027);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 326.568);
  --muted: oklch(0.188 0.033 307.982);
  --muted-foreground: oklch(0.73 0.035 309.308);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.003 326.568);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.002 326.554);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.753 0.241 328.976);
  --primary-foreground: oklch(0.223 0.1 329.83);
  --secondary: oklch(0.672 0.217 305.984);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.722 0.193 353.955);
  --accent-foreground: oklch(0.208 0.083 357.724);
  --destructive: oklch(0.611 0.212 34.692);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.753 0.241 328.976);
  --chart-1: oklch(0.753 0.241 328.976);
  --chart-2: oklch(0.672 0.217 305.984);
  --chart-3: oklch(0.722 0.193 353.955);
  --chart-4: oklch(0.701 0.197 306.642);
  --chart-5: oklch(0.754 0.247 329.027);
}