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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.61:1 | AA Large |
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);
}