Minority for shadcn/ui

Minority is a shadcn/ui theme built around a muted light purple primary color (#d7bcd7) with muted light pink accents (#d7bcc9). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the muted light purple primary (#d7bcd7) on a neutral background (#080308).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#080308black
Foreground
#0e020dblack
#fdfbfdsnow
Card
#fcf3fcghostwhite
#0b040bblack
Card foreground
#090109black
#ffffffwhite
Popover
#fdf7fdsnow
#080308black
Popover foreground
#0e020dblack
#fdfbfdsnow
Primary
#d7bcd7thistle
#d7bcd7thistle
Primary foreground
#3d243ddarkslategray
#3d243ddarkslategray
Secondary
#cabcd7thistle
#cabcd7thistle
Secondary foreground
#31243ddarkslategray
#31243ddarkslategray
Muted
#dcd4e3gainsboro
#241c2bblack
Muted foreground
#615c66dimgray
#9e99a3darkgray
Accent
#d7bcc9thistle
#d7bcc9thistle
Accent foreground
#3d2430darkslategray
#3d2430darkslategray
Destructive
#af0c04firebrick
#fa291eorangered
Destructive foreground
#fee7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7bcd7thistle
#d7bcd7thistle

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card18.93:1AAA
Primary button7.92:1AAA
Secondary button8.03:1AAA
Muted text4.49:1AA Large
Accent7.96:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.91:1AAA
Text on card20.26:1AAA
Primary button7.92:1AAA
Secondary button8.03:1AAA
Muted text5.89:1AA
Accent7.96:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 326.142);
  --foreground: oklch(0.122 0.041 328.222);
  --muted: oklch(0.88 0.022 308.864);
  --muted-foreground: oklch(0.483 0.016 308.768);
  --popover: oklch(0.982 0.011 326.142);
  --popover-foreground: oklch(0.122 0.041 328.222);
  --card: oklch(0.973 0.016 326.187);
  --card-foreground: oklch(0.106 0.035 328.136);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.049 326.516);
  --primary-foreground: oklch(0.302 0.055 327.411);
  --secondary: oklch(0.814 0.042 308.591);
  --secondary-foreground: oklch(0.287 0.048 307.315);
  --accent: oklch(0.821 0.036 347.156);
  --accent-foreground: oklch(0.296 0.043 349.582);
  --destructive: oklch(0.477 0.19 29.65);
  --destructive-foreground: oklch(0.947 0.026 21.245);
  --ring: oklch(0.826 0.049 326.516);
  --chart-1: oklch(0.826 0.049 326.516);
  --chart-2: oklch(0.814 0.042 308.591);
  --chart-3: oklch(0.821 0.036 347.156);
  --chart-4: oklch(0.841 0.035 308.685);
  --chart-5: oklch(0.825 0.054 326.568);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.022 327.407);
  --foreground: oklch(0.992 0.003 326.08);
  --muted: oklch(0.243 0.03 307.817);
  --muted-foreground: oklch(0.691 0.015 308.897);
  --popover: oklch(0.109 0.022 327.407);
  --popover-foreground: oklch(0.992 0.003 326.08);
  --card: oklch(0.125 0.026 327.445);
  --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.826 0.049 326.516);
  --primary-foreground: oklch(0.302 0.055 327.411);
  --secondary: oklch(0.814 0.042 308.591);
  --secondary-foreground: oklch(0.287 0.048 307.315);
  --accent: oklch(0.821 0.036 347.156);
  --accent-foreground: oklch(0.296 0.043 349.582);
  --destructive: oklch(0.633 0.241 29.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.049 326.516);
  --chart-1: oklch(0.826 0.049 326.516);
  --chart-2: oklch(0.814 0.042 308.591);
  --chart-3: oklch(0.821 0.036 347.156);
  --chart-4: oklch(0.841 0.035 308.685);
  --chart-5: oklch(0.825 0.054 326.568);
}