Men for shadcn/ui

Men is a shadcn/ui theme built around a light yellow primary color (#fdfcf2) with light green accents (#f8fdf2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#fdfcf2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040401black
#f8f8f7whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fafaf9snow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fafaf9snow
Primary
#fdfcf2floralwhite
#fdfcf2floralwhite
Primary foreground
#4a440ddarkolivegreen
#4a440ddarkolivegreen
Secondary
#fdf6f2seashell
#fdf6f2seashell
Secondary foreground
#4a250dmaroon
#4a250dmaroon
Muted
#eae5e1gainsboro
#1e1915black
Muted foreground
#5c5957dimgray
#a8a5a3darkgray
Accent
#f8fdf2ivory
#f8fdf2ivory
Accent foreground
#324a0ddarkgreen
#324a0ddarkgreen
Destructive
#732007maroon
#f2653atomato
Destructive foreground
#fac3b2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfcf2floralwhite
#fdfcf2floralwhite

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button9.57:1AAA
Secondary button12.59:1AAA
Muted text5.54:1AA
Accent9.57:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.80:1AAA
Primary button9.57:1AAA
Secondary button12.59:1AAA
Muted text7.13:1AAA
Accent9.57:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.012 104.264);
  --muted: oklch(0.924 0.007 56.33);
  --muted-foreground: oklch(0.465 0.005 56.273);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.988 0.013 101.492);
  --primary-foreground: oklch(0.381 0.073 102.761);
  --secondary: oklch(0.978 0.009 56.305);
  --secondary-foreground: oklch(0.31 0.066 51.313);
  --accent: oklch(0.987 0.015 124.563);
  --accent-foreground: oklch(0.376 0.091 129.38);
  --destructive: oklch(0.375 0.12 36.04);
  --destructive-foreground: oklch(0.862 0.068 37.596);
  --ring: oklch(0.988 0.013 101.492);
  --chart-1: oklch(0.988 0.013 101.492);
  --chart-2: oklch(0.978 0.009 56.305);
  --chart-3: oklch(0.987 0.015 124.563);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.989 0.013 101.5);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.002 101.317);
  --muted: oklch(0.217 0.01 55.797);
  --muted-foreground: oklch(0.725 0.005 56.342);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.001 101.307);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.001 101.307);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.988 0.013 101.492);
  --primary-foreground: oklch(0.381 0.073 102.761);
  --secondary: oklch(0.978 0.009 56.305);
  --secondary-foreground: oklch(0.31 0.066 51.313);
  --accent: oklch(0.987 0.015 124.563);
  --accent-foreground: oklch(0.376 0.091 129.38);
  --destructive: oklch(0.679 0.183 37.241);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.988 0.013 101.492);
  --chart-1: oklch(0.988 0.013 101.492);
  --chart-2: oklch(0.978 0.009 56.305);
  --chart-3: oklch(0.987 0.015 124.563);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.989 0.013 101.5);
}