Fatal for shadcn/ui

Fatal is a shadcn/ui theme built around a light blue primary color (#dae8f1) with light orange accents (#f1e3da). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light blue primary (#dae8f1) on a blue-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#fbfdfewhite
#070b0dblack
Foreground
#030c12black
#f6f8f9whitesmoke
Card
#fbfdfewhite
#070b0dblack
Card foreground
#030c12black
#f6f8f9whitesmoke
Popover
#fbfdfewhite
#070b0dblack
Popover foreground
#030c12black
#f6f8f9whitesmoke
Primary
#dae8f1lavender
#dae8f1lavender
Primary foreground
#295570darkslategray
#295570darkslategray
Secondary
#f1e3daantiquewhite
#f1e3daantiquewhite
Secondary foreground
#704429saddlebrown
#704429saddlebrown
Muted
#f3ece8linen
#17110cblack
Muted foreground
#534841darkslategray
#beb3acdarkgray
Accent
#f1e3daantiquewhite
#f1e3daantiquewhite
Accent foreground
#704429saddlebrown
#704429saddlebrown
Destructive
#751b0bmaroon
#ec5236tomato
Destructive foreground
#f8c3b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dae8f1lavender
#dae8f1lavender

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.40:1AA
Secondary button6.56:1AA
Muted text7.56:1AAA
Accent6.56:1AA
Destructive7.06:1AAA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button6.40:1AA
Secondary button6.56:1AA
Muted text9.13:1AAA
Accent6.56:1AA
Destructive3.60: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.992 0.002 234.537);
  --foreground: oklch(0.146 0.021 231.408);
  --muted: oklch(0.947 0.009 54.37);
  --muted-foreground: oklch(0.41 0.019 53.897);
  --popover: oklch(0.992 0.002 234.537);
  --popover-foreground: oklch(0.146 0.021 231.408);
  --card: oklch(0.992 0.002 234.537);
  --card-foreground: oklch(0.146 0.021 231.408);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.02 234.828);
  --primary-foreground: oklch(0.43 0.067 238.322);
  --secondary: oklch(0.924 0.02 54.205);
  --secondary-foreground: oklch(0.433 0.074 51.58);
  --accent: oklch(0.924 0.02 54.205);
  --accent-foreground: oklch(0.433 0.074 51.58);
  --destructive: oklch(0.372 0.127 32.312);
  --destructive-foreground: oklch(0.861 0.064 29.915);
  --ring: oklch(0.924 0.02 234.828);
  --chart-1: oklch(0.924 0.02 234.828);
  --chart-2: oklch(0.924 0.02 54.205);
  --chart-3: oklch(0.924 0.02 54.205);
  --chart-4: oklch(0.947 0.014 54.3);
  --chart-5: oklch(0.924 0.021 234.849);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.009 233.438);
  --foreground: oklch(0.977 0.003 234.547);
  --muted: oklch(0.183 0.014 53.452);
  --muted-foreground: oklch(0.774 0.016 54.227);
  --popover: oklch(0.146 0.009 233.438);
  --popover-foreground: oklch(0.977 0.003 234.547);
  --card: oklch(0.146 0.009 233.438);
  --card-foreground: oklch(0.977 0.003 234.547);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.02 234.828);
  --primary-foreground: oklch(0.43 0.067 238.322);
  --secondary: oklch(0.924 0.02 54.205);
  --secondary-foreground: oklch(0.433 0.074 51.58);
  --accent: oklch(0.924 0.02 54.205);
  --accent-foreground: oklch(0.433 0.074 51.58);
  --destructive: oklch(0.645 0.195 32.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.02 234.828);
  --chart-1: oklch(0.924 0.02 234.828);
  --chart-2: oklch(0.924 0.02 54.205);
  --chart-3: oklch(0.924 0.02 54.205);
  --chart-4: oklch(0.947 0.014 54.3);
  --chart-5: oklch(0.924 0.021 234.849);
}