Minor for shadcn/ui

Minor is a shadcn/ui theme built around a deep yellow primary color (#443b1d) with deep green accents (#39441d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#443b1d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#161203black
#f8f8f6whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#161203black
#f8f8f6whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#161203black
#f8f8f6whitesmoke
Primary
#443b1ddarkolivegreen
#443b1ddarkolivegreen
Primary foreground
#dfd5b4wheat
#dfd5b4wheat
Secondary
#44271ddarkslategray
#44271ddarkslategray
Secondary foreground
#dfbfb4silver
#dfbfb4silver
Muted
#e3d8d4gainsboro
#2b201cblack
Muted foreground
#493f3cdarkslategray
#c3bab6silver
Accent
#39441ddarkolivegreen
#39441ddarkolivegreen
Accent foreground
#d3dfb4palegoldenrod
#d3dfb4palegoldenrod
Destructive
#9f3d04saddlebrown
#f96610orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#443b1ddarkolivegreen
#443b1ddarkolivegreen

Contrast

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

Light mode
Text on background18.71:1AAA
Text on card18.71:1AAA
Primary button7.59:1AAA
Secondary button7.86:1AAA
Muted text7.28:1AAA
Accent7.42:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.59:1AAA
Secondary button7.86:1AAA
Muted text8.28:1AAA
Accent7.42:1AAA
Destructive6.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.029 94.478);
  --muted: oklch(0.889 0.013 41.193);
  --muted-foreground: oklch(0.377 0.015 41.055);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.182 0.029 94.478);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.182 0.029 94.478);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.353 0.047 92.904);
  --primary-foreground: oklch(0.872 0.045 93.066);
  --secondary: oklch(0.308 0.047 40.696);
  --secondary-foreground: oklch(0.83 0.039 41.017);
  --accent: oklch(0.367 0.061 121.811);
  --accent-foreground: oklch(0.884 0.058 119.731);
  --destructive: oklch(0.49 0.143 43.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.353 0.047 92.904);
  --chart-1: oklch(0.353 0.047 92.904);
  --chart-2: oklch(0.308 0.047 40.696);
  --chart-3: oklch(0.367 0.061 121.811);
  --chart-4: oklch(0.338 0.053 40.677);
  --chart-5: oklch(0.357 0.05 92.801);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.002 92.676);
  --muted: oklch(0.256 0.019 40.925);
  --muted-foreground: oklch(0.795 0.012 41.191);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.002 92.676);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.002 92.676);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.353 0.047 92.904);
  --primary-foreground: oklch(0.872 0.045 93.066);
  --secondary: oklch(0.308 0.047 40.696);
  --secondary-foreground: oklch(0.83 0.039 41.017);
  --accent: oklch(0.367 0.061 121.811);
  --accent-foreground: oklch(0.884 0.058 119.731);
  --destructive: oklch(0.686 0.197 43.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.353 0.047 92.904);
  --chart-1: oklch(0.353 0.047 92.904);
  --chart-2: oklch(0.308 0.047 40.696);
  --chart-3: oklch(0.367 0.061 121.811);
  --chart-4: oklch(0.338 0.053 40.677);
  --chart-5: oklch(0.357 0.05 92.801);
}