Motherly for shadcn/ui

Motherly is a shadcn/ui theme built around a light violet primary color (#e8d7ef) with light green accents (#deefd7). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light violet primary (#e8d7ef) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#060307black
Foreground
#030104black
#fdfcfdwhite
Card
#fdfbfdsnow
#060307black
Card foreground
#030104black
#fdfcfdwhite
Popover
#fdfbfdsnow
#060307black
Popover foreground
#030104black
#fdfcfdwhite
Primary
#e8d7eflavender
#e8d7eflavender
Primary foreground
#572a6adarkslateblue
#572a6adarkslateblue
Secondary
#deefd7gainsboro
#deefd7gainsboro
Secondary foreground
#13210dblack
#13210dblack
Muted
#e5f0e0beige
#141f0fblack
Muted foreground
#424440darkslategray
#bcbfbbsilver
Accent
#deefd7gainsboro
#deefd7gainsboro
Accent foreground
#13210dblack
#13210dblack
Destructive
#c42303firebrick
#fc421dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8d7eflavender
#e8d7eflavender

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.90:1AAA
Secondary button13.93:1AAA
Muted text8.38:1AAA
Accent13.93:1AAA
Destructive5.85:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.90:1AAA
Secondary button13.93:1AAA
Muted text9.17:1AAA
Accent13.93:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 316.01);
  --foreground: oklch(0.08 0.025 318.637);
  --muted: oklch(0.943 0.024 136.117);
  --muted-foreground: oklch(0.384 0.008 136.094);
  --popover: oklch(0.991 0.003 316.01);
  --popover-foreground: oklch(0.08 0.025 318.637);
  --card: oklch(0.991 0.003 316.01);
  --card-foreground: oklch(0.08 0.025 318.637);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.037 315.874);
  --primary-foreground: oklch(0.375 0.114 314.597);
  --secondary: oklch(0.933 0.037 136.169);
  --secondary-foreground: oklch(0.228 0.041 136.91);
  --accent: oklch(0.933 0.037 136.169);
  --accent-foreground: oklch(0.228 0.041 136.91);
  --destructive: oklch(0.529 0.198 32.067);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.037 315.874);
  --chart-1: oklch(0.9 0.037 315.874);
  --chart-2: oklch(0.933 0.037 136.169);
  --chart-3: oklch(0.933 0.037 136.169);
  --chart-4: oklch(0.951 0.027 136.125);
  --chart-5: oklch(0.899 0.04 315.864);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.014 317.145);
  --foreground: oklch(0.992 0.001 316.017);
  --muted: oklch(0.223 0.034 136.717);
  --muted-foreground: oklch(0.8 0.006 136.05);
  --popover: oklch(0.109 0.014 317.145);
  --popover-foreground: oklch(0.992 0.001 316.017);
  --card: oklch(0.109 0.014 317.145);
  --card-foreground: oklch(0.992 0.001 316.017);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.037 315.874);
  --primary-foreground: oklch(0.375 0.114 314.597);
  --secondary: oklch(0.933 0.037 136.169);
  --secondary-foreground: oklch(0.228 0.041 136.91);
  --accent: oklch(0.933 0.037 136.169);
  --accent-foreground: oklch(0.228 0.041 136.91);
  --destructive: oklch(0.653 0.226 32.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.037 315.874);
  --chart-1: oklch(0.9 0.037 315.874);
  --chart-2: oklch(0.933 0.037 136.169);
  --chart-3: oklch(0.933 0.037 136.169);
  --chart-4: oklch(0.951 0.027 136.125);
  --chart-5: oklch(0.899 0.04 315.864);
}