Mortal for shadcn/ui

Mortal is a shadcn/ui theme built around a light orange primary color (#e2c6b1) with light violet accents (#c6b1e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#e2c6b1) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#0d0702black
#fdfcfcsnow
Card
#ffffffwhite
#040201black
Card foreground
#0d0702black
#fdfcfcsnow
Popover
#ffffffwhite
#040201black
Popover foreground
#0d0702black
#fdfcfcsnow
Primary
#e2c6b1wheat
#e2c6b1wheat
Primary foreground
#462e1bdarkslategray
#462e1bdarkslategray
Secondary
#b1e2c6powderblue
#b1e2c6powderblue
Secondary foreground
#1b462edarkslategray
#1b462edarkslategray
Muted
#e7f3echoneydew
#0c1811black
Muted foreground
#464e49darkslategray
#b1b9b5silver
Accent
#c6b1e2thistle
#c6b1e2thistle
Accent foreground
#2e1b46midnightblue
#2e1b46midnightblue
Destructive
#9e3310saddlebrown
#ea5d2echocolate
Destructive foreground
#fce9e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2c6b1wheat
#e2c6b1wheat

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.77:1AAA
Secondary button7.40:1AAA
Muted text7.53:1AAA
Accent7.94:1AAA
Destructive6.10:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button7.77:1AAA
Secondary button7.40:1AAA
Muted text9.10:1AAA
Accent7.94:1AAA
Destructive6.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.018 69.635);
  --muted: oklch(0.953 0.015 161.429);
  --muted-foreground: oklch(0.415 0.012 161.107);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.018 69.635);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.018 69.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.042 59.582);
  --primary-foreground: oklch(0.324 0.047 57.509);
  --secondary: oklch(0.87 0.063 159.937);
  --secondary-foreground: oklch(0.357 0.065 156.013);
  --accent: oklch(0.795 0.071 304.551);
  --accent-foreground: oklch(0.27 0.079 301.254);
  --destructive: oklch(0.475 0.148 37.01);
  --destructive-foreground: oklch(0.949 0.022 39.376);
  --ring: oklch(0.845 0.042 59.582);
  --chart-1: oklch(0.845 0.042 59.582);
  --chart-2: oklch(0.87 0.063 159.937);
  --chart-3: oklch(0.795 0.071 304.551);
  --chart-4: oklch(0.888 0.054 160.26);
  --chart-5: oklch(0.845 0.045 59.532);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.007 66.422);
  --foreground: oklch(0.993 0.001 60.269);
  --muted: oklch(0.194 0.021 158.808);
  --muted-foreground: oklch(0.778 0.01 161.492);
  --popover: oklch(0.093 0.007 66.422);
  --popover-foreground: oklch(0.993 0.001 60.269);
  --card: oklch(0.093 0.007 66.422);
  --card-foreground: oklch(0.993 0.001 60.269);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.845 0.042 59.582);
  --primary-foreground: oklch(0.324 0.047 57.509);
  --secondary: oklch(0.87 0.063 159.937);
  --secondary-foreground: oklch(0.357 0.065 156.013);
  --accent: oklch(0.795 0.071 304.551);
  --accent-foreground: oklch(0.27 0.079 301.254);
  --destructive: oklch(0.655 0.185 37.986);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.845 0.042 59.582);
  --chart-1: oklch(0.845 0.042 59.582);
  --chart-2: oklch(0.87 0.063 159.937);
  --chart-3: oklch(0.795 0.071 304.551);
  --chart-4: oklch(0.888 0.054 160.26);
  --chart-5: oklch(0.845 0.045 59.532);
}