Minimum for shadcn/ui

Minimum is a shadcn/ui theme built around a muted red primary color (#a38c8a) with muted indigo accents (#8c8aa3). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#a38c8a) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#040101black
#fbf9f9snow
Card
#fefbfbsnow
#040101black
Card foreground
#040101black
#fbf9f9snow
Popover
#fefbfbsnow
#040101black
Popover foreground
#040101black
#fbf9f9snow
Primary
#a38c8arosybrown
#a38c8arosybrown
Primary foreground
#000000black
#000000black
Secondary
#8aa38cdarkseagreen
#8aa38cdarkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e0e6e1gainsboro
#191f1ablack
Muted foreground
#3d523fdarkslategray
#adc2afsilver
Accent
#8c8aa3lightslategray
#8c8aa3lightslategray
Accent foreground
#000000black
#000000black
Destructive
#c23a14firebrick
#e74518orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a38c8arosybrown
#a38c8arosybrown

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.69:1AA
Secondary button7.69:1AAA
Muted text6.68:1AA
Accent6.28:1AA
Destructive5.37:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button6.69:1AA
Secondary button7.69:1AAA
Muted text8.88:1AAA
Accent6.28:1AA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 25.009);
  --foreground: oklch(0.085 0.013 30.47);
  --muted: oklch(0.918 0.009 148.483);
  --muted-foreground: oklch(0.415 0.041 147.411);
  --popover: oklch(0.991 0.002 25.009);
  --popover-foreground: oklch(0.085 0.013 30.47);
  --card: oklch(0.991 0.002 25.009);
  --card-foreground: oklch(0.085 0.013 30.47);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.661 0.028 25.385);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.69 0.043 147.872);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.644 0.037 289.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.546 0.179 35.12);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.661 0.028 25.385);
  --chart-1: oklch(0.661 0.028 25.385);
  --chart-2: oklch(0.69 0.043 147.872);
  --chart-3: oklch(0.644 0.037 289.897);
  --chart-4: oklch(0.713 0.04 147.954);
  --chart-5: oklch(0.658 0.035 25.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.013 30.612);
  --foreground: oklch(0.984 0.002 25.004);
  --muted: oklch(0.231 0.013 147.963);
  --muted-foreground: oklch(0.793 0.036 148.081);
  --popover: oklch(0.085 0.013 30.612);
  --popover-foreground: oklch(0.984 0.002 25.004);
  --card: oklch(0.085 0.013 30.612);
  --card-foreground: oklch(0.984 0.002 25.004);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.661 0.028 25.385);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.69 0.043 147.872);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.644 0.037 289.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.62 0.205 34.992);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.661 0.028 25.385);
  --chart-1: oklch(0.661 0.028 25.385);
  --chart-2: oklch(0.69 0.043 147.872);
  --chart-3: oklch(0.644 0.037 289.897);
  --chart-4: oklch(0.713 0.04 147.954);
  --chart-5: oklch(0.658 0.035 25.508);
}