Amenity is a shadcn/ui theme built around a vivid purple primary color (#cc17e8) with vivid pink accents (#e8179b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#cc17e8) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050bblack |
| Foreground | #0c020dblack | #f9f4fawhitesmoke |
| Card | #fcfcfcsnow | #0d060eblack |
| Card foreground | #080109black | #fbf8fcghostwhite |
| Popover | #fcfcfcsnow | #0d060eblack |
| Popover foreground | #080109black | #fbf8fcghostwhite |
| Primary | #cc17e8magenta | #cc17e8magenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6417e8blueviolet | #6417e8blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efeef2whitesmoke | #0f0d11black |
| Muted foreground | #534b63dimgray | #a59cb4darkgray |
| Accent | #e8179bdeeppink | #e8179bdeeppink |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a63c03saddlebrown | #fc6e22tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc17e8magenta | #cc17e8magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 7.43:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 6.44:1 | AA |
| Text on background | 18.64:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 4.32:1 | AA Large |
| Secondary button | 7.43:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 7.38:1 | AAA |
Paste this into your globals.css to use Amenity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.039 323.585);
--muted: oklch(0.95 0.006 302.834);
--muted-foreground: oklch(0.43 0.041 301.46);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.104 0.033 324.043);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.033 324.043);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.285 321.299);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.485 0.266 287.473);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.62 0.25 349.735);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.499 0.151 41.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.285 321.299);
--chart-1: oklch(0.616 0.285 321.299);
--chart-2: oklch(0.485 0.266 287.473);
--chart-3: oklch(0.62 0.25 349.735);
--chart-4: oklch(0.504 0.26 289.889);
--chart-5: oklch(0.622 0.29 321.193);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.019 322.796);
--foreground: oklch(0.974 0.009 321.619);
--muted: oklch(0.164 0.009 302.069);
--muted-foreground: oklch(0.709 0.036 302.149);
--popover: oklch(0.139 0.022 322.291);
--popover-foreground: oklch(0.983 0.006 321.61);
--card: oklch(0.139 0.022 322.291);
--card-foreground: oklch(0.983 0.006 321.61);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.616 0.285 321.299);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.485 0.266 287.473);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.62 0.25 349.735);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.702 0.191 43.995);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.616 0.285 321.299);
--chart-1: oklch(0.616 0.285 321.299);
--chart-2: oklch(0.485 0.266 287.473);
--chart-3: oklch(0.62 0.25 349.735);
--chart-4: oklch(0.504 0.26 289.889);
--chart-5: oklch(0.622 0.29 321.193);
}