Fatal for shadcn/ui

Fatal is a shadcn/ui theme built around a muted green primary color (#a7b389) with muted purple accents (#b389a7). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted green primary (#a7b389) on a green-tinted background (#090c04).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#090c04black
Foreground
#101405black
#fafbf9snow
Card
#fbfcf8snow
#0c0f05black
Card foreground
#0d1004black
#fdfdfcwhite
Popover
#fbfcf8snow
#0c0f05black
Popover foreground
#0d1004black
#fdfdfcwhite
Primary
#a7b389darkseagreen
#a7b389darkseagreen
Primary foreground
#060604black
#060604black
Secondary
#89a7b3darkgray
#89a7b3darkgray
Secondary foreground
#040606black
#040606black
Muted
#eef1f2whitesmoke
#0d1011black
Muted foreground
#595d5fdimgray
#a0a4a6darkgray
Accent
#b389a7rosybrown
#b389a7rosybrown
Accent foreground
#060406black
#060406black
Destructive
#6b2b0bsaddlebrown
#ea6d2echocolate
Destructive foreground
#f7c8b0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7b389darkseagreen
#a7b389darkseagreen

Contrast

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

Light mode
Text on background18.39:1AAA
Text on card18.63:1AAA
Primary button9.15:1AAA
Secondary button7.94:1AAA
Muted text5.84:1AA
Accent6.85:1AA
Destructive7.03:1AAA
Dark mode
Text on background19.01:1AAA
Text on card18.94:1AAA
Primary button9.15:1AAA
Secondary button7.94:1AAA
Muted text7.59:1AAA
Accent6.85:1AA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 120.086);
  --foreground: oklch(0.182 0.029 122.4);
  --muted: oklch(0.955 0.004 225.025);
  --muted-foreground: oklch(0.475 0.006 225.117);
  --popover: oklch(0.989 0.006 120.134);
  --popover-foreground: oklch(0.165 0.025 121.574);
  --card: oklch(0.989 0.006 120.134);
  --card-foreground: oklch(0.165 0.025 121.574);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.747 0.061 121.434);
  --primary-foreground: oklch(0.121 0.008 119.98);
  --secondary: oklch(0.709 0.038 225.746);
  --secondary-foreground: oklch(0.117 0.005 222.58);
  --accent: oklch(0.679 0.066 337.597);
  --accent-foreground: oklch(0.113 0.008 336.068);
  --destructive: oklch(0.374 0.101 43.263);
  --destructive-foreground: oklch(0.868 0.063 47.974);
  --ring: oklch(0.747 0.061 121.434);
  --chart-1: oklch(0.747 0.061 121.434);
  --chart-2: oklch(0.709 0.038 225.746);
  --chart-3: oklch(0.679 0.066 337.597);
  --chart-4: oklch(0.733 0.035 225.638);
  --chart-5: oklch(0.754 0.068 121.61);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.02 120.139);
  --foreground: oklch(0.987 0.004 120.099);
  --muted: oklch(0.171 0.006 225.393);
  --muted-foreground: oklch(0.717 0.005 225.061);
  --popover: oklch(0.163 0.023 121.447);
  --popover-foreground: oklch(0.994 0.002 120.068);
  --card: oklch(0.163 0.023 121.447);
  --card-foreground: oklch(0.994 0.002 120.068);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.747 0.061 121.434);
  --primary-foreground: oklch(0.121 0.008 119.98);
  --secondary: oklch(0.709 0.038 225.746);
  --secondary-foreground: oklch(0.117 0.005 222.58);
  --accent: oklch(0.679 0.066 337.597);
  --accent-foreground: oklch(0.113 0.008 336.068);
  --destructive: oklch(0.676 0.172 44.095);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.747 0.061 121.434);
  --chart-1: oklch(0.747 0.061 121.434);
  --chart-2: oklch(0.709 0.038 225.746);
  --chart-3: oklch(0.679 0.066 337.597);
  --chart-4: oklch(0.733 0.035 225.638);
  --chart-5: oklch(0.754 0.068 121.61);
}