Perfumed is a shadcn/ui theme built around a muted cyan primary color (#406164) with muted red accents (#644340). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the muted cyan primary (#406164) on a neutral background (#040607).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #040607black |
| Foreground | #031516black | #f5f9faghostwhite |
| Card | #f5f9faghostwhite | #050a0ablack |
| Card foreground | #021112black | #f8fbfcghostwhite |
| Popover | #f8fbfbghostwhite | #040607black |
| Popover foreground | #031516black | #f5f9faghostwhite |
| Primary | #406164darkslategray | #406164darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #644340darkolivegreen | #644340darkolivegreen |
| Secondary foreground | #efe7e6linen | #efe7e6linen |
| Muted | #f3f2f1whitesmoke | #0e0c0cblack |
| Muted foreground | #523e3ddarkslategray | #c2afadsilver |
| Accent | #644340darkolivegreen | #644340darkolivegreen |
| Accent foreground | #efe7e6linen | #efe7e6linen |
| Destructive | #841201maroon | #f42201red |
| Destructive foreground | #ffc1b8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #406164darkslategray | #406164darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.01:1 | AAA |
| Text on card | 18.17:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 8.85:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 9.32:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Perfumed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 203.553);
--foreground: oklch(0.18 0.025 202.647);
--muted: oklch(0.961 0.002 23.599);
--muted-foreground: oklch(0.386 0.028 24.429);
--popover: oklch(0.987 0.003 203.553);
--popover-foreground: oklch(0.18 0.025 202.647);
--card: oklch(0.98 0.004 203.539);
--card-foreground: oklch(0.163 0.023 202.097);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.467 0.038 203.121);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.418 0.046 25.01);
--secondary-foreground: oklch(0.934 0.009 23.676);
--accent: oklch(0.418 0.046 25.01);
--accent-foreground: oklch(0.934 0.009 23.676);
--destructive: oklch(0.394 0.15 31.779);
--destructive-foreground: oklch(0.865 0.072 28.59);
--ring: oklch(0.467 0.038 203.121);
--chart-1: oklch(0.467 0.038 203.121);
--chart-2: oklch(0.418 0.046 25.01);
--chart-3: oklch(0.418 0.046 25.01);
--chart-4: oklch(0.444 0.05 25.034);
--chart-5: oklch(0.472 0.043 203.126);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.007 202.094);
--foreground: oklch(0.98 0.005 203.535);
--muted: oklch(0.156 0.003 23.763);
--muted-foreground: oklch(0.769 0.023 23.893);
--popover: oklch(0.12 0.007 202.094);
--popover-foreground: oklch(0.98 0.005 203.535);
--card: oklch(0.137 0.008 202.094);
--card-foreground: oklch(0.987 0.003 203.55);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.467 0.038 203.121);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.418 0.046 25.01);
--secondary-foreground: oklch(0.934 0.009 23.676);
--accent: oklch(0.418 0.046 25.01);
--accent-foreground: oklch(0.934 0.009 23.676);
--destructive: oklch(0.616 0.24 30.914);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.467 0.038 203.121);
--chart-1: oklch(0.467 0.038 203.121);
--chart-2: oklch(0.418 0.046 25.01);
--chart-3: oklch(0.418 0.046 25.01);
--chart-4: oklch(0.444 0.05 25.034);
--chart-5: oklch(0.472 0.043 203.126);
}