Masculine is a shadcn/ui theme built around a vivid violet primary color (#5b0495) with vivid purple accents (#950487). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#5b0495) on a violet-tinted background (#08040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08040cblack |
| Foreground | #0c0312black | #fdfcfdwhite |
| Card | #fdfbfewhite | #08040cblack |
| Card foreground | #0c0312black | #fdfcfdwhite |
| Popover | #fdfbfewhite | #08040cblack |
| Popover foreground | #0c0312black | #fdfcfdwhite |
| Primary | #5b0495indigo | #5b0495indigo |
| Primary foreground | #eacdfelavender | #eacdfelavender |
| Secondary | #120495darkblue | #120495darkblue |
| Secondary foreground | #d2cdfelavender | #d2cdfelavender |
| Muted | #e7e6f4lavender | #0c0b19black |
| Muted foreground | #5f5f63dimgray | #9d9ca0darkgray |
| Accent | #950487darkmagenta | #950487darkmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ca0f02firebrick | #fd2617orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b0495indigo | #5b0495indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 9.40:1 | AAA |
| Muted text | 5.15:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 5.86:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 9.40:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Masculine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 312.325);
--foreground: oklch(0.126 0.04 312.578);
--muted: oklch(0.93 0.019 290.622);
--muted-foreground: oklch(0.487 0.006 290.776);
--popover: oklch(0.99 0.004 312.325);
--popover-foreground: oklch(0.126 0.04 312.578);
--card: oklch(0.99 0.004 312.325);
--card-foreground: oklch(0.126 0.04 312.578);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.382 0.197 303.612);
--primary-foreground: oklch(0.889 0.072 311.755);
--secondary: oklch(0.312 0.204 268.281);
--secondary-foreground: oklch(0.869 0.067 289.514);
--accent: oklch(0.463 0.205 333.723);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.531 0.212 29.883);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.382 0.197 303.612);
--chart-1: oklch(0.382 0.197 303.612);
--chart-2: oklch(0.312 0.204 268.281);
--chart-3: oklch(0.463 0.205 333.723);
--chart-4: oklch(0.334 0.219 267.987);
--chart-5: oklch(0.384 0.2 303.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.025 313.888);
--foreground: oklch(0.992 0.001 312.35);
--muted: oklch(0.158 0.03 287.05);
--muted-foreground: oklch(0.695 0.006 290.862);
--popover: oklch(0.119 0.025 313.888);
--popover-foreground: oklch(0.992 0.001 312.35);
--card: oklch(0.119 0.025 313.888);
--card-foreground: oklch(0.992 0.001 312.35);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.382 0.197 303.612);
--primary-foreground: oklch(0.889 0.072 311.755);
--secondary: oklch(0.312 0.204 268.281);
--secondary-foreground: oklch(0.869 0.067 289.514);
--accent: oklch(0.463 0.205 333.723);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.244 29.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.382 0.197 303.612);
--chart-1: oklch(0.382 0.197 303.612);
--chart-2: oklch(0.312 0.204 268.281);
--chart-3: oklch(0.463 0.205 333.723);
--chart-4: oklch(0.334 0.219 267.987);
--chart-5: oklch(0.384 0.2 303.222);
}