Hut for shadcn/ui

Hut is a shadcn/ui theme built around a vivid red primary color (#931b0b) with vivid indigo accents (#1b0b93). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#931b0b) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#160604black
#faf5f5whitesmoke
Card
#fcfcfcsnow
#080303black
Card foreground
#110503black
#fcf9f8snow
Popover
#ffffffwhite
#040201black
Popover foreground
#160604black
#faf5f5whitesmoke
Primary
#931b0bdarkred
#931b0bdarkred
Primary foreground
#fcd9d4mistyrose
#fcd9d4mistyrose
Secondary
#0b931bforestgreen
#0b931bforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4ece5gainsboro
#131b14black
Muted foreground
#5d655edimgray
#9aa29bdarkgray
Accent
#1b0b93darkblue
#1b0b93darkblue
Accent foreground
#d9d4fclavender
#d9d4fclavender
Destructive
#cf5107chocolate
#e75a08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#931b0bdarkred
#931b0bdarkred

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.62:1AAA
Primary button6.66:1AA
Secondary button4.03:1AA Large
Muted text5.00:1AA
Accent9.74:1AAA
Destructive4.36:1AA Large
Dark mode
Text on background19.20:1AAA
Text on card19.56:1AAA
Primary button6.66:1AA
Secondary button4.03:1AA Large
Muted text6.70:1AA
Accent9.74:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.031 32.519);
  --muted: oklch(0.935 0.013 148.967);
  --muted-foreground: oklch(0.497 0.014 148.788);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.031 32.519);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.027 33.263);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.431 0.157 31.02);
  --primary-foreground: oklch(0.913 0.04 26.788);
  --secondary: oklch(0.577 0.186 143.531);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.318 0.196 271.184);
  --accent-foreground: oklch(0.887 0.054 290.602);
  --destructive: oklch(0.593 0.174 42.628);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.157 31.02);
  --chart-1: oklch(0.431 0.157 31.02);
  --chart-2: oklch(0.577 0.186 143.531);
  --chart-3: oklch(0.318 0.196 271.184);
  --chart-4: oklch(0.617 0.2 143.49);
  --chart-5: oklch(0.434 0.161 30.984);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.01 30.875);
  --foreground: oklch(0.975 0.005 26.472);
  --muted: oklch(0.211 0.019 148.03);
  --muted-foreground: oklch(0.704 0.013 148.911);
  --popover: oklch(0.086 0.01 30.875);
  --popover-foreground: oklch(0.975 0.005 26.472);
  --card: oklch(0.109 0.013 30.875);
  --card-foreground: oklch(0.983 0.003 26.461);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.431 0.157 31.02);
  --primary-foreground: oklch(0.913 0.04 26.788);
  --secondary: oklch(0.577 0.186 143.531);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.318 0.196 271.184);
  --accent-foreground: oklch(0.887 0.054 290.602);
  --destructive: oklch(0.644 0.19 42.39);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.157 31.02);
  --chart-1: oklch(0.431 0.157 31.02);
  --chart-2: oklch(0.577 0.186 143.531);
  --chart-3: oklch(0.318 0.196 271.184);
  --chart-4: oklch(0.617 0.2 143.49);
  --chart-5: oklch(0.434 0.161 30.984);
}