Hutch for shadcn/ui

Hutch is a shadcn/ui theme built around a muted deep violet primary color (#0e0c13) with muted deep purple accents (#120c13). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#0e0c13) on a violet-tinted background (#09070e).

Color palette

TokenLightDark
Background
#fcfbfewhite
#09070eblack
Foreground
#06020dblack
#fcfcfdwhite
Card
#f9f7fdghostwhite
#0c0811black
Card foreground
#040109black
#ffffffwhite
Popover
#f9f7fdghostwhite
#0c0811black
Popover foreground
#040109black
#ffffffwhite
Primary
#0e0c13black
#0e0c13black
Primary foreground
#a394bcdarkgray
#a394bcdarkgray
Secondary
#0c0d13black
#0c0d13black
Secondary foreground
#949abcdarkgray
#949abcdarkgray
Muted
#e4e5eclavender
#13141bblack
Muted foreground
#57575cdimgray
#a3a4a8darkgray
Accent
#120c13black
#120c13black
Accent foreground
#b794bcdarkgray
#b794bcdarkgray
Destructive
#9d1301darkred
#fe3a20orangered
Destructive foreground
#ffd7d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0c13black
#0e0c13black

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.51:1AAA
Primary button6.96:1AA
Secondary button7.03:1AAA
Muted text5.71:1AA
Accent7.34:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.81:1AAA
Primary button6.96:1AA
Secondary button7.03:1AAA
Muted text7.38:1AAA
Accent7.34:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 302.872);
  --foreground: oklch(0.108 0.035 303.621);
  --muted: oklch(0.923 0.01 279.172);
  --muted-foreground: oklch(0.459 0.008 279.09);
  --popover: oklch(0.98 0.007 302.813);
  --popover-foreground: oklch(0.094 0.03 304.173);
  --card: oklch(0.98 0.007 302.813);
  --card-foreground: oklch(0.094 0.03 304.173);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.16 0.015 301.467);
  --primary-foreground: oklch(0.694 0.06 301.607);
  --secondary: oklch(0.16 0.013 277.979);
  --secondary-foreground: oklch(0.693 0.051 278.121);
  --accent: oklch(0.165 0.017 321.871);
  --accent-foreground: oklch(0.712 0.069 321.848);
  --destructive: oklch(0.445 0.172 31.061);
  --destructive-foreground: oklch(0.911 0.046 26.855);
  --ring: oklch(0.16 0.015 301.467);
  --chart-1: oklch(0.16 0.015 301.467);
  --chart-2: oklch(0.16 0.013 277.979);
  --chart-3: oklch(0.165 0.017 321.871);
  --chart-4: oklch(0.19 0.019 277.662);
  --chart-5: oklch(0.159 0.017 301.256);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.017 302.455);
  --foreground: oklch(0.991 0.001 302.906);
  --muted: oklch(0.193 0.015 278.007);
  --muted-foreground: oklch(0.719 0.007 279.2);
  --popover: oklch(0.146 0.019 301.132);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.019 301.132);
  --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.16 0.015 301.467);
  --primary-foreground: oklch(0.694 0.06 301.607);
  --secondary: oklch(0.16 0.013 277.979);
  --secondary-foreground: oklch(0.693 0.051 278.121);
  --accent: oklch(0.165 0.017 321.871);
  --accent-foreground: oklch(0.712 0.069 321.848);
  --destructive: oklch(0.65 0.234 31.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.16 0.015 301.467);
  --chart-1: oklch(0.16 0.015 301.467);
  --chart-2: oklch(0.16 0.013 277.979);
  --chart-3: oklch(0.165 0.017 321.871);
  --chart-4: oklch(0.19 0.019 277.662);
  --chart-5: oklch(0.159 0.017 301.256);
}