Minion for shadcn/ui

Minion is a shadcn/ui theme built around a light violet primary color (#dbb9f3) with light green accents (#d1f3b9). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the light violet primary (#dbb9f3) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#060109black
#fdfcfdwhite
Card
#fdfbfewhite
#030104black
Card foreground
#060109black
#fdfcfdwhite
Popover
#fdfbfewhite
#030104black
Popover foreground
#060109black
#fdfcfdwhite
Primary
#dbb9f3thistle
#dbb9f3thistle
Primary foreground
#441269indigo
#441269indigo
Secondary
#d1f3b9palegoldenrod
#d1f3b9palegoldenrod
Secondary foreground
#091103black
#091103black
Muted
#e8ebe5beige
#161a14black
Muted foreground
#464e41darkslategray
#b7beb1silver
Accent
#d1f3b9palegoldenrod
#d1f3b9palegoldenrod
Accent foreground
#091103black
#091103black
Destructive
#e04406orangered
#fa682etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbb9f3thistle
#dbb9f3thistle

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.98:1AAA
Secondary button15.79:1AAA
Muted text7.18:1AAA
Accent15.79:1AAA
Destructive4.21:1AA Large
Dark mode
Text on background20.31:1AAA
Text on card20.31:1AAA
Primary button7.98:1AAA
Secondary button15.79:1AAA
Muted text9.23:1AAA
Accent15.79:1AAA
Destructive7.06:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 311.699);
  --foreground: oklch(0.098 0.032 314.371);
  --muted: oklch(0.936 0.009 131.801);
  --muted-foreground: oklch(0.412 0.023 132.194);
  --popover: oklch(0.991 0.003 311.699);
  --popover-foreground: oklch(0.098 0.032 314.371);
  --card: oklch(0.991 0.003 311.699);
  --card-foreground: oklch(0.098 0.032 314.371);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.835 0.087 310.881);
  --primary-foreground: oklch(0.317 0.141 306.095);
  --secondary: oklch(0.926 0.084 132.515);
  --secondary-foreground: oklch(0.166 0.034 131.42);
  --accent: oklch(0.926 0.084 132.515);
  --accent-foreground: oklch(0.166 0.034 131.42);
  --destructive: oklch(0.606 0.201 36.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.835 0.087 310.881);
  --chart-1: oklch(0.835 0.087 310.881);
  --chart-2: oklch(0.926 0.084 132.515);
  --chart-3: oklch(0.926 0.084 132.515);
  --chart-4: oklch(0.939 0.068 132.346);
  --chart-5: oklch(0.833 0.091 310.843);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.019 313.659);
  --foreground: oklch(0.991 0.002 311.706);
  --muted: oklch(0.212 0.013 132.228);
  --muted-foreground: oklch(0.792 0.02 131.929);
  --popover: oklch(0.081 0.019 313.659);
  --popover-foreground: oklch(0.991 0.002 311.706);
  --card: oklch(0.081 0.019 313.659);
  --card-foreground: oklch(0.991 0.002 311.706);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.835 0.087 310.881);
  --primary-foreground: oklch(0.317 0.141 306.095);
  --secondary: oklch(0.926 0.084 132.515);
  --secondary-foreground: oklch(0.166 0.034 131.42);
  --accent: oklch(0.926 0.084 132.515);
  --accent-foreground: oklch(0.166 0.034 131.42);
  --destructive: oklch(0.692 0.191 40.05);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.835 0.087 310.881);
  --chart-1: oklch(0.835 0.087 310.881);
  --chart-2: oklch(0.926 0.084 132.515);
  --chart-3: oklch(0.926 0.084 132.515);
  --chart-4: oklch(0.939 0.068 132.346);
  --chart-5: oklch(0.833 0.091 310.843);
}