Fatal for shadcn/ui

Fatal is a shadcn/ui theme built around a green primary color (#528019) with violet accents (#471980). The light mode uses a neutral background (#fafdf7). Dark mode keeps the green primary (#528019) on a green-tinted background (#080b05).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#080b05black
Foreground
#030401black
#fafbf9snow
Card
#f8fcf3whitesmoke
#0b0e06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fafdf7mintcream
#080b05black
Popover foreground
#030401black
#fafbf9snow
Primary
#528019olivedrab
#528019olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#471980indigo
#471980indigo
Secondary foreground
#e4d4f7lavender
#e4d4f7lavender
Muted
#f2eff6whitesmoke
#0c0910black
Muted foreground
#423e46darkslategray
#bcb9c1silver
Accent
#471980indigo
#471980indigo
Accent foreground
#e4d4f7lavender
#e4d4f7lavender
Destructive
#882e01saddlebrown
#fd6a21tomato
Destructive foreground
#fed3bdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#528019olivedrab
#528019olivedrab

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.15:1AAA
Primary button4.72:1AA
Secondary button8.74:1AAA
Muted text9.16:1AAA
Accent8.74:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.09:1AAA
Primary button4.72:1AA
Secondary button8.74:1AAA
Muted text10.19:1AAA
Accent8.74:1AAA
Destructive7.25:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 126.532);
  --foreground: oklch(0.102 0.017 125.398);
  --muted: oklch(0.956 0.01 306.294);
  --muted-foreground: oklch(0.372 0.014 305.941);
  --popover: oklch(0.99 0.008 126.532);
  --popover-foreground: oklch(0.102 0.017 125.398);
  --card: oklch(0.985 0.012 126.585);
  --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.546 0.138 131.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.35 0.158 297.933);
  --secondary-foreground: oklch(0.894 0.049 305.729);
  --accent: oklch(0.35 0.158 297.933);
  --accent-foreground: oklch(0.894 0.049 305.729);
  --destructive: oklch(0.431 0.132 40.852);
  --destructive-foreground: oklch(0.898 0.057 48.065);
  --ring: oklch(0.546 0.138 131.471);
  --chart-1: oklch(0.546 0.138 131.471);
  --chart-2: oklch(0.35 0.158 297.933);
  --chart-3: oklch(0.35 0.158 297.933);
  --chart-4: oklch(0.373 0.17 297.751);
  --chart-5: oklch(0.552 0.142 131.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.016 125.775);
  --foreground: oklch(0.987 0.004 126.475);
  --muted: oklch(0.149 0.016 305.107);
  --muted-foreground: oklch(0.79 0.012 306.238);
  --popover: oklch(0.142 0.016 125.775);
  --popover-foreground: oklch(0.987 0.004 126.475);
  --card: oklch(0.158 0.019 126.962);
  --card-foreground: oklch(0.994 0.002 126.451);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.546 0.138 131.471);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.35 0.158 297.933);
  --secondary-foreground: oklch(0.894 0.049 305.729);
  --accent: oklch(0.35 0.158 297.933);
  --accent-foreground: oklch(0.894 0.049 305.729);
  --destructive: oklch(0.699 0.195 42.578);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.546 0.138 131.471);
  --chart-1: oklch(0.546 0.138 131.471);
  --chart-2: oklch(0.35 0.158 297.933);
  --chart-3: oklch(0.35 0.158 297.933);
  --chart-4: oklch(0.373 0.17 297.751);
  --chart-5: oklch(0.552 0.142 131.7);
}