Category for shadcn/ui

Category is a shadcn/ui theme built around a vivid pink primary color (#f769be) with muted pink accents (#c1aeb9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid pink primary (#f769be) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fefbfdsnow
#040103black
Foreground
#10050bblack
#fbf9fasnow
Card
#fdf7fasnow
#080206black
Card foreground
#0c0308black
#fdfcfdwhite
Popover
#fdf7fasnow
#080206black
Popover foreground
#0c0308black
#fdfcfdwhite
Primary
#f769behotpink
#f769behotpink
Primary foreground
#2c021bblack
#2c021bblack
Secondary
#d0c8cdlightgrey
#181015black
Secondary foreground
#372f34darkslategray
#be9db1darkgray
Muted
#eee3e9linen
#1c1118black
Muted foreground
#626061dimgray
#9f9d9edarkgray
Accent
#c1aeb9silver
#2a1823black
Accent foreground
#231b1fblack
#cda7besilver
Destructive
#d42d08firebrick
#f7451dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f769behotpink
#f769behotpink

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.24:1AAA
Primary button6.81:1AA
Secondary button7.93:1AAA
Muted text4.97:1AA
Accent8.05:1AAA
Destructive5.03:1AA
Dark mode
Text on background19.80:1AAA
Text on card20.06:1AAA
Primary button6.81:1AA
Secondary button7.67:1AAA
Muted text6.79:1AA
Accent7.86:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 340.32);
  --foreground: oklch(0.136 0.027 342.374);
  --muted: oklch(0.925 0.015 340.593);
  --muted-foreground: oklch(0.491 0.003 340.374);
  --popover: oklch(0.982 0.008 340.408);
  --popover-foreground: oklch(0.123 0.024 340.667);
  --card: oklch(0.982 0.008 340.408);
  --card-foreground: oklch(0.123 0.024 340.667);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.721 0.196 346.111);
  --primary-foreground: oklch(0.197 0.076 348.337);
  --secondary: oklch(0.841 0.01 340.497);
  --secondary-foreground: oklch(0.316 0.013 341.114);
  --accent: oklch(0.771 0.026 340.988);
  --accent-foreground: oklch(0.232 0.015 341.66);
  --destructive: oklch(0.565 0.206 32.711);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.721 0.196 346.111);
  --chart-1: oklch(0.721 0.196 346.111);
  --chart-2: oklch(0.841 0.01 340.497);
  --chart-3: oklch(0.771 0.026 340.988);
  --chart-4: oklch(0.865 0.008 340.45);
  --chart-5: oklch(0.721 0.202 346.306);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.017 340.374);
  --foreground: oklch(0.984 0.003 340.299);
  --muted: oklch(0.197 0.022 342.604);
  --muted-foreground: oklch(0.698 0.003 340.324);
  --popover: oklch(0.107 0.021 340.374);
  --popover-foreground: oklch(0.992 0.001 340.266);
  --card: oklch(0.107 0.021 340.374);
  --card-foreground: oklch(0.992 0.001 340.266);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.721 0.196 346.111);
  --primary-foreground: oklch(0.197 0.076 348.337);
  --secondary: oklch(0.187 0.016 342.125);
  --secondary-foreground: oklch(0.732 0.047 341.627);
  --accent: oklch(0.238 0.035 343.352);
  --accent-foreground: oklch(0.769 0.055 341.773);
  --destructive: oklch(0.647 0.22 33.545);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.721 0.196 346.111);
  --chart-1: oklch(0.721 0.196 346.111);
  --chart-2: oklch(0.187 0.016 342.125);
  --chart-3: oklch(0.238 0.035 343.352);
  --chart-4: oklch(0.219 0.022 342.358);
  --chart-5: oklch(0.721 0.202 346.306);
}