Ur Mom for shadcn/ui

Ur Mom is a shadcn/ui theme built around a muted violet primary color (#6f657b) with muted green accents (#727b65). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid orange primary (#ffa500) on a neutral background (#111111).

Color palette

TokenLightDark
Background
#ffffffwhite
#111111black
Foreground
#07040bblack
#ffa500orange
Card
#fcfcfcsnow
#1a1a1ablack
Card foreground
#050308black
#fcfcfdwhite
Popover
#ffffffwhite
#0c0b0ablack
Popover foreground
#07040bblack
#faf9fbghostwhite
Primary
#6f657bdimgray
#ffa500orange
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#727b65dimgray
#1a1a1ablack
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3e7dfgainsboro
#1d1d1dblack
Muted foreground
#434a3adarkslategray
#4d4d4ddarkslategray
Accent
#727b65dimgray
#ffa400orange
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#992705saddlebrown
#e24f4findianred
Destructive foreground
#feddd2blanchedalmond
#ffffffwhite
Border
#e8e7e9lavender
#19191ablack
Input
#e8e7e9lavender
#19191ablack
Ring
#6f657bdimgray
#ffad00orange

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.08:1AAA
Primary button5.49:1AA
Secondary button4.41:1AA Large
Muted text7.35:1AAA
Accent4.41:1AA Large
Destructive6.20:1AA
Dark mode
Text on background9.56:1AAA
Text on card16.97:1AAA
Primary button1.97:1Fail
Secondary button17.40:1AAA
Muted text1.98:1Fail
Accent1.99:1Fail
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.022 306.686);
  --muted: oklch(0.923 0.011 125.901);
  --muted-foreground: oklch(0.399 0.027 126.687);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.022 306.686);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.019 306.837);
  --border: oklch(0.93 0.002 305.712);
  --input: oklch(0.93 0.002 305.712);
  --primary: oklch(0.524 0.037 304.809);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.57 0.035 126.593);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.035 126.593);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.454 0.155 35.147);
  --destructive-foreground: oklch(0.921 0.039 37.606);
  --ring: oklch(0.524 0.037 304.809);
  --chart-1: oklch(0.524 0.037 304.809);
  --chart-2: oklch(0.57 0.035 126.593);
  --chart-3: oklch(0.57 0.035 126.593);
  --chart-4: oklch(0.597 0.037 126.598);
  --chart-5: oklch(0.518 0.048 304.509);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.178 0 180);
  --foreground: oklch(0.793 0.171 70.662);
  --muted: oklch(0.233 0 171.254);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.15 0.003 67.55);
  --popover-foreground: oklch(0.983 0.004 305.691);
  --card: oklch(0.218 0 180);
  --card-foreground: oklch(0.991 0.002 305.716);
  --border: oklch(0.214 0.003 305.545);
  --input: oklch(0.214 0.003 305.545);
  --primary: oklch(0.793 0.171 70.662);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.218 0 180);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.79 0.171 69.937);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.628 0.183 24.012);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.17 74.927);
  --chart-1: oklch(0.793 0.171 70.662);
  --chart-2: oklch(0.218 0 180);
  --chart-3: oklch(0.79 0.171 69.937);
  --chart-4: oklch(0.251 0 180);
  --chart-5: oklch(0.799 0.174 70.063);
}