Curl for shadcn/ui

Curl is a shadcn/ui theme built around a neutral gray primary color (#797572) with neutral gray accents (#727679). The light mode uses a neutral background (#fefcfb). Dark mode keeps the neutral gray primary (#797572) on an orange-tinted background (#0a0705).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0a0705black
Foreground
#040201black
#f9f7f6whitesmoke
Card
#fcfaf8snow
#0d0a07black
Card foreground
#000000black
#fbfaf9snow
Popover
#fcfaf8snow
#0d0a07black
Popover foreground
#000000black
#fbfaf9snow
Primary
#797572gray
#797572gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#727679gray
#727679gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1f2f3whitesmoke
#0c0d0eblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#727679gray
#727679gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c84209chocolate
#f45510orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#797572gray
#797572gray

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.12:1AAA
Primary button4.57:1AA
Secondary button4.60:1AA
Muted text7.56:1AAA
Accent4.60:1AA
Destructive4.95:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.93:1AAA
Primary button4.57:1AA
Secondary button4.60:1AA
Muted text9.28:1AAA
Accent4.60:1AA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 62.17);
  --foreground: oklch(0.093 0.01 70.47);
  --muted: oklch(0.962 0.001 242.211);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.985 0.004 62.145);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.004 62.145);
  --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.565 0.007 62.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.562 0.007 242.353);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.007 242.353);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.565 0.179 38.51);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.007 62.034);
  --chart-1: oklch(0.565 0.007 62.034);
  --chart-2: oklch(0.562 0.007 242.353);
  --chart-3: oklch(0.562 0.007 242.353);
  --chart-4: oklch(0.588 0.007 242.354);
  --chart-5: oklch(0.566 0.014 61.871);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 66.658);
  --foreground: oklch(0.978 0.003 62.155);
  --muted: oklch(0.158 0.002 242.364);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.148 0.009 64.277);
  --popover-foreground: oklch(0.985 0.002 62.168);
  --card: oklch(0.148 0.009 64.277);
  --card-foreground: oklch(0.985 0.002 62.168);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.565 0.007 62.034);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.562 0.007 242.353);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.007 242.353);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.206 38.74);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.007 62.034);
  --chart-1: oklch(0.565 0.007 62.034);
  --chart-2: oklch(0.562 0.007 242.353);
  --chart-3: oklch(0.562 0.007 242.353);
  --chart-4: oklch(0.588 0.007 242.354);
  --chart-5: oklch(0.566 0.014 61.871);
}