Curl for shadcn/ui

Curl is a shadcn/ui theme built around a red primary color (#d65759) with orange accents (#d69457). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the red primary (#d65759) on a red-tinted background (#0c0303).

Color palette

TokenLightDark
Background
#fcf8f8snow
#0c0303black
Foreground
#120303black
#fbf9f9snow
Card
#faf5f5whitesmoke
#100405black
Card foreground
#0d0202black
#fdfcfcsnow
Popover
#faf5f5whitesmoke
#100405black
Popover foreground
#0d0202black
#fdfcfcsnow
Primary
#d65759indianred
#d65759indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d65799palevioletred
#d65799palevioletred
Secondary foreground
#000000black
#000000black
Muted
#f1eff0whitesmoke
#100e0fblack
Muted foreground
#4c484adarkslategray
#b7b3b5silver
Accent
#d69457peru
#d69457peru
Accent foreground
#000000black
#000000black
Destructive
#b11602firebrick
#fd361corangered
Destructive foreground
#ffe9e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d65759indianred
#d65759indianred

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card18.89:1AAA
Primary button3.91:1AA Large
Secondary button5.67:1AA
Muted text7.84:1AAA
Accent8.25:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.65:1AAA
Primary button3.91:1AA Large
Secondary button5.67:1AA
Muted text9.25:1AAA
Accent8.25:1AAA
Destructive3.67: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.982 0.004 16.044);
  --foreground: oklch(0.128 0.034 21.551);
  --muted: oklch(0.953 0.002 344.349);
  --muted-foreground: oklch(0.406 0.007 344.722);
  --popover: oklch(0.973 0.006 16.081);
  --popover-foreground: oklch(0.114 0.03 21.18);
  --card: oklch(0.973 0.006 16.081);
  --card-foreground: oklch(0.114 0.03 21.18);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.621 0.161 22.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.639 0.174 351.04);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.112 62.585);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.485 0.188 30.888);
  --destructive-foreground: oklch(0.95 0.025 26.631);
  --ring: oklch(0.621 0.161 22.041);
  --chart-1: oklch(0.621 0.161 22.041);
  --chart-2: oklch(0.639 0.174 351.04);
  --chart-3: oklch(0.72 0.112 62.585);
  --chart-4: oklch(0.662 0.162 350.243);
  --chart-5: oklch(0.622 0.168 22.426);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.021 19.152);
  --foreground: oklch(0.984 0.001 15.997);
  --muted: oklch(0.168 0.004 344.827);
  --muted-foreground: oklch(0.771 0.006 344.483);
  --popover: oklch(0.132 0.024 19.432);
  --popover-foreground: oklch(0.992 0.001 15.985);
  --card: oklch(0.132 0.024 19.432);
  --card-foreground: oklch(0.992 0.001 15.985);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.621 0.161 22.041);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.639 0.174 351.04);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.112 62.585);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.645 0.235 31.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.621 0.161 22.041);
  --chart-1: oklch(0.621 0.161 22.041);
  --chart-2: oklch(0.639 0.174 351.04);
  --chart-3: oklch(0.72 0.112 62.585);
  --chart-4: oklch(0.662 0.162 350.243);
  --chart-5: oklch(0.622 0.168 22.426);
}