Deadly for shadcn/ui

Deadly is a shadcn/ui theme built around a muted blue primary color (#828aab) with muted blue accents (#b1b6ce). The light mode uses a neutral background (#f6f8fd). Dark mode keeps the muted blue primary (#828aab) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6f8fdghostwhite
#000000black
Foreground
#050815black
#ffffffwhite
Card
#f6f8fdghostwhite
#000000black
Card foreground
#050815black
#ffffffwhite
Popover
#f6f8fdghostwhite
#000000black
Popover foreground
#050815black
#ffffffwhite
Primary
#828aablightslategray
#828aablightslategray
Primary foreground
#000000black
#000000black
Secondary
#cdd0dalightgrey
#161618black
Secondary foreground
#323543darkslategray
#acaeb4darkgray
Muted
#e1e2e5gainsboro
#1a1b1eblack
Muted foreground
#444650darkslategray
#afb2bbdarkgray
Accent
#b1b6celightsteelblue
#24262ddarkslategray
Accent foreground
#1d212fdarkslategray
#bbbec9silver
Destructive
#6d1408maroon
#ee3017orangered
Destructive foreground
#f9b7aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#828aablightslategray
#828aablightslategray

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button6.16:1AA
Secondary button7.88:1AAA
Muted text7.24:1AAA
Accent7.99:1AAA
Destructive7.07:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.16:1AA
Secondary button8.13:1AAA
Muted text8.11:1AAA
Accent8.12:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 274.937);
  --foreground: oklch(0.139 0.029 269.03);
  --muted: oklch(0.913 0.004 274.985);
  --muted-foreground: oklch(0.397 0.016 274.497);
  --popover: oklch(0.979 0.008 274.937);
  --popover-foreground: oklch(0.139 0.029 269.03);
  --card: oklch(0.979 0.008 274.937);
  --card-foreground: oklch(0.139 0.029 269.03);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.051 273.902);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.858 0.015 274.821);
  --secondary-foreground: oklch(0.333 0.025 273.968);
  --accent: oklch(0.781 0.034 274.459);
  --accent-foreground: oklch(0.251 0.027 273.433);
  --destructive: oklch(0.35 0.125 31.072);
  --destructive-foreground: oklch(0.838 0.078 27.339);
  --ring: oklch(0.638 0.051 273.902);
  --chart-1: oklch(0.638 0.051 273.902);
  --chart-2: oklch(0.858 0.015 274.821);
  --chart-3: oklch(0.781 0.034 274.459);
  --chart-4: oklch(0.883 0.012 274.867);
  --chart-5: oklch(0.633 0.059 273.691);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.005 274.732);
  --muted-foreground: oklch(0.763 0.014 274.809);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.638 0.051 273.902);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.202 0.004 274.804);
  --secondary-foreground: oklch(0.75 0.009 274.883);
  --accent: oklch(0.27 0.014 274.362);
  --accent-foreground: oklch(0.802 0.015 274.793);
  --destructive: oklch(0.614 0.226 30.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.051 273.902);
  --chart-1: oklch(0.638 0.051 273.902);
  --chart-2: oklch(0.202 0.004 274.804);
  --chart-3: oklch(0.27 0.014 274.362);
  --chart-4: oklch(0.234 0.005 274.778);
  --chart-5: oklch(0.633 0.059 273.691);
}