Crepe for shadcn/ui

Crepe is a shadcn/ui theme built around a near-white primary color (#fdfff5) with near-white accents (#fff5fd). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-white primary (#fdfff5) on a green-tinted background (#0e1004).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0e1004black
Foreground
#0e1004black
#fdfdfcwhite
Card
#fbfcf8snow
#111406black
Card foreground
#0a0c03black
#ffffffwhite
Popover
#fbfcf8snow
#111406black
Popover foreground
#0a0c03black
#ffffffwhite
Primary
#fdfff5ivory
#fdfff5ivory
Primary foreground
#485903darkolivegreen
#485903darkolivegreen
Secondary
#f5fdffazure
#f5fdffazure
Secondary foreground
#034859darkslategray
#034859darkslategray
Muted
#edf1f3whitesmoke
#0c1112black
Muted foreground
#464849darkslategray
#b6b8b9silver
Accent
#fff5fdsnow
#fff5fdsnow
Accent foreground
#590348indigo
#590348indigo
Destructive
#c91f13firebrick
#eb3124crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfff5ivory
#fdfff5ivory

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card19.14:1AAA
Primary button7.66:1AAA
Secondary button9.80:1AAA
Muted text8.10:1AAA
Accent12.88:1AAA
Destructive5.71:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.65:1AAA
Primary button7.66:1AAA
Secondary button9.80:1AAA
Muted text9.53:1AAA
Accent12.88:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 115.637);
  --foreground: oklch(0.167 0.026 117.605);
  --muted: oklch(0.956 0.005 214.331);
  --muted-foreground: oklch(0.401 0.003 214.338);
  --popover: oklch(0.99 0.006 115.697);
  --popover-foreground: oklch(0.15 0.023 116.616);
  --card: oklch(0.99 0.006 115.697);
  --card-foreground: oklch(0.15 0.023 116.616);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.995 0.013 115.811);
  --primary-foreground: oklch(0.433 0.103 121.789);
  --secondary: oklch(0.988 0.008 214.34);
  --secondary-foreground: oklch(0.371 0.067 221.053);
  --accent: oklch(0.98 0.014 332.219);
  --accent-foreground: oklch(0.316 0.134 338.887);
  --destructive: oklch(0.536 0.204 29.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.995 0.013 115.811);
  --chart-1: oklch(0.995 0.013 115.811);
  --chart-2: oklch(0.988 0.008 214.34);
  --chart-3: oklch(0.98 0.014 332.219);
  --chart-4: oklch(1.006 0.004 34.31);
  --chart-5: oklch(0.995 0.013 115.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.024 117.5);
  --foreground: oklch(0.994 0.001 115.605);
  --muted: oklch(0.173 0.008 214.548);
  --muted-foreground: oklch(0.782 0.003 214.326);
  --popover: oklch(0.183 0.028 118.116);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.183 0.028 118.116);
  --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.995 0.013 115.811);
  --primary-foreground: oklch(0.433 0.103 121.789);
  --secondary: oklch(0.988 0.008 214.34);
  --secondary-foreground: oklch(0.371 0.067 221.053);
  --accent: oklch(0.98 0.014 332.219);
  --accent-foreground: oklch(0.316 0.134 338.887);
  --destructive: oklch(0.61 0.222 29.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.995 0.013 115.811);
  --chart-1: oklch(0.995 0.013 115.811);
  --chart-2: oklch(0.988 0.008 214.34);
  --chart-3: oklch(0.98 0.014 332.219);
  --chart-4: oklch(1.006 0.004 34.31);
  --chart-5: oklch(0.995 0.013 115.818);
}