Burning for shadcn/ui

Burning is a shadcn/ui theme built around a deep purple primary color (#220623) with muted light purple accents (#ddd4de). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#220623) on a purple-tinted background (#0f0510).

Color palette

TokenLightDark
Background
#fefbfewhite
#0f0510black
Foreground
#000000black
#fdfcfdwhite
Card
#fefbfewhite
#0f0510black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfewhite
#0f0510black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#220623black
#220623black
Primary foreground
#e373e7orchid
#e373e7orchid
Secondary
#e9e7e9lavender
#271b27black
Secondary foreground
#534b53darkslategray
#c6adc7silver
Muted
#e6d5e7gainsboro
#2a182ablack
Muted foreground
#483c49darkslategray
#c3b6c3silver
Accent
#ddd4degainsboro
#3c243ddarkslategray
Accent foreground
#473748darkslategray
#d6bcd7thistle
Destructive
#bd2f0ffirebrick
#d43511firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#220623black
#220623black

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.04:1AAA
Secondary button6.82:1AA
Muted text7.44:1AAA
Accent7.61:1AAA
Destructive5.88:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.04:1AAA
Secondary button8.02:1AAA
Muted text8.55:1AAA
Accent7.96:1AAA
Destructive4.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 324.649);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.031 324.834);
  --muted-foreground: oklch(0.373 0.028 325.082);
  --popover: oklch(0.991 0.005 324.649);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.005 324.649);
  --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.189 0.067 326.473);
  --primary-foreground: oklch(0.726 0.197 326.11);
  --secondary: oklch(0.93 0.004 324.645);
  --secondary-foreground: oklch(0.423 0.016 324.859);
  --accent: oklch(0.88 0.017 324.741);
  --accent-foreground: oklch(0.362 0.035 325.211);
  --destructive: oklch(0.526 0.183 33.348);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.067 326.473);
  --chart-1: oklch(0.189 0.067 326.473);
  --chart-2: oklch(0.93 0.004 324.645);
  --chart-3: oklch(0.88 0.017 324.741);
  --chart-4: oklch(0.954 0.003 324.636);
  --chart-5: oklch(0.189 0.069 326.526);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.031 325.99);
  --foreground: oklch(0.992 0.003 324.635);
  --muted: oklch(0.241 0.042 325.628);
  --muted-foreground: oklch(0.791 0.023 324.804);
  --popover: oklch(0.139 0.031 325.99);
  --popover-foreground: oklch(0.992 0.003 324.635);
  --card: oklch(0.139 0.031 325.99);
  --card-foreground: oklch(0.992 0.003 324.635);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.067 326.473);
  --primary-foreground: oklch(0.726 0.197 326.11);
  --secondary: oklch(0.242 0.03 325.352);
  --secondary-foreground: oklch(0.778 0.046 324.987);
  --accent: oklch(0.301 0.055 325.683);
  --accent-foreground: oklch(0.825 0.048 324.983);
  --destructive: oklch(0.573 0.201 33.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.067 326.473);
  --chart-1: oklch(0.189 0.067 326.473);
  --chart-2: oklch(0.242 0.03 325.352);
  --chart-3: oklch(0.301 0.055 325.683);
  --chart-4: oklch(0.273 0.035 325.392);
  --chart-5: oklch(0.189 0.069 326.526);
}