Fatal for shadcn/ui

Fatal is a shadcn/ui theme built around a muted light teal primary color (#e8eded) with muted light yellow accents (#edede8). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted light teal primary (#e8eded) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#030c0cblack
#ffffffwhite
Card
#f8fcfcmintcream
#030303black
Card foreground
#020808black
#ffffffwhite
Popover
#fcfdfdwhite
#000000black
Popover foreground
#030c0cblack
#ffffffwhite
Primary
#e8ededlavender
#e8ededlavender
Primary foreground
#475b5cdarkslategray
#475b5cdarkslategray
Secondary
#ede8edlavender
#ede8edlavender
Secondary foreground
#5c475bdimgray
#5c475bdimgray
Muted
#eae1ealavender
#1e151eblack
Muted foreground
#655364dimgray
#ac9aabdarkgray
Accent
#edede8linen
#edede8linen
Accent foreground
#22231bblack
#22231bblack
Destructive
#792706saddlebrown
#f35112orangered
Destructive foreground
#fbcab6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8ededlavender
#e8ededlavender

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.46:1AAA
Primary button6.08:1AA
Secondary button6.92:1AA
Muted text5.52:1AA
Accent13.52:1AAA
Destructive6.75:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.08:1AA
Secondary button6.92:1AA
Muted text6.75:1AA
Accent13.52:1AAA
Destructive3.50:1AA Large

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.002 202.194);
  --foreground: oklch(0.142 0.016 200.259);
  --muted: oklch(0.919 0.016 327.715);
  --muted-foreground: oklch(0.465 0.036 328.274);
  --popover: oklch(0.994 0.002 202.194);
  --popover-foreground: oklch(0.142 0.016 200.259);
  --card: oklch(0.987 0.004 202.174);
  --card-foreground: oklch(0.124 0.014 199.841);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.942 0.005 202.154);
  --primary-foreground: oklch(0.455 0.024 201.733);
  --secondary: oklch(0.936 0.009 327.637);
  --secondary-foreground: oklch(0.428 0.042 328.47);
  --accent: oklch(0.945 0.007 109.617);
  --accent-foreground: oklch(0.251 0.014 110.531);
  --destructive: oklch(0.394 0.121 38.659);
  --destructive-foreground: oklch(0.877 0.062 42.65);
  --ring: oklch(0.942 0.005 202.154);
  --chart-1: oklch(0.942 0.005 202.154);
  --chart-2: oklch(0.936 0.009 327.637);
  --chart-3: oklch(0.945 0.007 109.617);
  --chart-4: oklch(0.96 0.005 327.601);
  --chart-5: oklch(0.943 0.007 202.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.211 0.023 328.563);
  --muted-foreground: oklch(0.708 0.032 327.985);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.942 0.005 202.154);
  --primary-foreground: oklch(0.455 0.024 201.733);
  --secondary: oklch(0.936 0.009 327.637);
  --secondary-foreground: oklch(0.428 0.042 328.47);
  --accent: oklch(0.945 0.007 109.617);
  --accent-foreground: oklch(0.251 0.014 110.531);
  --destructive: oklch(0.652 0.207 37.888);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.005 202.154);
  --chart-1: oklch(0.942 0.005 202.154);
  --chart-2: oklch(0.936 0.009 327.637);
  --chart-3: oklch(0.945 0.007 109.617);
  --chart-4: oklch(0.96 0.005 327.601);
  --chart-5: oklch(0.943 0.007 202.14);
}