Male for shadcn/ui

Male is a shadcn/ui theme built around a blue primary color (#49a0df) with green accents (#a0df49). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#49a0df) on a blue-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#070b0dblack
Foreground
#000000black
#f9fafbghostwhite
Card
#f8fafcghostwhite
#070b0dblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#070b0dblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#49a0dfcornflowerblue
#49a0dfcornflowerblue
Primary foreground
#000000black
#000000black
Secondary
#df49a0palevioletred
#df49a0palevioletred
Secondary foreground
#000000black
#000000black
Muted
#f3f1f2whitesmoke
#0e0c0dblack
Muted foreground
#5f4e58dimgray
#b1a0aadarkgray
Accent
#a0df49yellowgreen
#a0df49yellowgreen
Accent foreground
#000000black
#000000black
Destructive
#5c0c0amaroon
#e61d1acrimson
Destructive foreground
#f5a5a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#49a0dfcornflowerblue
#49a0dfcornflowerblue

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.40:1AAA
Secondary button5.59:1AA
Muted text6.88:1AA
Accent13.14:1AAA
Destructive7.15:1AAA
Dark mode
Text on background18.92:1AAA
Text on card18.92:1AAA
Primary button7.40:1AAA
Secondary button5.59:1AA
Muted text7.88:1AAA
Accent13.14:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 238.406);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.961 0.003 341.078);
  --muted-foreground: oklch(0.445 0.028 342.415);
  --popover: oklch(0.985 0.003 238.406);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.003 238.406);
  --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.681 0.125 242.785);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.639 0.204 348.462);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.189 129.335);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.307 0.113 27.629);
  --destructive-foreground: oklch(0.798 0.096 20.479);
  --ring: oklch(0.681 0.125 242.785);
  --chart-1: oklch(0.681 0.125 242.785);
  --chart-2: oklch(0.639 0.204 348.462);
  --chart-3: oklch(0.832 0.189 129.335);
  --chart-4: oklch(0.659 0.192 347.608);
  --chart-5: oklch(0.682 0.129 243.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.009 237.1);
  --foreground: oklch(0.985 0.001 238.378);
  --muted: oklch(0.156 0.004 341.636);
  --muted-foreground: oklch(0.723 0.025 341.79);
  --popover: oklch(0.145 0.009 237.1);
  --popover-foreground: oklch(0.985 0.001 238.378);
  --card: oklch(0.145 0.009 237.1);
  --card-foreground: oklch(0.985 0.001 238.378);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.681 0.125 242.785);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.639 0.204 348.462);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.832 0.189 129.335);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.589 0.229 28.547);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.125 242.785);
  --chart-1: oklch(0.681 0.125 242.785);
  --chart-2: oklch(0.639 0.204 348.462);
  --chart-3: oklch(0.832 0.189 129.335);
  --chart-4: oklch(0.659 0.192 347.608);
  --chart-5: oklch(0.682 0.129 243.071);
}