Rake for shadcn/ui

Rake is a shadcn/ui theme built around a muted light purple primary color (#cfb8d1) with muted light green accents (#bad1b8). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the muted light purple primary (#cfb8d1) on a purple-tinted background (#0b040c).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#0b040cblack
Foreground
#000000black
#fdfbfdsnow
Card
#fbf3fcghostwhite
#0f050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbf3fcghostwhite
#0f050fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#cfb8d1thistle
#cfb8d1thistle
Primary foreground
#332234darkslategray
#332234darkslategray
Secondary
#bad1b8silver
#bad1b8silver
Secondary foreground
#243422darkslategray
#243422darkslategray
Muted
#e0f1dfgainsboro
#0f200eblack
Muted foreground
#3d4e3bdarkslategray
#b2c4b1silver
Accent
#bad1b8silver
#bad1b8silver
Accent foreground
#243422darkslategray
#243422darkslategray
Destructive
#cf3217firebrick
#e74023orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfb8d1thistle
#cfb8d1thistle

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.32:1AAA
Primary button8.04:1AAA
Secondary button8.09:1AAA
Muted text7.59:1AAA
Accent8.09:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.69:1AAA
Text on card20.03:1AAA
Primary button8.04:1AAA
Secondary button8.09:1AAA
Muted text9.24:1AAA
Accent8.09:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 323.179);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.03 142.984);
  --muted-foreground: oklch(0.405 0.039 142.678);
  --popover: oklch(0.973 0.014 323.202);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.014 323.202);
  --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.809 0.042 323.37);
  --primary-foreground: oklch(0.281 0.04 323.745);
  --secondary: oklch(0.836 0.042 142.899);
  --secondary-foreground: oklch(0.306 0.039 142.527);
  --accent: oklch(0.836 0.042 142.899);
  --accent-foreground: oklch(0.306 0.039 142.527);
  --destructive: oklch(0.561 0.196 32.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.042 323.37);
  --chart-1: oklch(0.809 0.042 323.37);
  --chart-2: oklch(0.836 0.042 142.899);
  --chart-3: oklch(0.836 0.042 142.899);
  --chart-4: oklch(0.858 0.036 142.937);
  --chart-5: oklch(0.808 0.048 323.403);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.026 324.557);
  --foreground: oklch(0.991 0.003 323.149);
  --muted: oklch(0.223 0.041 142.256);
  --muted-foreground: oklch(0.801 0.033 142.94);
  --popover: oklch(0.138 0.03 324.28);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.03 324.28);
  --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.809 0.042 323.37);
  --primary-foreground: oklch(0.281 0.04 323.745);
  --secondary: oklch(0.836 0.042 142.899);
  --secondary-foreground: oklch(0.306 0.039 142.527);
  --accent: oklch(0.836 0.042 142.899);
  --accent-foreground: oklch(0.306 0.039 142.527);
  --destructive: oklch(0.615 0.207 32.338);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.042 323.37);
  --chart-1: oklch(0.809 0.042 323.37);
  --chart-2: oklch(0.836 0.042 142.899);
  --chart-3: oklch(0.836 0.042 142.899);
  --chart-4: oklch(0.858 0.036 142.937);
  --chart-5: oklch(0.808 0.048 323.403);
}