Amethyst Dark (Higher Contrast) is a shadcn/ui theme built around a muted light violet primary color (#c9bdd0) with vivid deep violet accents (#380070). The light mode uses a violet-tinted background (#120024). Dark mode keeps the muted light violet primary (#c9bdd0) on a violet-tinted background (#120024).
| Token | Light | Dark |
|---|---|---|
| Background | #120024black | #120024black |
| Foreground | #f2e8f7lavender | #f2e8f7lavender |
| Card | #0d001ablack | #0d001ablack |
| Card foreground | #fdfbfewhite | #fdfbfewhite |
| Popover | #0a0014black | #0a0014black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #c9bdd0thistle | #c9bdd0thistle |
| Primary foreground | #302636darkslategray | #302636darkslategray |
| Secondary | #413b44darkslategray | #413b44darkslategray |
| Secondary foreground | #d9d6dbgainsboro | #d9d6dbgainsboro |
| Muted | #26222bdarkslategray | #26222bdarkslategray |
| Muted foreground | #a69bb0darkgray | #a69bb0darkgray |
| Accent | #380070indigo | #380070indigo |
| Accent foreground | #d1a3ffplum | #d1a3ffplum |
| Destructive | #ee3e2borangered | #ee3e2borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1f033amidnightblue | #1f033amidnightblue |
| Input | #260449midnightblue | #260449midnightblue |
| Ring | #c9bdd0thistle | #c9bdd0thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.81:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.92:1 | AA Large |
| Text on background | 16.81:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Amethyst Dark (Higher Contrast) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.147 0.077 303.575);
--foreground: oklch(0.944 0.022 314.713);
--muted: oklch(0.26 0.018 307.687);
--muted-foreground: oklch(0.706 0.033 307.943);
--popover: oklch(0.114 0.058 308.563);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.064 306.504);
--card-foreground: oklch(0.991 0.004 314.809);
--border: oklch(0.2 0.098 300.591);
--input: oklch(0.229 0.114 299.489);
--primary: oklch(0.815 0.029 313.384);
--primary-foreground: oklch(0.287 0.031 312.936);
--secondary: oklch(0.363 0.017 313.32);
--secondary-foreground: oklch(0.881 0.008 313.549);
--accent: oklch(0.294 0.16 296.354);
--accent-foreground: oklch(0.791 0.135 306.507);
--destructive: oklch(0.627 0.215 30.314);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.815 0.029 313.384);
--chart-1: oklch(0.815 0.029 313.384);
--chart-2: oklch(0.363 0.017 313.32);
--chart-3: oklch(0.294 0.16 296.354);
--chart-4: oklch(0.391 0.019 313.314);
--chart-5: oklch(0.813 0.035 313.344);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.077 303.575);
--foreground: oklch(0.944 0.022 314.713);
--muted: oklch(0.26 0.018 307.687);
--muted-foreground: oklch(0.706 0.033 307.943);
--popover: oklch(0.114 0.058 308.563);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.064 306.504);
--card-foreground: oklch(0.991 0.004 314.809);
--border: oklch(0.2 0.098 300.591);
--input: oklch(0.229 0.114 299.489);
--primary: oklch(0.815 0.029 313.384);
--primary-foreground: oklch(0.287 0.031 312.936);
--secondary: oklch(0.363 0.017 313.32);
--secondary-foreground: oklch(0.881 0.008 313.549);
--accent: oklch(0.294 0.16 296.354);
--accent-foreground: oklch(0.791 0.135 306.507);
--destructive: oklch(0.627 0.215 30.314);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.815 0.029 313.384);
--chart-1: oklch(0.815 0.029 313.384);
--chart-2: oklch(0.363 0.017 313.32);
--chart-3: oklch(0.294 0.16 296.354);
--chart-4: oklch(0.391 0.019 313.314);
--chart-5: oklch(0.813 0.035 313.344);
}