Curd for shadcn/ui

Curd is a shadcn/ui theme built around a vivid deep violet primary color (#1d0434) with vivid deep green accents (#1b3404). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid deep violet primary (#1d0434) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#030203black
Foreground
#0d0416black
#ffffffwhite
Card
#faf8fcghostwhite
#030203black
Card foreground
#0d0416black
#ffffffwhite
Popover
#faf8fcghostwhite
#030203black
Popover foreground
#0d0416black
#ffffffwhite
Primary
#1d0434black
#1d0434black
Primary foreground
#b777f3mediumpurple
#b777f3mediumpurple
Secondary
#1b3404darkgreen
#1b3404darkgreen
Secondary foreground
#7feb19lawngreen
#7feb19lawngreen
Muted
#e0e9d8gainsboro
#1e2716black
Muted foreground
#5e615cdimgray
#a1a39edarkgray
Accent
#1b3404darkgreen
#1b3404darkgreen
Accent foreground
#7feb19lawngreen
#7feb19lawngreen
Destructive
#c71c05firebrick
#f93015orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d0434black
#1d0434black

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button6.20:1AA
Secondary button8.99:1AAA
Muted text5.04:1AA
Accent8.99:1AAA
Destructive5.84:1AA
Dark mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button6.20:1AA
Secondary button8.99:1AAA
Muted text6.04:1AA
Accent8.99:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 309.065);
  --foreground: oklch(0.136 0.042 307.467);
  --muted: oklch(0.923 0.026 129.422);
  --muted-foreground: oklch(0.489 0.01 129.335);
  --popover: oklch(0.982 0.006 309.065);
  --popover-foreground: oklch(0.136 0.042 307.467);
  --card: oklch(0.982 0.006 309.065);
  --card-foreground: oklch(0.136 0.042 307.467);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.193 0.087 302.644);
  --primary-foreground: oklch(0.688 0.184 305.991);
  --secondary: oklch(0.293 0.077 133.385);
  --secondary-foreground: oklch(0.842 0.241 135.046);
  --accent: oklch(0.293 0.077 133.385);
  --accent-foreground: oklch(0.842 0.241 135.046);
  --destructive: oklch(0.53 0.205 30.773);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.193 0.087 302.644);
  --chart-1: oklch(0.193 0.087 302.644);
  --chart-2: oklch(0.293 0.077 133.385);
  --chart-3: oklch(0.293 0.077 133.385);
  --chart-4: oklch(0.341 0.092 133.89);
  --chart-5: oklch(0.192 0.09 302.385);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 310.043);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.034 130.67);
  --muted-foreground: oklch(0.713 0.009 129.256);
  --popover: oklch(0.086 0.01 310.043);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.086 0.01 310.043);
  --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.193 0.087 302.644);
  --primary-foreground: oklch(0.688 0.184 305.991);
  --secondary: oklch(0.293 0.077 133.385);
  --secondary-foreground: oklch(0.842 0.241 135.046);
  --accent: oklch(0.293 0.077 133.385);
  --accent-foreground: oklch(0.842 0.241 135.046);
  --destructive: oklch(0.634 0.236 30.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.193 0.087 302.644);
  --chart-1: oklch(0.193 0.087 302.644);
  --chart-2: oklch(0.293 0.077 133.385);
  --chart-3: oklch(0.293 0.077 133.385);
  --chart-4: oklch(0.341 0.092 133.89);
  --chart-5: oklch(0.192 0.09 302.385);
}