Crisp for shadcn/ui

Crisp is a shadcn/ui theme built around a muted yellow primary color (#8d7a53) with muted violet accents (#7a538d). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#8d7a53) on a yellow-tinted background (#0f0c05).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0f0c05black
Foreground
#0c0904black
#ffffffwhite
Card
#fefdfbsnow
#0f0c05black
Card foreground
#0c0904black
#ffffffwhite
Popover
#fefdfbsnow
#0f0c05black
Popover foreground
#0c0904black
#ffffffwhite
Primary
#8d7a53dimgray
#8d7a53dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#538d7aslategray
#538d7aslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dadddcgainsboro
#222524darkslategray
Muted foreground
#606261dimgray
#9d9f9edarkgray
Accent
#7a538drebeccapurple
#7a538drebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c10906firebrick
#f8110dred
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8d7a53dimgray
#8d7a53dimgray

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button4.16:1AA Large
Secondary button3.83:1AA Large
Muted text4.49:1AA Large
Accent6.08:1AA
Destructive6.13:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button4.16:1AA Large
Secondary button3.83:1AA Large
Muted text5.78:1AA
Accent6.08:1AA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 84.558);
  --foreground: oklch(0.141 0.015 89.718);
  --muted: oklch(0.895 0.004 174.451);
  --muted-foreground: oklch(0.494 0.003 174.432);
  --popover: oklch(0.994 0.003 84.558);
  --popover-foreground: oklch(0.141 0.015 89.718);
  --card: oklch(0.994 0.003 84.558);
  --card-foreground: oklch(0.141 0.015 89.718);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.588 0.06 84.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.069 170.548);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.1 313.803);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.512 0.206 29.138);
  --destructive-foreground: oklch(0.989 0.005 18.44);
  --ring: oklch(0.588 0.06 84.136);
  --chart-1: oklch(0.588 0.06 84.136);
  --chart-2: oklch(0.599 0.069 170.548);
  --chart-3: oklch(0.508 0.1 313.803);
  --chart-4: oklch(0.628 0.072 170.52);
  --chart-5: oklch(0.593 0.066 83.978);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.017 86.94);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.006 173.95);
  --muted-foreground: oklch(0.701 0.002 174.487);
  --popover: oklch(0.156 0.017 86.94);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.017 86.94);
  --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.588 0.06 84.136);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.069 170.548);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.508 0.1 313.803);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.617 0.248 29.063);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.06 84.136);
  --chart-1: oklch(0.588 0.06 84.136);
  --chart-2: oklch(0.599 0.069 170.548);
  --chart-3: oklch(0.508 0.1 313.803);
  --chart-4: oklch(0.628 0.072 170.52);
  --chart-5: oklch(0.593 0.066 83.978);
}