Barbeque for shadcn/ui

Barbeque is a shadcn/ui theme built around a red primary color (#d9514a) with indigo accents (#514ad9). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d9514a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#d9514aindianred
#d9514aindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4ad951limegreen
#4ad951limegreen
Secondary foreground
#000000black
#000000black
Muted
#d7dfd8gainsboro
#202820black
Muted foreground
#475248darkslategray
#adb8aedarkgray
Accent
#514ad9slateblue
#514ad9slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6c2004maroon
#f76a36tomato
Destructive foreground
#fbbda7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9514aindianred
#d9514aindianred

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button4.02:1AA Large
Secondary button11.29:1AAA
Muted text6.02:1AA
Accent6.30:1AA
Destructive7.02:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button4.02:1AA Large
Secondary button11.29:1AAA
Muted text7.42:1AAA
Accent6.30:1AA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.013 146.902);
  --muted-foreground: oklch(0.425 0.021 146.557);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.616 0.172 26.377);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.215 143.893);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.507 0.21 278.042);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.36 0.113 37.886);
  --destructive-foreground: oklch(0.85 0.078 40.869);
  --ring: oklch(0.616 0.172 26.377);
  --chart-1: oklch(0.616 0.172 26.377);
  --chart-2: oklch(0.78 0.215 143.893);
  --chart-3: oklch(0.507 0.21 278.042);
  --chart-4: oklch(0.792 0.204 144.155);
  --chart-5: oklch(0.617 0.179 26.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.265 0.018 146.396);
  --muted-foreground: oklch(0.771 0.019 146.812);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.616 0.172 26.377);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.215 143.893);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.507 0.21 278.042);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.69 0.185 39.338);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.616 0.172 26.377);
  --chart-1: oklch(0.616 0.172 26.377);
  --chart-2: oklch(0.78 0.215 143.893);
  --chart-3: oklch(0.507 0.21 278.042);
  --chart-4: oklch(0.792 0.204 144.155);
  --chart-5: oklch(0.617 0.179 26.675);
}