Amethyst Dark is a shadcn/ui theme built around a muted violet primary color (#c2b2cd) with vivid deep violet accents (#380070). The light mode uses a violet-tinted background (#120024). Dark mode keeps the muted violet primary (#c2b2cd) on a violet-tinted background (#120024).
| Token | Light | Dark |
|---|---|---|
| Background | #120024black | #120024black |
| Foreground | #e9d9f2lavender | #e9d9f2lavender |
| Card | #0d001ablack | #0d001ablack |
| Card foreground | #f4ecf8whitesmoke | #f4ecf8whitesmoke |
| Popover | #0a0014black | #0a0014black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #c2b2cdsilver | #c2b2cdsilver |
| Primary foreground | #281e2edarkslategray | #281e2edarkslategray |
| Secondary | #413947darkslategray | #413947darkslategray |
| Secondary foreground | #dad5ddgainsboro | #dad5ddgainsboro |
| Muted | #26222bdarkslategray | #26222bdarkslategray |
| Muted foreground | #a69bb0darkgray | #a69bb0darkgray |
| Accent | #380070indigo | #380070indigo |
| Accent foreground | #d1a3ffplum | #d1a3ffplum |
| Destructive | #fb3c32tomato | #fb3c32tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1f033amidnightblue | #1f033amidnightblue |
| Input | #260449midnightblue | #260449midnightblue |
| Ring | #c2b2cdsilver | #c2b2cdsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.91:1 | AAA |
| Text on card | 17.64:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.62:1 | AA Large |
| Text on background | 14.91:1 | AAA |
| Text on card | 17.64:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Amethyst Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.147 0.077 303.575);
--foreground: oklch(0.906 0.038 313.351);
--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.953 0.019 313.486);
--border: oklch(0.2 0.098 300.591);
--input: oklch(0.229 0.114 299.489);
--primary: oklch(0.785 0.041 311.969);
--primary-foreground: oklch(0.255 0.033 311.399);
--secondary: oklch(0.358 0.026 311.814);
--secondary-foreground: oklch(0.878 0.013 312.251);
--accent: oklch(0.294 0.16 296.354);
--accent-foreground: oklch(0.791 0.135 306.507);
--destructive: oklch(0.648 0.227 28.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.785 0.041 311.969);
--chart-1: oklch(0.785 0.041 311.969);
--chart-2: oklch(0.358 0.026 311.814);
--chart-3: oklch(0.294 0.16 296.354);
--chart-4: oklch(0.385 0.029 311.803);
--chart-5: oklch(0.782 0.047 311.911);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.077 303.575);
--foreground: oklch(0.906 0.038 313.351);
--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.953 0.019 313.486);
--border: oklch(0.2 0.098 300.591);
--input: oklch(0.229 0.114 299.489);
--primary: oklch(0.785 0.041 311.969);
--primary-foreground: oklch(0.255 0.033 311.399);
--secondary: oklch(0.358 0.026 311.814);
--secondary-foreground: oklch(0.878 0.013 312.251);
--accent: oklch(0.294 0.16 296.354);
--accent-foreground: oklch(0.791 0.135 306.507);
--destructive: oklch(0.648 0.227 28.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.785 0.041 311.969);
--chart-1: oklch(0.785 0.041 311.969);
--chart-2: oklch(0.358 0.026 311.814);
--chart-3: oklch(0.294 0.16 296.354);
--chart-4: oklch(0.385 0.029 311.803);
--chart-5: oklch(0.782 0.047 311.911);
}