Perfumed is a shadcn/ui theme built around a near-black primary color (#000000) with muted red accents (#ccb3b3). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-black primary (#000000) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fdf7f7snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #dcd0d0lightgrey | #1d1616black |
| Secondary foreground | #463434darkslategray | #bca9a9darkgray |
| Muted | #e9ddddgainsboro | #221616black |
| Muted foreground | #443c3cdarkslategray | #c3bbbbsilver |
| Accent | #ccb3b3silver | #3a2727darkslategray |
| Accent foreground | #2e1f1fblack | #d4bfbfsilver |
| Destructive | #d0430bchocolate | #f35112orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 8.11:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.67:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 9.31:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Perfumed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 17.217);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.012 17.383);
--muted-foreground: oklch(0.364 0.011 17.653);
--popover: oklch(0.99 0.004 17.217);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 17.278);
--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 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.868 0.014 17.419);
--secondary-foreground: oklch(0.346 0.027 18.522);
--accent: oklch(0.787 0.029 17.795);
--accent-foreground: oklch(0.257 0.024 18.85);
--destructive: oklch(0.58 0.187 37.606);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.868 0.014 17.419);
--chart-3: oklch(0.787 0.029 17.795);
--chart-4: oklch(0.893 0.011 17.361);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 17.177);
--muted: oklch(0.217 0.018 18.672);
--muted-foreground: oklch(0.8 0.009 17.337);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 17.177);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.21 0.01 17.97);
--secondary-foreground: oklch(0.752 0.021 17.636);
--accent: oklch(0.296 0.028 18.864);
--accent-foreground: oklch(0.823 0.023 17.631);
--destructive: oklch(0.652 0.207 37.888);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.21 0.01 17.97);
--chart-3: oklch(0.296 0.028 18.864);
--chart-4: oklch(0.241 0.012 18.051);
--chart-5: oklch(0 0 0);
}