Masculine for shadcn/ui

Masculine is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#080202black
#ffffffwhite
Card
#fefbfbsnow
#000000black
Card foreground
#080202black
#ffffffwhite
Popover
#fefbfbsnow
#000000black
Popover foreground
#080202black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#ffffffwhite
#ffffffwhite
Secondary foreground
#333333darkslategray
#333333darkslategray
Muted
#ede3e3mistyrose
#1c1212black
Muted foreground
#6a5353dimgray
#ac9595rosybrown
Accent
#ffffffwhite
#ffffffwhite
Accent foreground
#333333darkslategray
#333333darkslategray
Destructive
#993800saddlebrown
#ff6a14darkorange
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text5.62:1AA
Accent12.63:1AAA
Destructive7.18:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button12.63:1AAA
Secondary button12.63:1AAA
Muted text6.53:1AA
Accent12.63:1AAA
Destructive7.34:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.22);
  --foreground: oklch(0.104 0.018 20.492);
  --muted: oklch(0.924 0.011 17.347);
  --muted-foreground: oklch(0.466 0.03 18.297);
  --popover: oklch(0.99 0.004 17.22);
  --popover-foreground: oklch(0.104 0.018 20.492);
  --card: oklch(0.99 0.004 17.22);
  --card-foreground: oklch(0.104 0.018 20.492);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.473 0.141 42.556);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.016 18.632);
  --muted-foreground: oklch(0.691 0.027 17.825);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0.321 0 180);
  --destructive: oklch(0.702 0.199 43.694);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(1 0 180);
}