Traumatic for shadcn/ui

Traumatic is a shadcn/ui theme built around a muted yellow primary color (#878473) with muted blue accents (#737687). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#878473) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#171403black
#fdfdfcwhite
Card
#fefdfbsnow
#000000black
Card foreground
#171403black
#fdfdfcwhite
Popover
#fefdfbsnow
#000000black
Popover foreground
#171403black
#fdfdfcwhite
Primary
#878473gray
#878473gray
Primary foreground
#000000black
#000000black
Secondary
#737687slategray
#737687slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d8e6gainsboro
#191b29black
Muted foreground
#5a5d72dimgray
#8d90a5lightslategray
Accent
#737687slategray
#737687slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#892f0bsaddlebrown
#d94a12chocolate
Destructive foreground
#fbd9cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#878473gray
#878473gray

Contrast

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

Light mode
Text on background18.17:1AAA
Text on card18.17:1AAA
Primary button5.57:1AA
Secondary button4.49:1AA Large
Muted text4.56:1AA
Accent4.49:1AA Large
Destructive6.43:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.63:1AAA
Primary button5.57:1AA
Secondary button4.49:1AA Large
Muted text5.40:1AA
Accent4.49:1AA Large
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 98.355);
  --foreground: oklch(0.189 0.033 100.608);
  --muted: oklch(0.885 0.019 277.991);
  --muted-foreground: oklch(0.485 0.034 277.211);
  --popover: oklch(0.995 0.003 98.355);
  --popover-foreground: oklch(0.189 0.033 100.608);
  --card: oklch(0.995 0.003 98.355);
  --card-foreground: oklch(0.189 0.033 100.608);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.611 0.025 98.856);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.569 0.026 277.605);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.026 277.605);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.433 0.13 38.902);
  --destructive-foreground: oklch(0.909 0.042 42.78);
  --ring: oklch(0.611 0.025 98.856);
  --chart-1: oklch(0.611 0.025 98.856);
  --chart-2: oklch(0.569 0.026 277.605);
  --chart-3: oklch(0.569 0.026 277.605);
  --chart-4: oklch(0.595 0.025 277.661);
  --chart-5: oklch(0.619 0.034 99.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.994 0.002 98.343);
  --muted: oklch(0.228 0.028 276.261);
  --muted-foreground: oklch(0.659 0.031 277.589);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.994 0.002 98.343);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.994 0.002 98.343);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.611 0.025 98.856);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.569 0.026 277.605);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.569 0.026 277.605);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.189 38.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.611 0.025 98.856);
  --chart-1: oklch(0.611 0.025 98.856);
  --chart-2: oklch(0.569 0.026 277.605);
  --chart-3: oklch(0.569 0.026 277.605);
  --chart-4: oklch(0.595 0.025 277.661);
  --chart-5: oklch(0.619 0.034 99.014);
}