Mortified for shadcn/ui

Mortified is a shadcn/ui theme built around a light green primary color (#c2e0be) with light purple accents (#dbbee0). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the light green primary (#c2e0be) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#040703black
Foreground
#030d02black
#f9fbf8mintcream
Card
#f8fdf7mintcream
#040703black
Card foreground
#030d02black
#f9fbf8mintcream
Popover
#f8fdf7mintcream
#040703black
Popover foreground
#030d02black
#f9fbf8mintcream
Primary
#c2e0belightgrey
#c2e0belightgrey
Primary foreground
#284823darkslategray
#284823darkslategray
Secondary
#dbbee0thistle
#dbbee0thistle
Secondary foreground
#432348darkslategray
#432348darkslategray
Muted
#e5cee8gainsboro
#2d1731darkslategray
Muted foreground
#604b63dimgray
#b19cb4darkgray
Accent
#dbbee0thistle
#dbbee0thistle
Accent foreground
#432348darkslategray
#432348darkslategray
Destructive
#dc4204orangered
#fb6023tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2e0belightgrey
#c2e0belightgrey

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button7.17:1AAA
Secondary button7.89:1AAA
Muted text5.35:1AA
Accent7.89:1AAA
Destructive4.36:1AA Large
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.17:1AAA
Secondary button7.89:1AAA
Muted text6.48:1AA
Accent7.89:1AAA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 141.564);
  --foreground: oklch(0.145 0.035 139.398);
  --muted: oklch(0.879 0.042 321.724);
  --muted-foreground: oklch(0.442 0.047 321.872);
  --popover: oklch(0.988 0.01 141.564);
  --popover-foreground: oklch(0.145 0.035 139.398);
  --card: oklch(0.988 0.01 141.564);
  --card-foreground: oklch(0.145 0.035 139.398);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.056 141.413);
  --primary-foreground: oklch(0.367 0.073 141.106);
  --secondary: oklch(0.836 0.056 321.775);
  --secondary-foreground: oklch(0.315 0.076 322.114);
  --accent: oklch(0.836 0.056 321.775);
  --accent-foreground: oklch(0.315 0.076 322.114);
  --destructive: oklch(0.598 0.199 36.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.875 0.056 141.413);
  --chart-1: oklch(0.875 0.056 141.413);
  --chart-2: oklch(0.836 0.056 321.775);
  --chart-3: oklch(0.836 0.056 321.775);
  --chart-4: oklch(0.862 0.047 321.742);
  --chart-5: oklch(0.877 0.06 141.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 140.417);
  --foreground: oklch(0.986 0.005 141.579);
  --muted: oklch(0.247 0.056 322.097);
  --muted-foreground: oklch(0.719 0.042 321.751);
  --popover: oklch(0.121 0.015 140.417);
  --popover-foreground: oklch(0.986 0.005 141.579);
  --card: oklch(0.121 0.015 140.417);
  --card-foreground: oklch(0.986 0.005 141.579);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.875 0.056 141.413);
  --primary-foreground: oklch(0.367 0.073 141.106);
  --secondary: oklch(0.836 0.056 321.775);
  --secondary-foreground: oklch(0.315 0.076 322.114);
  --accent: oklch(0.836 0.056 321.775);
  --accent-foreground: oklch(0.315 0.076 322.114);
  --destructive: oklch(0.683 0.201 39.295);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.875 0.056 141.413);
  --chart-1: oklch(0.875 0.056 141.413);
  --chart-2: oklch(0.836 0.056 321.775);
  --chart-3: oklch(0.836 0.056 321.775);
  --chart-4: oklch(0.862 0.047 321.742);
  --chart-5: oklch(0.877 0.06 141.399);
}