Broiler for shadcn/ui

Broiler is a shadcn/ui theme built around a yellow primary color (#6d582c) with neutral gray accents (#d9d9d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#6d582c) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#ffffffwhite
#040301black
Foreground
#080602black
#fdfdfcwhite
Card
#fcfcfcsnow
#080602black
Card foreground
#040301black
#ffffffwhite
Popover
#ffffffwhite
#040301black
Popover foreground
#080602black
#fdfdfcwhite
Primary
#6d582cdarkolivegreen
#6d582cdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9d9d9gainsboro
#35322cdarkslategray
Secondary foreground
#404040darkslategray
#cecbc5lightgrey
Muted
#efdcdcmistyrose
#231d10black
Muted foreground
#553f3fdarkslategray
#c0b9aasilver
Accent
#d9d9d9gainsboro
#35322cdarkslategray
Accent foreground
#404040darkslategray
#cecbc5lightgrey
Destructive
#cf2c17firebrick
#e8422cchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d582cdarkolivegreen
#6d582cdarkolivegreen

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.17:1AAA
Primary button6.80:1AA
Secondary button7.32:1AAA
Muted text7.36:1AAA
Accent7.32:1AAA
Destructive5.22:1AA
Dark mode
Text on background20.24:1AAA
Text on card20.22:1AAA
Primary button6.80:1AA
Secondary button7.89:1AAA
Muted text8.59:1AAA
Accent7.89:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.014 91.783);
  --muted: oklch(0.91 0.02 17.531);
  --muted-foreground: oklch(0.391 0.031 18.575);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.014 91.783);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.011 91.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.472 0.067 84.872);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.885 0 180);
  --accent-foreground: oklch(0.371 0 168.69);
  --destructive: oklch(0.556 0.201 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.472 0.067 84.872);
  --chart-1: oklch(0.472 0.067 84.872);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.885 0 180);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.476 0.071 84.627);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.012 91.965);
  --foreground: oklch(0.993 0.001 86.011);
  --muted: oklch(0.233 0.024 85.734);
  --muted-foreground: oklch(0.788 0.022 86.088);
  --popover: oklch(0.098 0.012 91.965);
  --popover-foreground: oklch(0.993 0.001 86.011);
  --card: oklch(0.124 0.015 91.965);
  --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.472 0.067 84.872);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.318 0.011 86.094);
  --secondary-foreground: oklch(0.843 0.01 86.049);
  --accent: oklch(0.318 0.011 86.094);
  --accent-foreground: oklch(0.843 0.01 86.049);
  --destructive: oklch(0.62 0.206 30.92);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.472 0.067 84.872);
  --chart-1: oklch(0.472 0.067 84.872);
  --chart-2: oklch(0.318 0.011 86.094);
  --chart-3: oklch(0.318 0.011 86.094);
  --chart-4: oklch(0.349 0.012 86.095);
  --chart-5: oklch(0.476 0.071 84.627);
}