Minority for shadcn/ui

Minority is a shadcn/ui theme built around a muted teal primary color (#9bc5c4) with muted light teal accents (#dfe7e7). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#9bc5c4) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#fbfefewhite
#040b0bblack
Foreground
#000000black
#ffffffwhite
Card
#f7fdfdmintcream
#050f0fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefewhite
#040b0bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#9bc5c4lightsteelblue
#9bc5c4lightsteelblue
Primary foreground
#111d1dblack
#111d1dblack
Secondary
#dfe7e7gainsboro
#282f2fdarkslategray
Secondary foreground
#3f5554darkslategray
#c0c9c9silver
Muted
#e3f2f1lavender
#0d1c1bblack
Muted foreground
#4a6463dimgray
#9bb5b4darkgray
Accent
#dfe7e7gainsboro
#282f2fdarkslategray
Accent foreground
#3f5554darkslategray
#c0c9c9silver
Destructive
#a1190cfirebrick
#ed2412orangered
Destructive foreground
#fde5e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9bc5c4lightsteelblue
#9bc5c4lightsteelblue

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.38:1AAA
Primary button9.19:1AAA
Secondary button6.34:1AA
Muted text5.53:1AA
Accent6.34:1AA
Destructive6.57:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.38:1AAA
Primary button9.19:1AAA
Secondary button8.10:1AAA
Muted text8.07:1AAA
Accent8.10:1AAA
Destructive4.31: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.994 0.003 194.734);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.016 194.486);
  --muted-foreground: oklch(0.481 0.031 193.61);
  --popover: oklch(0.994 0.003 194.734);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.006 194.678);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.793 0.045 193.743);
  --primary-foreground: oklch(0.22 0.017 193.325);
  --secondary: oklch(0.922 0.009 194.608);
  --secondary-foreground: oklch(0.431 0.027 193.634);
  --accent: oklch(0.922 0.009 194.608);
  --accent-foreground: oklch(0.431 0.027 193.634);
  --destructive: oklch(0.457 0.172 30.075);
  --destructive-foreground: oklch(0.94 0.027 23.878);
  --ring: oklch(0.793 0.045 193.743);
  --chart-1: oklch(0.793 0.045 193.743);
  --chart-2: oklch(0.922 0.009 194.608);
  --chart-3: oklch(0.922 0.009 194.608);
  --chart-4: oklch(0.943 0.007 194.661);
  --chart-5: oklch(0.798 0.05 193.644);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 193.448);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.212 0.02 193.018);
  --muted-foreground: oklch(0.754 0.029 194.092);
  --popover: oklch(0.142 0.014 193.448);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.016 193.121);
  --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.793 0.045 193.743);
  --primary-foreground: oklch(0.22 0.017 193.325);
  --secondary: oklch(0.298 0.01 194.191);
  --secondary-foreground: oklch(0.829 0.01 194.558);
  --accent: oklch(0.298 0.01 194.191);
  --accent-foreground: oklch(0.829 0.01 194.558);
  --destructive: oklch(0.606 0.233 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.045 193.743);
  --chart-1: oklch(0.793 0.045 193.743);
  --chart-2: oklch(0.298 0.01 194.191);
  --chart-3: oklch(0.298 0.01 194.191);
  --chart-4: oklch(0.329 0.011 194.17);
  --chart-5: oklch(0.798 0.05 193.644);
}