Amenity is a shadcn/ui theme built around a muted deep indigo primary color (#100f1a) with muted deep green accents (#191a0f). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted deep indigo primary (#100f1a) on an indigo-tinted background (#07050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #07050fblack |
| Foreground | #04030dblack | #ffffffwhite |
| Card | #fcfcfdwhite | #07050fblack |
| Card foreground | #04030dblack | #ffffffwhite |
| Popover | #fcfcfdwhite | #07050fblack |
| Popover foreground | #04030dblack | #ffffffwhite |
| Primary | #100f1ablack | #100f1ablack |
| Primary foreground | #9d97c4darkgray | #9d97c4darkgray |
| Secondary | #191a0fblack | #191a0fblack |
| Secondary foreground | #949d58darkkhaki | #949d58darkkhaki |
| Muted | #e5e7dagainsboro | #242518black |
| Muted foreground | #676864dimgray | #9a9b97darkgray |
| Accent | #191a0fblack | #191a0fblack |
| Accent foreground | #949d58darkkhaki | #949d58darkkhaki |
| Destructive | #cf230cfirebrick | #f2351corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #100f1ablack | #100f1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.04:1 | AA |
| Muted text | 4.49:1 | AA Large |
| Accent | 6.04:1 | AA |
| Destructive | 5.37:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.04:1 | AA |
| Muted text | 5.54:1 | AA |
| Accent | 6.04:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Amenity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 292.501);
--foreground: oklch(0.105 0.03 289.512);
--muted: oklch(0.923 0.018 112.909);
--muted-foreground: oklch(0.516 0.006 112.774);
--popover: oklch(0.991 0.002 292.501);
--popover-foreground: oklch(0.105 0.03 289.512);
--card: oklch(0.991 0.002 292.501);
--card-foreground: oklch(0.105 0.03 289.512);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.175 0.023 289.853);
--primary-foreground: oklch(0.696 0.067 290.67);
--secondary: oklch(0.213 0.021 114.411);
--secondary-foreground: oklch(0.672 0.093 115.163);
--accent: oklch(0.213 0.021 114.411);
--accent-foreground: oklch(0.672 0.093 115.163);
--destructive: oklch(0.55 0.208 30.885);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.175 0.023 289.853);
--chart-1: oklch(0.175 0.023 289.853);
--chart-2: oklch(0.213 0.021 114.411);
--chart-3: oklch(0.213 0.021 114.411);
--chart-4: oklch(0.253 0.028 114.604);
--chart-5: oklch(0.173 0.026 289.499);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.024 290.136);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.024 114.266);
--muted-foreground: oklch(0.688 0.006 112.704);
--popover: oklch(0.126 0.024 290.136);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.024 290.136);
--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.175 0.023 289.853);
--primary-foreground: oklch(0.696 0.067 290.67);
--secondary: oklch(0.213 0.021 114.411);
--secondary-foreground: oklch(0.672 0.093 115.163);
--accent: oklch(0.213 0.021 114.411);
--accent-foreground: oklch(0.672 0.093 115.163);
--destructive: oklch(0.626 0.226 31.035);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.175 0.023 289.853);
--chart-1: oklch(0.175 0.023 289.853);
--chart-2: oklch(0.213 0.021 114.411);
--chart-3: oklch(0.213 0.021 114.411);
--chart-4: oklch(0.253 0.028 114.604);
--chart-5: oklch(0.173 0.026 289.499);
}