Curvy for shadcn/ui

Curvy is a shadcn/ui theme built around a yellow primary color (#786b21) with blue accents (#212e78). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#786b21) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcf7snow
#000000black
Foreground
#040401black
#ffffffwhite
Card
#fdfcf7snow
#000000black
Card foreground
#040401black
#ffffffwhite
Popover
#fdfcf7snow
#000000black
Popover foreground
#040401black
#ffffffwhite
Primary
#786b21olivedrab
#786b21olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#212e78midnightblue
#212e78midnightblue
Secondary foreground
#d7dbf4lavender
#d7dbf4lavender
Muted
#ced1e4lightgrey
#1b1e31darkslategray
Muted foreground
#494a50darkslategray
#afb0b6darkgray
Accent
#212e78midnightblue
#212e78midnightblue
Accent foreground
#d7dbf4lavender
#d7dbf4lavender
Destructive
#791406maroon
#e9260corangered
Destructive foreground
#fbbeb6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#786b21olivedrab
#786b21olivedrab

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button5.34:1AA
Secondary button8.87:1AAA
Muted text5.82:1AA
Accent8.87:1AAA
Destructive6.85:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.34:1AA
Secondary button8.87:1AAA
Muted text7.56:1AAA
Accent8.87:1AAA
Destructive4.43:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 98.416);
  --foreground: oklch(0.103 0.016 102.681);
  --muted: oklch(0.864 0.026 277.861);
  --muted-foreground: oklch(0.411 0.009 278.005);
  --popover: oklch(0.99 0.007 98.416);
  --popover-foreground: oklch(0.103 0.016 102.681);
  --card: oklch(0.99 0.007 98.416);
  --card-foreground: oklch(0.103 0.016 102.681);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.526 0.094 99.055);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.34 0.127 270.481);
  --secondary-foreground: oklch(0.897 0.034 277.738);
  --accent: oklch(0.34 0.127 270.481);
  --accent-foreground: oklch(0.897 0.034 277.738);
  --destructive: oklch(0.374 0.137 31.113);
  --destructive-foreground: oklch(0.856 0.071 27.222);
  --ring: oklch(0.526 0.094 99.055);
  --chart-1: oklch(0.526 0.094 99.055);
  --chart-2: oklch(0.34 0.127 270.481);
  --chart-3: oklch(0.34 0.127 270.481);
  --chart-4: oklch(0.362 0.137 270.334);
  --chart-5: oklch(0.531 0.097 98.938);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.036 275.701);
  --muted-foreground: oklch(0.759 0.007 278.175);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.526 0.094 99.055);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.34 0.127 270.481);
  --secondary-foreground: oklch(0.897 0.034 277.738);
  --accent: oklch(0.34 0.127 270.481);
  --accent-foreground: oklch(0.897 0.034 277.738);
  --destructive: oklch(0.598 0.228 30.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.526 0.094 99.055);
  --chart-1: oklch(0.526 0.094 99.055);
  --chart-2: oklch(0.34 0.127 270.481);
  --chart-3: oklch(0.34 0.127 270.481);
  --chart-4: oklch(0.362 0.137 270.334);
  --chart-5: oklch(0.531 0.097 98.938);
}