Perfumed is a shadcn/ui theme built around a deep pink primary color (#350e1d) with muted pink accents (#cbafb9). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep pink primary (#350e1d) on a pink-tinted background (#0c0307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0c0307black |
| Foreground | #0d0307black | #f8f7f7whitesmoke |
| Card | #fdfcfcsnow | #0c0307black |
| Card foreground | #0d0307black | #f8f7f7whitesmoke |
| Popover | #fdfcfcsnow | #0c0307black |
| Popover foreground | #0d0307black | #f8f7f7whitesmoke |
| Primary | #350e1dblack | #350e1dblack |
| Primary foreground | #e392b1palevioletred | #e392b1palevioletred |
| Secondary | #d7ccd0lightgrey | #222021black |
| Secondary foreground | #3f3137darkslategray | #bcb8basilver |
| Muted | #f4e6eclinen | #190b10black |
| Muted foreground | #50494cdarkslategray | #b6afb2darkgray |
| Accent | #cbafb9silver | #33292ddarkslategray |
| Accent foreground | #2b1c22black | #cdc1c5silver |
| Destructive | #883007saddlebrown | #e4500corangered |
| Destructive foreground | #fcd6c5peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #350e1dblack | #350e1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Perfumed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 351.648);
--foreground: oklch(0.119 0.026 351.552);
--muted: oklch(0.938 0.017 352.092);
--muted-foreground: oklch(0.413 0.011 352.356);
--popover: oklch(0.991 0.002 351.648);
--popover-foreground: oklch(0.119 0.026 351.552);
--card: oklch(0.991 0.002 351.648);
--card-foreground: oklch(0.119 0.026 351.552);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.233 0.065 359.698);
--primary-foreground: oklch(0.75 0.105 355.348);
--secondary: oklch(0.854 0.013 352.038);
--secondary-foreground: oklch(0.331 0.021 353.339);
--accent: oklch(0.781 0.035 352.838);
--accent-foreground: oklch(0.248 0.025 354.357);
--destructive: oklch(0.432 0.129 40.519);
--destructive-foreground: oklch(0.904 0.048 46.329);
--ring: oklch(0.233 0.065 359.698);
--chart-1: oklch(0.233 0.065 359.698);
--chart-2: oklch(0.854 0.013 352.038);
--chart-3: oklch(0.781 0.035 352.838);
--chart-4: oklch(0.879 0.011 351.951);
--chart-5: oklch(0.234 0.068 0.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.024 351.513);
--foreground: oklch(0.976 0.002 351.644);
--muted: oklch(0.172 0.026 355.646);
--muted-foreground: oklch(0.76 0.01 351.95);
--popover: oklch(0.12 0.024 351.513);
--popover-foreground: oklch(0.976 0.002 351.644);
--card: oklch(0.12 0.024 351.513);
--card-foreground: oklch(0.976 0.002 351.644);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.233 0.065 359.698);
--primary-foreground: oklch(0.75 0.105 355.348);
--secondary: oklch(0.247 0.003 351.972);
--secondary-foreground: oklch(0.787 0.005 351.778);
--accent: oklch(0.293 0.016 353.123);
--accent-foreground: oklch(0.822 0.015 352.115);
--destructive: oklch(0.627 0.194 39.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.233 0.065 359.698);
--chart-1: oklch(0.233 0.065 359.698);
--chart-2: oklch(0.247 0.003 351.972);
--chart-3: oklch(0.293 0.016 353.123);
--chart-4: oklch(0.278 0.004 351.995);
--chart-5: oklch(0.234 0.068 0.168);
}