Crepe for shadcn/ui

Crepe is a shadcn/ui theme built around a vivid light teal primary color (#d7f9ea) with muted teal accents (#b0cfc1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#d7f9ea) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b08black
Foreground
#020906black
#ffffffwhite
Card
#fcfcfcsnow
#050f0bblack
Card foreground
#010403black
#ffffffwhite
Popover
#ffffffwhite
#040b08black
Popover foreground
#020906black
#ffffffwhite
Primary
#d7f9ealightcyan
#d7f9ealightcyan
Primary foreground
#07311fblack
#07311fblack
Secondary
#c9d9d2lightgrey
#1c2722black
Secondary foreground
#2e4239darkslategray
#aec6bcsilver
Muted
#e3e8e6gainsboro
#171c1ablack
Muted foreground
#384c44darkslategray
#b3c7besilver
Accent
#b0cfc1silver
#2b453adarkslategray
Accent foreground
#1d2f27darkslategray
#c7dcd3lightgrey
Destructive
#d12715firebrick
#d52815firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7f9ealightcyan
#d7f9ealightcyan

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.14:1AAA
Primary button12.72:1AAA
Secondary button7.35:1AAA
Muted text7.41:1AAA
Accent8.39:1AAA
Destructive5.23:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.41:1AAA
Primary button12.72:1AAA
Secondary button8.54:1AAA
Muted text9.71:1AAA
Accent7.24:1AAA
Destructive5.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.018 169.018);
  --muted: oklch(0.927 0.006 168.546);
  --muted-foreground: oklch(0.398 0.029 166.515);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.018 169.018);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.015 169.018);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.955 0.041 167.463);
  --primary-foreground: oklch(0.28 0.057 159.949);
  --secondary: oklch(0.872 0.02 168.069);
  --secondary-foreground: oklch(0.36 0.03 166.154);
  --accent: oklch(0.827 0.038 167.397);
  --accent-foreground: oklch(0.288 0.028 165.59);
  --destructive: oklch(0.556 0.206 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.041 167.463);
  --chart-1: oklch(0.955 0.041 167.463);
  --chart-2: oklch(0.872 0.02 168.069);
  --chart-3: oklch(0.827 0.038 167.397);
  --chart-4: oklch(0.893 0.017 168.198);
  --chart-5: oklch(0.956 0.043 167.412);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.016 168.708);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.009 167.577);
  --muted-foreground: oklch(0.811 0.025 167.854);
  --popover: oklch(0.141 0.016 168.708);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.019 166.676);
  --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.955 0.041 167.463);
  --primary-foreground: oklch(0.28 0.057 159.949);
  --secondary: oklch(0.259 0.018 166.593);
  --secondary-foreground: oklch(0.806 0.029 167.685);
  --accent: oklch(0.366 0.037 165.44);
  --accent-foreground: oklch(0.875 0.026 167.885);
  --destructive: oklch(0.566 0.21 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.955 0.041 167.463);
  --chart-1: oklch(0.955 0.041 167.463);
  --chart-2: oklch(0.259 0.018 166.593);
  --chart-3: oklch(0.366 0.037 165.44);
  --chart-4: oklch(0.293 0.022 166.467);
  --chart-5: oklch(0.956 0.043 167.412);
}