Damage for shadcn/ui

Damage is a shadcn/ui theme built around a vivid yellow primary color (#f8b72a) with vivid blue accents (#2a6cf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f8b72a) on a neutral background (#070604).

Color palette

TokenLightDark
Background
#ffffffwhite
#070604black
Foreground
#0d0903black
#faf8f4whitesmoke
Card
#fcfcfcsnow
#0a0805black
Card foreground
#080602black
#fcfbf8snow
Popover
#fcfcfcsnow
#0a0805black
Popover foreground
#080602black
#fcfbf8snow
Primary
#f8b72agoldenrod
#f8b72agoldenrod
Primary foreground
#000000black
#000000black
Secondary
#2a6cf8royalblue
#2a6cf8royalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dee1e8gainsboro
#171a21black
Muted foreground
#56585ddimgray
#a2a4a9darkgray
Accent
#2a6cf8royalblue
#2a6cf8royalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9f1609darkred
#f23726orangered
Destructive foreground
#fde0ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8b72agoldenrod
#f8b72agoldenrod

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.81:1AAA
Primary button11.82:1AAA
Secondary button4.57:1AA
Muted text5.44:1AA
Accent4.57:1AA
Destructive6.51:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.28:1AAA
Primary button11.82:1AAA
Secondary button4.57:1AA
Muted text6.96:1AA
Accent4.57:1AA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.019 91.637);
  --muted: oklch(0.91 0.009 265.958);
  --muted-foreground: oklch(0.46 0.008 265.916);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.125 0.016 92.505);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.016 92.505);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.82 0.159 80.751);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.575 0.221 262.775);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.221 262.775);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.451 0.172 30.094);
  --destructive-foreground: oklch(0.93 0.032 23.954);
  --ring: oklch(0.82 0.159 80.751);
  --chart-1: oklch(0.82 0.159 80.751);
  --chart-2: oklch(0.575 0.221 262.775);
  --chart-3: oklch(0.575 0.221 262.775);
  --chart-4: oklch(0.6 0.206 262.979);
  --chart-5: oklch(0.825 0.162 80.362);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.008 89.28);
  --foreground: oklch(0.981 0.006 86.03);
  --muted: oklch(0.219 0.014 265.613);
  --muted-foreground: oklch(0.72 0.007 265.958);
  --popover: oklch(0.138 0.009 89.28);
  --popover-foreground: oklch(0.987 0.004 86.022);
  --card: oklch(0.138 0.009 89.28);
  --card-foreground: oklch(0.987 0.004 86.022);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.82 0.159 80.751);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.575 0.221 262.775);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.575 0.221 262.775);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.224 29.86);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.159 80.751);
  --chart-1: oklch(0.82 0.159 80.751);
  --chart-2: oklch(0.575 0.221 262.775);
  --chart-3: oklch(0.575 0.221 262.775);
  --chart-4: oklch(0.6 0.206 262.979);
  --chart-5: oklch(0.825 0.162 80.362);
}