Mortgage for shadcn/ui

Mortgage is a shadcn/ui theme built around a light purple primary color (#e7c2ef) with light teal accents (#c2efe7). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the light purple primary (#e7c2ef) on a purple-tinted background (#0b030c).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#0b030cblack
Foreground
#0b020dblack
#ffffffwhite
Card
#faf3fbghostwhite
#0e0410black
Card foreground
#070209black
#ffffffwhite
Popover
#faf3fbghostwhite
#0e0410black
Popover foreground
#070209black
#ffffffwhite
Primary
#e7c2efthistle
#e7c2efthistle
Primary foreground
#581a65indigo
#581a65indigo
Secondary
#efe7c2bisque
#efe7c2bisque
Secondary foreground
#141205black
#141205black
Muted
#f5f3ealinen
#15130ablack
Muted foreground
#605d4ddimgray
#b2ae9fdarkgray
Accent
#c2efe7paleturquoise
#c2efe7paleturquoise
Accent foreground
#051412black
#051412black
Destructive
#5f1307maroon
#ee3317orangered
Destructive foreground
#f8aca0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7c2efthistle
#e7c2efthistle

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card18.90:1AAA
Primary button7.64:1AAA
Secondary button15.10:1AAA
Muted text5.96:1AA
Accent15.09:1AAA
Destructive7.21:1AAA
Dark mode
Text on background20.34:1AAA
Text on card20.11:1AAA
Primary button7.64:1AAA
Secondary button15.10:1AAA
Muted text8.38:1AAA
Accent15.09:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.008 319.999);
  --foreground: oklch(0.119 0.035 321.833);
  --muted: oklch(0.964 0.012 96.317);
  --muted-foreground: oklch(0.476 0.025 96.733);
  --popover: oklch(0.972 0.013 320.003);
  --popover-foreground: oklch(0.104 0.03 322.327);
  --card: oklch(0.972 0.013 320.003);
  --card-foreground: oklch(0.104 0.03 322.327);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.86 0.073 320.063);
  --primary-foreground: oklch(0.352 0.134 319.654);
  --secondary: oklch(0.925 0.049 96.747);
  --secondary-foreground: oklch(0.179 0.024 97.808);
  --accent: oklch(0.919 0.048 182.853);
  --accent-foreground: oklch(0.177 0.023 180.88);
  --destructive: oklch(0.32 0.11 31.762);
  --destructive-foreground: oklch(0.814 0.092 28.921);
  --ring: oklch(0.86 0.073 320.063);
  --chart-1: oklch(0.86 0.073 320.063);
  --chart-2: oklch(0.925 0.049 96.747);
  --chart-3: oklch(0.919 0.048 182.853);
  --chart-4: oklch(0.94 0.039 96.643);
  --chart-5: oklch(0.859 0.077 320.066);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.03 321.64);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.185 0.017 97.003);
  --muted-foreground: oklch(0.75 0.022 96.515);
  --popover: oklch(0.134 0.034 320.925);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.034 320.925);
  --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.86 0.073 320.063);
  --primary-foreground: oklch(0.352 0.134 319.654);
  --secondary: oklch(0.925 0.049 96.747);
  --secondary-foreground: oklch(0.179 0.024 97.808);
  --accent: oklch(0.919 0.048 182.853);
  --accent-foreground: oklch(0.177 0.023 180.88);
  --destructive: oklch(0.616 0.224 31.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.86 0.073 320.063);
  --chart-1: oklch(0.86 0.073 320.063);
  --chart-2: oklch(0.925 0.049 96.747);
  --chart-3: oklch(0.919 0.048 182.853);
  --chart-4: oklch(0.94 0.039 96.643);
  --chart-5: oklch(0.859 0.077 320.066);
}