Destruction for shadcn/ui

Destruction is a shadcn/ui theme built around a light orange primary color (#f3ddc8) with muted orange accents (#bcb5ae). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#f3ddc8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#0c0703black
#ffffffwhite
Card
#fefcfbsnow
#000000black
Card foreground
#0c0703black
#ffffffwhite
Popover
#fefcfbsnow
#000000black
Popover foreground
#0c0703black
#ffffffwhite
Primary
#f3ddc8bisque
#f3ddc8bisque
Primary foreground
#724318saddlebrown
#724318saddlebrown
Secondary
#cecccalightgrey
#2e2923darkslategray
Secondary foreground
#353331darkslategray
#cac2basilver
Muted
#ece3daantiquewhite
#251c13black
Muted foreground
#5b5149darkolivegreen
#b6ada4darkgray
Accent
#bcb5aesilver
#493d32darkslategray
Accent foreground
#1f1c1ablack
#ded6celightgrey
Destructive
#6f0c0cmaroon
#ec4646tomato
Destructive foreground
#f7b5b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3ddc8bisque
#f3ddc8bisque

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button6.32:1AA
Secondary button7.84:1AAA
Muted text6.08:1AA
Accent8.34:1AAA
Destructive7.07:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.32:1AA
Secondary button8.21:1AAA
Muted text7.59:1AAA
Accent7.34:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 65.939);
  --foreground: oklch(0.136 0.016 73.926);
  --muted: oklch(0.92 0.015 65.764);
  --muted-foreground: oklch(0.442 0.019 65.431);
  --popover: oklch(0.993 0.002 65.939);
  --popover-foreground: oklch(0.136 0.016 73.926);
  --card: oklch(0.993 0.002 65.939);
  --card-foreground: oklch(0.136 0.016 73.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.911 0.037 65.447);
  --primary-foreground: oklch(0.431 0.085 59.964);
  --secondary: oklch(0.846 0.003 65.929);
  --secondary-foreground: oklch(0.322 0.003 65.84);
  --accent: oklch(0.776 0.012 65.781);
  --accent-foreground: oklch(0.228 0.006 65.635);
  --destructive: oklch(0.347 0.132 27.612);
  --destructive-foreground: oklch(0.835 0.077 18.829);
  --ring: oklch(0.911 0.037 65.447);
  --chart-1: oklch(0.911 0.037 65.447);
  --chart-2: oklch(0.846 0.003 65.929);
  --chart-3: oklch(0.776 0.012 65.781);
  --chart-4: oklch(0.869 0.002 65.935);
  --chart-5: oklch(0.911 0.039 65.421);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.234 0.022 64.556);
  --muted-foreground: oklch(0.753 0.016 65.704);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.911 0.037 65.447);
  --primary-foreground: oklch(0.431 0.085 59.964);
  --secondary: oklch(0.284 0.012 65.413);
  --secondary-foreground: oklch(0.817 0.014 65.758);
  --accent: oklch(0.368 0.025 65.023);
  --accent-foreground: oklch(0.88 0.014 65.782);
  --destructive: oklch(0.634 0.202 25.045);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.911 0.037 65.447);
  --chart-1: oklch(0.911 0.037 65.447);
  --chart-2: oklch(0.284 0.012 65.413);
  --chart-3: oklch(0.368 0.025 65.023);
  --chart-4: oklch(0.315 0.014 65.388);
  --chart-5: oklch(0.911 0.039 65.421);
}