Gynaecology for shadcn/ui

Gynaecology is a shadcn/ui theme built around a light purple primary color (#f7e4f2) with light green accents (#e4f7e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f7e4f2) on a purple-tinted background (#0f050d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050dblack
Foreground
#000000black
#f9f6f8whitesmoke
Card
#ffffffwhite
#0f050dblack
Card foreground
#000000black
#f9f6f8whitesmoke
Popover
#ffffffwhite
#0f050dblack
Popover foreground
#000000black
#f9f6f8whitesmoke
Primary
#f7e4f2lavenderblush
#f7e4f2lavenderblush
Primary foreground
#82276cpurple
#82276cpurple
Secondary
#e4f7e8honeydew
#e4f7e8honeydew
Secondary foreground
#0f3318darkgreen
#0f3318darkgreen
Muted
#dcefe0gainsboro
#102314black
Muted foreground
#57705ddimgray
#8fa895darkseagreen
Accent
#e4f7e8honeydew
#e4f7e8honeydew
Accent foreground
#0f3318darkgreen
#0f3318darkgreen
Destructive
#742802saddlebrown
#fb6013orangered
Destructive foreground
#fec6aanavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7e4f2lavenderblush
#f7e4f2lavenderblush

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.03:1AAA
Secondary button12.42:1AAA
Muted text4.50:1AA
Accent12.42:1AAA
Destructive6.81:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.64:1AAA
Primary button7.03:1AAA
Secondary button12.42:1AAA
Muted text6.44:1AA
Accent12.42:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.934 0.028 152.747);
  --muted-foreground: oklch(0.52 0.043 151.783);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.937 0.029 333.725);
  --primary-foreground: oklch(0.436 0.148 338.51);
  --secondary: oklch(0.957 0.028 152.751);
  --secondary-foreground: oklch(0.287 0.064 148.54);
  --accent: oklch(0.957 0.028 152.751);
  --accent-foreground: oklch(0.287 0.064 148.54);
  --destructive: oklch(0.385 0.115 41.604);
  --destructive-foreground: oklch(0.868 0.075 47.841);
  --ring: oklch(0.937 0.029 333.725);
  --chart-1: oklch(0.937 0.029 333.725);
  --chart-2: oklch(0.957 0.028 152.751);
  --chart-3: oklch(0.957 0.028 152.751);
  --chart-4: oklch(0.975 0.016 152.97);
  --chart-5: oklch(0.937 0.03 333.752);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.025 335.141);
  --foreground: oklch(0.975 0.005 333.322);
  --muted: oklch(0.235 0.037 150.208);
  --muted-foreground: oklch(0.708 0.041 152.266);
  --popover: oklch(0.138 0.025 335.141);
  --popover-foreground: oklch(0.975 0.005 333.322);
  --card: oklch(0.138 0.025 335.141);
  --card-foreground: oklch(0.975 0.005 333.322);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.029 333.725);
  --primary-foreground: oklch(0.436 0.148 338.51);
  --secondary: oklch(0.957 0.028 152.751);
  --secondary-foreground: oklch(0.287 0.064 148.54);
  --accent: oklch(0.957 0.028 152.751);
  --accent-foreground: oklch(0.287 0.064 148.54);
  --destructive: oklch(0.684 0.204 41.106);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.937 0.029 333.725);
  --chart-1: oklch(0.937 0.029 333.725);
  --chart-2: oklch(0.957 0.028 152.751);
  --chart-3: oklch(0.957 0.028 152.751);
  --chart-4: oklch(0.975 0.016 152.97);
  --chart-5: oklch(0.937 0.03 333.752);
}