Curve for shadcn/ui

Curve is a shadcn/ui theme built around a muted deep pink primary color (#4a2b3b) with muted deep red accents (#4a2b2c). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the muted deep pink primary (#4a2b3b) on a pink-tinted background (#0f050a).

Color palette

TokenLightDark
Background
#fdf7fasnow
#0f050ablack
Foreground
#000000black
#fdfcfcsnow
Card
#fcf2f8lavenderblush
#13070dblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcf2f8lavenderblush
#13070dblack
Popover foreground
#000000black
#ffffffwhite
Primary
#4a2b3bdarkslategray
#4a2b3bdarkslategray
Primary foreground
#dfc8d4thistle
#dfc8d4thistle
Secondary
#492b4adarkslategray
#492b4adarkslategray
Secondary foreground
#dfc8dfthistle
#dfc8dfthistle
Muted
#dfd8dfgainsboro
#272027darkslategray
Muted foreground
#635463dimgray
#aa9cabdarkgray
Accent
#4a2b2cdarkslategray
#4a2b2cdarkslategray
Accent foreground
#dfc8c9thistle
#dfc8c9thistle
Destructive
#75290bsaddlebrown
#d24914chocolate
Destructive foreground
#f8cbb9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a2b3bdarkslategray
#4a2b3bdarkslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.25:1AAA
Primary button7.82:1AAA
Secondary button7.75:1AAA
Muted text5.03:1AA
Accent7.89:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.77:1AAA
Primary button7.82:1AAA
Secondary button7.75:1AAA
Muted text6.07:1AA
Accent7.89:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 344.5);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.012 325.196);
  --muted-foreground: oklch(0.467 0.03 325.529);
  --popover: oklch(0.972 0.012 344.61);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.012 344.61);
  --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.335 0.051 347.903);
  --primary-foreground: oklch(0.856 0.03 345.149);
  --secondary: oklch(0.341 0.065 326.309);
  --secondary-foreground: oklch(0.859 0.039 325.41);
  --accent: oklch(0.329 0.045 18.73);
  --accent-foreground: oklch(0.853 0.025 16.509);
  --destructive: oklch(0.389 0.114 39.384);
  --destructive-foreground: oklch(0.877 0.057 42.678);
  --ring: oklch(0.335 0.051 347.903);
  --chart-1: oklch(0.335 0.051 347.903);
  --chart-2: oklch(0.341 0.065 326.309);
  --chart-3: oklch(0.329 0.045 18.73);
  --chart-4: oklch(0.369 0.072 326.333);
  --chart-5: oklch(0.334 0.057 348.323);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.023 346.054);
  --foreground: oklch(0.992 0.001 344.304);
  --muted: oklch(0.255 0.017 325.543);
  --muted-foreground: oklch(0.709 0.027 325.358);
  --popover: oklch(0.149 0.027 347.587);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.027 347.587);
  --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.335 0.051 347.903);
  --primary-foreground: oklch(0.856 0.03 345.149);
  --secondary: oklch(0.341 0.065 326.309);
  --secondary-foreground: oklch(0.859 0.039 325.41);
  --accent: oklch(0.329 0.045 18.73);
  --accent-foreground: oklch(0.853 0.025 16.509);
  --destructive: oklch(0.59 0.182 38.528);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.335 0.051 347.903);
  --chart-1: oklch(0.335 0.051 347.903);
  --chart-2: oklch(0.341 0.065 326.309);
  --chart-3: oklch(0.329 0.045 18.73);
  --chart-4: oklch(0.369 0.072 326.333);
  --chart-5: oklch(0.334 0.057 348.323);
}