Hostile Sugarloaf Brown for shadcn/ui

Hostile Sugarloaf Brown is a shadcn/ui theme built around a deep yellow primary color (#5e4d17) with deep purple accents (#4d175e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#5e4d17) on a neutral background (#070604).

Color palette

TokenLightDark
Background
#ffffffwhite
#070604black
Foreground
#040301black
#fdfdfcwhite
Card
#ffffffwhite
#070604black
Card foreground
#040301black
#fdfdfcwhite
Popover
#ffffffwhite
#070604black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#5e4d17darkolivegreen
#5e4d17darkolivegreen
Primary foreground
#eee1b9wheat
#eee1b9wheat
Secondary
#175e4ddarkslategray
#175e4ddarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbebe7gainsboro
#142420black
Muted foreground
#5d6f6bdimgray
#90a29edarkgray
Accent
#4d175eindigo
#4d175eindigo
Accent foreground
#e1b9eethistle
#e1b9eethistle
Destructive
#910503darkred
#fa1d19red
Destructive foreground
#fec9c8pink
#ffffffwhite
Border
#ebebealinen
#252423darkslategray
Input
#ebebealinen
#252423darkslategray
Ring
#5e4d17darkolivegreen
#5e4d17darkolivegreen

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button6.33:1AA
Secondary button7.61:1AAA
Muted text4.30:1AA Large
Accent7.75:1AAA
Destructive6.46:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button6.33:1AA
Secondary button7.61:1AAA
Muted text6.02:1AA
Accent7.75:1AAA
Destructive3.98:1AA Large

CSS variables

Paste this into your globals.css to use Hostile Sugarloaf Brown in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.012 96.309);
  --muted: oklch(0.927 0.017 179.32);
  --muted-foreground: oklch(0.526 0.023 178.556);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.012 96.309);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.012 96.309);
  --border: oklch(0.94 0.001 91.421);
  --input: oklch(0.94 0.001 91.421);
  --primary: oklch(0.426 0.074 90.076);
  --primary-foreground: oklch(0.91 0.054 91.785);
  --secondary: oklch(0.435 0.075 172.179);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.326 0.126 316.296);
  --accent-foreground: oklch(0.838 0.084 317.595);
  --destructive: oklch(0.415 0.167 29.233);
  --destructive-foreground: oklch(0.882 0.06 19.496);
  --ring: oklch(0.426 0.074 90.076);
  --chart-1: oklch(0.426 0.074 90.076);
  --chart-2: oklch(0.435 0.075 172.179);
  --chart-3: oklch(0.326 0.126 316.296);
  --chart-4: oklch(0.474 0.083 172.014);
  --chart-5: oklch(0.43 0.077 89.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 94.233);
  --foreground: oklch(0.993 0.001 91.415);
  --muted: oklch(0.244 0.023 176.838);
  --muted-foreground: oklch(0.697 0.022 178.951);
  --popover: oklch(0.121 0.008 94.233);
  --popover-foreground: oklch(0.993 0.001 91.415);
  --card: oklch(0.121 0.008 94.233);
  --card-foreground: oklch(0.993 0.001 91.415);
  --border: oklch(0.261 0.003 91.509);
  --input: oklch(0.261 0.003 91.509);
  --primary: oklch(0.426 0.074 90.076);
  --primary-foreground: oklch(0.91 0.054 91.785);
  --secondary: oklch(0.435 0.075 172.179);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.326 0.126 316.296);
  --accent-foreground: oklch(0.838 0.084 317.595);
  --destructive: oklch(0.627 0.246 28.699);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.074 90.076);
  --chart-1: oklch(0.426 0.074 90.076);
  --chart-2: oklch(0.435 0.075 172.179);
  --chart-3: oklch(0.326 0.126 316.296);
  --chart-4: oklch(0.474 0.083 172.014);
  --chart-5: oklch(0.43 0.077 89.82);
}