Mortified for shadcn/ui

Mortified is a shadcn/ui theme built around a vivid light violet primary color (#f2defc) with vivid light green accents (#e9fcde). The light mode uses a neutral background (#fbf6fd). Dark mode keeps the vivid light violet primary (#f2defc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf6fdghostwhite
#000000black
Foreground
#030105black
#fdfcfdwhite
Card
#f9f2fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f9f2fcghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#f2defclavender
#f2defclavender
Primary foreground
#690d9bpurple
#690d9bpurple
Secondary
#e9fcdebeige
#e9fcdebeige
Secondary foreground
#193d05darkgreen
#193d05darkgreen
Muted
#d9e3d3gainsboro
#212c1cblack
Muted foreground
#485242darkslategray
#b3bdaddarkgray
Accent
#e9fcdebeige
#e9fcdebeige
Accent foreground
#193d05darkgreen
#193d05darkgreen
Destructive
#650e0bmaroon
#dc1f18crimson
Destructive foreground
#f6afaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2defclavender
#f2defclavender

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.16:1AAA
Primary button7.80:1AAA
Secondary button11.36:1AAA
Muted text6.20:1AA
Accent11.36:1AAA
Destructive7.18:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button7.80:1AAA
Secondary button11.36:1AAA
Muted text7.51:1AAA
Accent11.36:1AAA
Destructive4.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.01 314.162);
  --foreground: oklch(0.078 0.027 317.137);
  --muted: oklch(0.904 0.024 134.368);
  --muted-foreground: oklch(0.424 0.03 134.629);
  --popover: oklch(0.97 0.015 314.133);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.015 314.133);
  --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.926 0.045 313.952);
  --primary-foreground: oklch(0.411 0.2 308.296);
  --secondary: oklch(0.969 0.044 134.483);
  --secondary-foreground: oklch(0.321 0.091 137.312);
  --accent: oklch(0.969 0.044 134.483);
  --accent-foreground: oklch(0.321 0.091 137.312);
  --destructive: oklch(0.329 0.12 28.215);
  --destructive-foreground: oklch(0.82 0.084 21.262);
  --ring: oklch(0.926 0.045 313.952);
  --chart-1: oklch(0.926 0.045 313.952);
  --chart-2: oklch(0.969 0.044 134.483);
  --chart-3: oklch(0.969 0.044 134.483);
  --chart-4: oklch(0.982 0.025 134.366);
  --chart-5: oklch(0.925 0.047 313.942);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 314.214);
  --muted: oklch(0.276 0.031 134.929);
  --muted-foreground: oklch(0.786 0.025 134.404);
  --popover: oklch(0.092 0 180);
  --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.926 0.045 313.952);
  --primary-foreground: oklch(0.411 0.2 308.296);
  --secondary: oklch(0.969 0.044 134.483);
  --secondary-foreground: oklch(0.321 0.091 137.312);
  --accent: oklch(0.969 0.044 134.483);
  --accent-foreground: oklch(0.321 0.091 137.312);
  --destructive: oklch(0.573 0.22 28.847);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.045 313.952);
  --chart-1: oklch(0.926 0.045 313.952);
  --chart-2: oklch(0.969 0.044 134.483);
  --chart-3: oklch(0.969 0.044 134.483);
  --chart-4: oklch(0.982 0.025 134.366);
  --chart-5: oklch(0.925 0.047 313.942);
}