Mortified for shadcn/ui

Mortified is a shadcn/ui theme built around a near-black primary color (#030202) with near-black accents (#020203). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030202) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#120307black
#ffffffwhite
Card
#fcfcfcsnow
#0a0506black
Card foreground
#0d0205black
#ffffffwhite
Popover
#ffffffwhite
#070304black
Popover foreground
#120307black
#ffffffwhite
Primary
#030202black
#030202black
Primary foreground
#a59398rosybrown
#a59398rosybrown
Secondary
#020302black
#020302black
Secondary foreground
#98a593darkseagreen
#98a593darkseagreen
Muted
#dde7d9gainsboro
#1c2618black
Muted foreground
#4b5945darkolivegreen
#abbaa6darkgray
Accent
#020203black
#020203black
Accent foreground
#9398a5darkgray
#9398a5darkgray
Destructive
#bb2402firebrick
#e32c02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#030202black
#030202black

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card19.98:1AAA
Primary button7.12:1AAA
Secondary button8.00:1AAA
Muted text5.88:1AA
Accent7.16:1AAA
Destructive6.25:1AA
Dark mode
Text on background20.49:1AAA
Text on card20.24:1AAA
Primary button7.12:1AAA
Secondary button8.00:1AAA
Muted text7.72:1AAA
Accent7.16:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.035 359.546);
  --muted: oklch(0.918 0.022 136.68);
  --muted-foreground: oklch(0.446 0.038 136.885);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.035 359.546);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.116 0.031 357.928);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.091 0.002 357.685);
  --primary-foreground: oklch(0.679 0.022 358.643);
  --secondary: oklch(0.093 0.003 136.329);
  --secondary-foreground: oklch(0.705 0.029 136.737);
  --accent: oklch(0.091 0.002 267.762);
  --accent-foreground: oklch(0.679 0.02 268.564);
  --destructive: oklch(0.513 0.19 32.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.091 0.002 357.685);
  --chart-1: oklch(0.091 0.002 357.685);
  --chart-2: oklch(0.093 0.003 136.329);
  --chart-3: oklch(0.091 0.002 267.762);
  --chart-4: oklch(0.148 0.004 136.497);
  --chart-5: oklch(0.09 0.003 357.674);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.012 357.577);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.029 137.016);
  --muted-foreground: oklch(0.772 0.033 136.74);
  --popover: oklch(0.109 0.012 357.577);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.013 357.589);
  --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.091 0.002 357.685);
  --primary-foreground: oklch(0.679 0.022 358.643);
  --secondary: oklch(0.093 0.003 136.329);
  --secondary-foreground: oklch(0.705 0.029 136.737);
  --accent: oklch(0.091 0.002 267.762);
  --accent-foreground: oklch(0.679 0.02 268.564);
  --destructive: oklch(0.592 0.221 32.346);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.091 0.002 357.685);
  --chart-1: oklch(0.091 0.002 357.685);
  --chart-2: oklch(0.093 0.003 136.329);
  --chart-3: oklch(0.091 0.002 267.762);
  --chart-4: oklch(0.148 0.004 136.497);
  --chart-5: oklch(0.09 0.003 357.674);
}