Crisp for shadcn/ui

Crisp is a shadcn/ui theme built around a neutral gray primary color (#95a0a3) with neutral gray accents (#9599a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#95a0a3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfdfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fcfdfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#95a0a3darkgray
#95a0a3darkgray
Primary foreground
#020303black
#020303black
Secondary
#95a39edarkgray
#95a39edarkgray
Secondary foreground
#020303black
#020303black
Muted
#dae7e2gainsboro
#182521black
Muted foreground
#515c58dimgray
#a3aeaadarkgray
Accent
#9599a3darkgray
#9599a3darkgray
Accent foreground
#020203black
#020203black
Destructive
#d03b16firebrick
#e7451dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#95a0a3darkgray
#95a0a3darkgray

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.72:1AAA
Secondary button7.83:1AAA
Muted text5.45:1AA
Accent7.29:1AAA
Destructive4.87:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button7.72:1AAA
Secondary button7.83:1AAA
Muted text6.93:1AA
Accent7.29:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.015 173.092);
  --muted-foreground: oklch(0.464 0.014 172.652);
  --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.698 0.014 209.431);
  --primary-foreground: oklch(0.092 0.001 208.958);
  --secondary: oklch(0.701 0.017 172.84);
  --secondary-foreground: oklch(0.093 0.002 173.61);
  --accent: oklch(0.683 0.014 263.005);
  --accent-foreground: oklch(0.091 0.001 262.171);
  --destructive: oklch(0.571 0.191 34.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.698 0.014 209.431);
  --chart-1: oklch(0.698 0.014 209.431);
  --chart-2: oklch(0.701 0.017 172.84);
  --chart-3: oklch(0.683 0.014 263.005);
  --chart-4: oklch(0.725 0.016 172.926);
  --chart-5: oklch(0.702 0.02 209.43);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 209.466);
  --muted: oklch(0.251 0.02 171.021);
  --muted-foreground: oklch(0.74 0.013 173.063);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 209.466);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 209.466);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.698 0.014 209.431);
  --primary-foreground: oklch(0.092 0.001 208.958);
  --secondary: oklch(0.701 0.017 172.84);
  --secondary-foreground: oklch(0.093 0.002 173.61);
  --accent: oklch(0.683 0.014 263.005);
  --accent-foreground: oklch(0.091 0.001 262.171);
  --destructive: oklch(0.621 0.205 34.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.698 0.014 209.431);
  --chart-1: oklch(0.698 0.014 209.431);
  --chart-2: oklch(0.701 0.017 172.84);
  --chart-3: oklch(0.683 0.014 263.005);
  --chart-4: oklch(0.725 0.016 172.926);
  --chart-5: oklch(0.702 0.02 209.43);
}