Minnow for shadcn/ui

Minnow is a shadcn/ui theme built around a vivid deep yellow primary color (#120f02) with vivid deep blue accents (#020612). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep yellow primary (#120f02) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080702black
Foreground
#0e0b02black
#fdfdfcwhite
Card
#fdfbf7snow
#0c0a03black
Card foreground
#090701black
#ffffffwhite
Popover
#fdfbf7snow
#0c0a03black
Popover foreground
#090701black
#ffffffwhite
Primary
#120f02black
#120f02black
Primary foreground
#caa016goldenrod
#caa016goldenrod
Secondary
#020612black
#020612black
Secondary foreground
#b6c5f7lightsteelblue
#b6c5f7lightsteelblue
Muted
#d4d7e3gainsboro
#1c202bblack
Muted foreground
#545969dimgray
#969babdarkgray
Accent
#020612black
#020612black
Accent foreground
#b6c5f7lightsteelblue
#b6c5f7lightsteelblue
Destructive
#791906maroon
#f45434tomato
Destructive foreground
#fbc2b6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#120f02black
#120f02black

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.52:1AAA
Primary button7.82:1AAA
Secondary button11.87:1AAA
Muted text4.86:1AA
Accent11.87:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.79:1AAA
Primary button7.82:1AAA
Secondary button11.87:1AAA
Muted text5.87:1AA
Accent11.87:1AAA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 92.686);
  --foreground: oklch(0.149 0.024 97.58);
  --muted: oklch(0.881 0.016 272.46);
  --muted-foreground: oklch(0.465 0.027 271.982);
  --popover: oklch(0.989 0.006 92.715);
  --popover-foreground: oklch(0.129 0.021 98.826);
  --card: oklch(0.989 0.006 92.715);
  --card-foreground: oklch(0.129 0.021 98.826);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.167 0.028 95.877);
  --primary-foreground: oklch(0.724 0.144 89.104);
  --secondary: oklch(0.124 0.032 262.155);
  --secondary-foreground: oklch(0.828 0.072 271.556);
  --accent: oklch(0.124 0.032 262.155);
  --accent-foreground: oklch(0.828 0.072 271.556);
  --destructive: oklch(0.379 0.133 32.848);
  --destructive-foreground: oklch(0.862 0.068 31.412);
  --ring: oklch(0.167 0.028 95.877);
  --chart-1: oklch(0.167 0.028 95.877);
  --chart-2: oklch(0.124 0.032 262.155);
  --chart-3: oklch(0.124 0.032 262.155);
  --chart-4: oklch(0.154 0.048 265.04);
  --chart-5: oklch(0.168 0.029 95.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.016 97.485);
  --foreground: oklch(0.993 0.001 92.666);
  --muted: oklch(0.244 0.023 271.481);
  --muted-foreground: oklch(0.691 0.024 272.269);
  --popover: oklch(0.144 0.018 96.867);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.018 96.867);
  --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.167 0.028 95.877);
  --primary-foreground: oklch(0.724 0.144 89.104);
  --secondary: oklch(0.124 0.032 262.155);
  --secondary-foreground: oklch(0.828 0.072 271.556);
  --accent: oklch(0.124 0.032 262.155);
  --accent-foreground: oklch(0.828 0.072 271.556);
  --destructive: oklch(0.66 0.202 33.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.167 0.028 95.877);
  --chart-1: oklch(0.167 0.028 95.877);
  --chart-2: oklch(0.124 0.032 262.155);
  --chart-3: oklch(0.124 0.032 262.155);
  --chart-4: oklch(0.154 0.048 265.04);
  --chart-5: oklch(0.168 0.029 95.979);
}