Wake for shadcn/ui

Wake is a shadcn/ui theme built around a pink primary color (#91215b) with blue accents (#215b91). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#91215b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#91215bpurple
#91215bpurple
Primary foreground
#faeaf3lavenderblush
#faeaf3lavenderblush
Secondary
#5b9121olivedrab
#5b9121olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f4f0whitesmoke
#0d0f0bblack
Muted foreground
#4d4f4adarkslategray
#b3b5b0darkgray
Accent
#215b91darkslateblue
#215b91darkslateblue
Accent foreground
#eaf3faaliceblue
#eaf3faaliceblue
Destructive
#ad0000darkred
#ff2929crimson
Destructive foreground
#ffe0e0mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#91215bpurple
#91215bpurple

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.02:1AAA
Secondary button3.78:1AA Large
Muted text7.51:1AAA
Accent6.28:1AA
Destructive6.09:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.02:1AAA
Secondary button3.78:1AA Large
Muted text9.32:1AAA
Accent6.28:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.965 0.006 127.859);
  --muted-foreground: oklch(0.423 0.008 128.012);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.45 0.156 353.981);
  --primary-foreground: oklch(0.953 0.02 344.828);
  --secondary: oklch(0.598 0.151 132.407);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.462 0.107 250.108);
  --accent-foreground: oklch(0.959 0.014 246.131);
  --destructive: oklch(0.47 0.193 29.234);
  --destructive-foreground: oklch(0.933 0.034 17.774);
  --ring: oklch(0.45 0.156 353.981);
  --chart-1: oklch(0.45 0.156 353.981);
  --chart-2: oklch(0.598 0.151 132.407);
  --chart-3: oklch(0.462 0.107 250.108);
  --chart-4: oklch(0.635 0.162 132.459);
  --chart-5: oklch(0.453 0.161 354.489);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 344.336);
  --muted: oklch(0.164 0.009 128.447);
  --muted-foreground: oklch(0.769 0.007 127.894);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 344.336);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.002 344.336);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.45 0.156 353.981);
  --primary-foreground: oklch(0.953 0.02 344.828);
  --secondary: oklch(0.598 0.151 132.407);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.462 0.107 250.108);
  --accent-foreground: oklch(0.959 0.014 246.131);
  --destructive: oklch(0.642 0.244 27.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.45 0.156 353.981);
  --chart-1: oklch(0.45 0.156 353.981);
  --chart-2: oklch(0.598 0.151 132.407);
  --chart-3: oklch(0.462 0.107 250.108);
  --chart-4: oklch(0.635 0.162 132.459);
  --chart-5: oklch(0.453 0.161 354.489);
}