Chutney for shadcn/ui

Chutney is a shadcn/ui theme built around a violet primary color (#9475db) with purple accents (#c775db). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#9475db) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090515black
#f7f6f8whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#080411black
#faf9fbghostwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#080411black
#faf9fbghostwhite
Primary
#9475dbmediumpurple
#9475dbmediumpurple
Primary foreground
#000000black
#000000black
Secondary
#758adbcornflowerblue
#758adbcornflowerblue
Secondary foreground
#060a18black
#060a18black
Muted
#f0f1f5whitesmoke
#0a0b0fblack
Muted foreground
#4c4c4ddarkslategray
#b2b2b3darkgray
Accent
#c775dborchid
#c775dborchid
Accent foreground
#150618black
#150618black
Destructive
#830b02maroon
#fc3a2corangered
Destructive foreground
#febdb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9475dbmediumpurple
#9475dbmediumpurple

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.83:1AAA
Primary button5.83:1AA
Secondary button6.01:1AA
Muted text7.58:1AAA
Accent6.54:1AA
Destructive6.57:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.70:1AAA
Primary button5.83:1AA
Secondary button6.01:1AA
Muted text9.27:1AAA
Accent6.54:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.038 297.066);
  --muted: oklch(0.958 0.006 274.963);
  --muted-foreground: oklch(0.417 0.002 274.974);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.122 0.033 298.687);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.122 0.033 298.687);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.637 0.151 295.642);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.125 271.925);
  --secondary-foreground: oklch(0.149 0.032 270.148);
  --accent: oklch(0.69 0.167 319.37);
  --accent-foreground: oklch(0.158 0.043 319.548);
  --destructive: oklch(0.387 0.152 30.186);
  --destructive-foreground: oklch(0.857 0.075 23.403);
  --ring: oklch(0.637 0.151 295.642);
  --chart-1: oklch(0.637 0.151 295.642);
  --chart-2: oklch(0.651 0.125 271.925);
  --chart-3: oklch(0.69 0.167 319.37);
  --chart-4: oklch(0.682 0.112 272.428);
  --chart-5: oklch(0.633 0.158 295.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 299.992);
  --muted: oklch(0.151 0.009 274.249);
  --muted-foreground: oklch(0.764 0.002 275.006);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.002 300.007);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 300.007);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.637 0.151 295.642);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.125 271.925);
  --secondary-foreground: oklch(0.149 0.032 270.148);
  --accent: oklch(0.69 0.167 319.37);
  --accent-foreground: oklch(0.158 0.043 319.548);
  --destructive: oklch(0.647 0.23 29.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.637 0.151 295.642);
  --chart-1: oklch(0.637 0.151 295.642);
  --chart-2: oklch(0.651 0.125 271.925);
  --chart-3: oklch(0.69 0.167 319.37);
  --chart-4: oklch(0.682 0.112 272.428);
  --chart-5: oklch(0.633 0.158 295.351);
}