Minor for shadcn/ui

Minor is a shadcn/ui theme built around a muted light teal primary color (#d6e6e4) with muted light blue accents (#d6e0e6). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the muted light teal primary (#d6e6e4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#000000black
Foreground
#020808black
#ffffffwhite
Card
#f8fcfbmintcream
#030303black
Card foreground
#010404black
#ffffffwhite
Popover
#f8fcfbmintcream
#030303black
Popover foreground
#010404black
#ffffffwhite
Primary
#d6e6e4gainsboro
#d6e6e4gainsboro
Primary foreground
#345651darkslategray
#345651darkslategray
Secondary
#d6e6dcgainsboro
#d6e6dcgainsboro
Secondary foreground
#345640darkslategray
#345640darkslategray
Muted
#eaf0ecwhitesmoke
#0f1511black
Muted foreground
#3d423fdarkslategray
#bdc2bfsilver
Accent
#d6e0e6gainsboro
#d6e0e6gainsboro
Accent foreground
#344956darkslategray
#344956darkslategray
Destructive
#992006darkred
#f7451dorangered
Destructive foreground
#fddbd3antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6e6e4gainsboro
#d6e6e4gainsboro

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.89:1AAA
Primary button6.27:1AA
Secondary button6.35:1AA
Muted text8.88:1AAA
Accent7.01:1AAA
Destructive6.34:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.27:1AA
Secondary button6.35:1AA
Muted text10.24:1AAA
Accent7.01:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 187.695);
  --foreground: oklch(0.126 0.016 187.159);
  --muted: oklch(0.95 0.009 158.521);
  --muted-foreground: oklch(0.374 0.009 158.209);
  --popover: oklch(0.988 0.004 187.64);
  --popover-foreground: oklch(0.1 0.013 187.159);
  --card: oklch(0.988 0.004 187.64);
  --card-foreground: oklch(0.1 0.013 187.159);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.018 187.262);
  --primary-foreground: oklch(0.426 0.041 185.119);
  --secondary: oklch(0.91 0.023 158.172);
  --secondary-foreground: oklch(0.42 0.054 155.472);
  --accent: oklch(0.901 0.014 232.804);
  --accent-foreground: oklch(0.394 0.035 234.194);
  --destructive: oklch(0.446 0.159 33.104);
  --destructive-foreground: oklch(0.917 0.04 32.737);
  --ring: oklch(0.912 0.018 187.262);
  --chart-1: oklch(0.912 0.018 187.262);
  --chart-2: oklch(0.91 0.023 158.172);
  --chart-3: oklch(0.901 0.014 232.804);
  --chart-4: oklch(0.931 0.017 158.312);
  --chart-5: oklch(0.914 0.02 187.205);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.013 157.144);
  --muted-foreground: oklch(0.808 0.007 158.526);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.912 0.018 187.262);
  --primary-foreground: oklch(0.426 0.041 185.119);
  --secondary: oklch(0.91 0.023 158.172);
  --secondary-foreground: oklch(0.42 0.054 155.472);
  --accent: oklch(0.901 0.014 232.804);
  --accent-foreground: oklch(0.394 0.035 234.194);
  --destructive: oklch(0.647 0.22 33.545);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.018 187.262);
  --chart-1: oklch(0.912 0.018 187.262);
  --chart-2: oklch(0.91 0.023 158.172);
  --chart-3: oklch(0.901 0.014 232.804);
  --chart-4: oklch(0.931 0.017 158.312);
  --chart-5: oklch(0.914 0.02 187.205);
}