Hot for shadcn/ui

Hot is a shadcn/ui theme built around a muted deep yellow primary color (#0c0b08) with muted deep green accents (#0b0c08). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted deep yellow primary (#0c0b08) on a yellow-tinted background (#0a0905).

Color palette

TokenLightDark
Background
#fdfbf7snow
#0a0905black
Foreground
#0c0a03black
#fdfdfcwhite
Card
#fbf9f3floralwhite
#0e0c07black
Card foreground
#080602black
#ffffffwhite
Popover
#fdfbf7snow
#0a0905black
Popover foreground
#0c0a03black
#fdfdfcwhite
Primary
#0c0b08black
#0c0b08black
Primary foreground
#b5aa92darkgray
#b5aa92darkgray
Secondary
#0c0908black
#0c0908black
Secondary foreground
#b59992rosybrown
#b59992rosybrown
Muted
#e3d7d3gainsboro
#2c1f1cblack
Muted foreground
#695854dimgray
#ab9a96rosybrown
Accent
#0b0c08black
#0b0c08black
Accent foreground
#aeb592darkgray
#aeb592darkgray
Destructive
#9e3005saddlebrown
#f85616orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0b08black
#0c0b08black

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.23:1AAA
Primary button8.55:1AAA
Secondary button7.49:1AAA
Muted text4.76:1AA
Accent9.16:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.59:1AAA
Text on card19.60:1AAA
Primary button8.55:1AAA
Secondary button7.49:1AAA
Muted text5.91:1AA
Accent9.16:1AAA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 87.447);
  --foreground: oklch(0.143 0.018 92.703);
  --muted: oklch(0.887 0.015 34.298);
  --muted-foreground: oklch(0.476 0.023 34.33);
  --popover: oklch(0.988 0.005 87.447);
  --popover-foreground: oklch(0.143 0.018 92.703);
  --card: oklch(0.982 0.008 87.46);
  --card-foreground: oklch(0.125 0.016 93.491);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.15 0.006 88.195);
  --primary-foreground: oklch(0.741 0.036 87.57);
  --secondary: oklch(0.144 0.006 35.549);
  --secondary-foreground: oklch(0.705 0.035 34.333);
  --accent: oklch(0.152 0.008 116.362);
  --accent-foreground: oklch(0.757 0.049 116.763);
  --destructive: oklch(0.472 0.153 37.651);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.15 0.006 88.195);
  --chart-1: oklch(0.15 0.006 88.195);
  --chart-2: oklch(0.144 0.006 35.549);
  --chart-3: oklch(0.152 0.008 116.362);
  --chart-4: oklch(0.179 0.01 34.344);
  --chart-5: oklch(0.15 0.007 88.34);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.01 90.871);
  --foreground: oklch(0.993 0.001 87.425);
  --muted: oklch(0.253 0.021 34.439);
  --muted-foreground: oklch(0.701 0.021 34.301);
  --popover: oklch(0.138 0.01 90.871);
  --popover-foreground: oklch(0.993 0.001 87.425);
  --card: oklch(0.153 0.011 88.865);
  --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.15 0.006 88.195);
  --primary-foreground: oklch(0.741 0.036 87.57);
  --secondary: oklch(0.144 0.006 35.549);
  --secondary-foreground: oklch(0.705 0.035 34.333);
  --accent: oklch(0.152 0.008 116.362);
  --accent-foreground: oklch(0.757 0.049 116.763);
  --destructive: oklch(0.666 0.208 38.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.15 0.006 88.195);
  --chart-1: oklch(0.15 0.006 88.195);
  --chart-2: oklch(0.144 0.006 35.549);
  --chart-3: oklch(0.152 0.008 116.362);
  --chart-4: oklch(0.179 0.01 34.344);
  --chart-5: oklch(0.15 0.007 88.34);
}