Curly for shadcn/ui

Curly is a shadcn/ui theme built around a purple primary color (#c74eda) with green accents (#61da4e). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c74eda) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0c020dblack
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#080209black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#080209black
#ffffffwhite
Primary
#c74edamediumorchid
#c74edamediumorchid
Primary foreground
#000000black
#000000black
Secondary
#61da4elimegreen
#61da4elimegreen
Secondary foreground
#000000black
#000000black
Muted
#e8eee7linen
#121811black
Muted foreground
#545b52dimgray
#a5ada4darkgray
Accent
#61da4elimegreen
#61da4elimegreen
Accent foreground
#000000black
#000000black
Destructive
#611305maroon
#db2a0aorangered
Destructive foreground
#faac9elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c74edamediumorchid
#c74edamediumorchid

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.08:1AAA
Primary button5.53:1AA
Secondary button11.59:1AAA
Muted text5.94:1AA
Accent11.59:1AAA
Destructive7.14:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.53:1AA
Secondary button11.59:1AAA
Muted text7.84:1AAA
Accent11.59:1AAA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.035 323.439);
  --muted: oklch(0.943 0.011 141.561);
  --muted-foreground: oklch(0.462 0.017 141.49);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.03 323.835);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.03 323.835);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.223 322.102);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.789 0.209 141.115);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.789 0.209 141.115);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.325 0.114 32.575);
  --destructive-foreground: oklch(0.815 0.096 30.335);
  --ring: oklch(0.638 0.223 322.102);
  --chart-1: oklch(0.638 0.223 322.102);
  --chart-2: oklch(0.789 0.209 141.115);
  --chart-3: oklch(0.789 0.209 141.115);
  --chart-4: oklch(0.802 0.198 141.088);
  --chart-5: oklch(0.64 0.231 322.08);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.199 0.015 141.375);
  --muted-foreground: oklch(0.738 0.015 141.535);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.638 0.223 322.102);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.789 0.209 141.115);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.789 0.209 141.115);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.576 0.215 31.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.223 322.102);
  --chart-1: oklch(0.638 0.223 322.102);
  --chart-2: oklch(0.789 0.209 141.115);
  --chart-3: oklch(0.789 0.209 141.115);
  --chart-4: oklch(0.802 0.198 141.088);
  --chart-5: oklch(0.64 0.231 322.08);
}