Perfumed is a shadcn/ui theme built around a green primary color (#4b8038) with violet accents (#6d3880). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#4b8038) on a green-tinted background (#080f06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080f06black |
| Foreground | #020401black | #ffffffwhite |
| Card | #fcfefbwhite | #080f06black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #fcfefbwhite | #080f06black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #4b8038darkolivegreen | #4b8038darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d3880rebeccapurple | #6d3880rebeccapurple |
| Secondary foreground | #f7f1f9whitesmoke | #f7f1f9whitesmoke |
| Muted | #eaddeelavender | #1e1122black |
| Muted foreground | #675b6bdimgray | #9f94a4darkgray |
| Accent | #6d3880rebeccapurple | #6d3880rebeccapurple |
| Accent foreground | #f7f1f9whitesmoke | #f7f1f9whitesmoke |
| Destructive | #8a360fsaddlebrown | #d45216chocolate |
| Destructive foreground | #faded1antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4b8038darkolivegreen | #4b8038darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 4.74:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 4.88:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 4.74:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Perfumed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 137.202);
--foreground: oklch(0.099 0.018 135.371);
--muted: oklch(0.912 0.027 317.122);
--muted-foreground: oklch(0.49 0.029 317.055);
--popover: oklch(0.995 0.005 137.202);
--popover-foreground: oklch(0.099 0.018 135.371);
--card: oklch(0.995 0.005 137.202);
--card-foreground: oklch(0.099 0.018 135.371);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.544 0.118 138.068);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.125 316.275);
--secondary-foreground: oklch(0.964 0.012 317.16);
--accent: oklch(0.439 0.125 316.275);
--accent-foreground: oklch(0.964 0.012 317.16);
--destructive: oklch(0.445 0.125 41.632);
--destructive-foreground: oklch(0.92 0.036 46.456);
--ring: oklch(0.544 0.118 138.068);
--chart-1: oklch(0.544 0.118 138.068);
--chart-2: oklch(0.439 0.125 316.275);
--chart-3: oklch(0.439 0.125 316.275);
--chart-4: oklch(0.464 0.134 316.26);
--chart-5: oklch(0.551 0.125 138.167);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.023 136.378);
--foreground: oklch(1 0 180);
--muted: oklch(0.203 0.038 316.702);
--muted-foreground: oklch(0.68 0.027 317.1);
--popover: oklch(0.157 0.023 136.378);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.023 136.378);
--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.544 0.118 138.068);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.125 316.275);
--secondary-foreground: oklch(0.964 0.012 317.16);
--accent: oklch(0.439 0.125 316.275);
--accent-foreground: oklch(0.964 0.012 317.16);
--destructive: oklch(0.605 0.176 40.976);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.544 0.118 138.068);
--chart-1: oklch(0.544 0.118 138.068);
--chart-2: oklch(0.439 0.125 316.275);
--chart-3: oklch(0.439 0.125 316.275);
--chart-4: oklch(0.464 0.134 316.26);
--chart-5: oklch(0.551 0.125 138.167);
}