Curly for shadcn/ui

Curly is a shadcn/ui theme built around a muted light violet primary color (#f4f3f7) with muted light green accents (#f3f7f4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#f4f3f7) on a violet-tinted background (#07050b).

Color palette

TokenLightDark
Background
#fcfbfewhite
#07050bblack
Foreground
#040208black
#fcfbfdsnow
Card
#f9f8fcghostwhite
#09060eblack
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfewhite
#07050bblack
Popover foreground
#040208black
#fcfbfdsnow
Primary
#f4f3f7whitesmoke
#f4f3f7whitesmoke
Primary foreground
#564b6cdimgray
#564b6cdimgray
Secondary
#f7f4f3whitesmoke
#f7f4f3whitesmoke
Secondary foreground
#6c564bdimgray
#6c564bdimgray
Muted
#efe9e6linen
#191310black
Muted foreground
#5b5552dimgray
#ada7a4darkgray
Accent
#f3f7f4whitesmoke
#f3f7f4whitesmoke
Accent foreground
#213026darkslategray
#213026darkslategray
Destructive
#b32309firebrick
#df2b0corangered
Destructive foreground
#fef3f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f3f7whitesmoke
#f4f3f7whitesmoke

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card19.65:1AAA
Primary button7.25:1AAA
Secondary button6.25:1AA
Muted text6.09:1AA
Accent12.78:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.70:1AAA
Text on card20.10:1AAA
Primary button7.25:1AAA
Secondary button6.25:1AA
Muted text7.75:1AAA
Accent12.78:1AAA
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 300.717);
  --foreground: oklch(0.098 0.024 301.203);
  --muted: oklch(0.938 0.008 46.756);
  --muted-foreground: oklch(0.455 0.009 46.642);
  --popover: oklch(0.99 0.003 300.717);
  --popover-foreground: oklch(0.098 0.024 301.203);
  --card: oklch(0.98 0.006 300.665);
  --card-foreground: oklch(0.078 0.019 301.203);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.966 0.005 300.682);
  --primary-foreground: oklch(0.438 0.055 298.648);
  --secondary: oklch(0.969 0.003 46.82);
  --secondary-foreground: oklch(0.472 0.034 46.168);
  --accent: oklch(0.972 0.005 156.456);
  --accent-foreground: oklch(0.293 0.027 154.596);
  --destructive: oklch(0.498 0.183 31.889);
  --destructive-foreground: oklch(0.971 0.013 29.517);
  --ring: oklch(0.966 0.005 300.682);
  --chart-1: oklch(0.966 0.005 300.682);
  --chart-2: oklch(0.969 0.003 46.82);
  --chart-3: oklch(0.972 0.005 156.456);
  --chart-4: oklch(0.992 0.001 46.848);
  --chart-5: oklch(0.965 0.006 300.668);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.017 300.988);
  --foreground: oklch(0.991 0.003 300.724);
  --muted: oklch(0.192 0.013 46.222);
  --muted-foreground: oklch(0.732 0.008 46.735);
  --popover: oklch(0.12 0.017 300.988);
  --popover-foreground: oklch(0.991 0.003 300.724);
  --card: oklch(0.132 0.02 300.039);
  --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.966 0.005 300.682);
  --primary-foreground: oklch(0.438 0.055 298.648);
  --secondary: oklch(0.969 0.003 46.82);
  --secondary-foreground: oklch(0.472 0.034 46.168);
  --accent: oklch(0.972 0.005 156.456);
  --accent-foreground: oklch(0.293 0.027 154.596);
  --destructive: oklch(0.584 0.217 31.766);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.966 0.005 300.682);
  --chart-1: oklch(0.966 0.005 300.682);
  --chart-2: oklch(0.969 0.003 46.82);
  --chart-3: oklch(0.972 0.005 156.456);
  --chart-4: oklch(0.992 0.001 46.848);
  --chart-5: oklch(0.965 0.006 300.668);
}