Amethyst Light is a shadcn/ui theme built around a muted deep violet primary color (#33293d) with vivid light violet accents (#c38fff). The light mode uses a violet-tinted background (#ecdbff). Dark mode keeps the muted deep violet primary (#33293d) on a violet-tinted background (#ecdbff).
| Token | Light | Dark |
|---|---|---|
| Background | #ecdbfflavender | #ecdbfflavender |
| Foreground | #0a0014black | #0a0014black |
| Card | #e7d1fflavender | #e7d1fflavender |
| Card foreground | #000000black | #000000black |
| Popover | #e4ccfflavender | #e4ccfflavender |
| Popover foreground | #000000black | #000000black |
| Primary | #33293ddarkslategray | #33293ddarkslategray |
| Primary foreground | #ccc2d6thistle | #ccc2d6thistle |
| Secondary | #bfb9c6silver | #bfb9c6silver |
| Secondary foreground | #26222adarkslategray | #26222adarkslategray |
| Muted | #e3e0e6gainsboro | #e3e0e6gainsboro |
| Muted foreground | #494153darkslategray | #494153darkslategray |
| Accent | #c38fffplum | #c38fffplum |
| Accent foreground | #2b005cmidnightblue | #2b005cmidnightblue |
| Destructive | #9b120ddarkred | #9b120ddarkred |
| Destructive foreground | #fcdfdemistyrose | #fcdfdemistyrose |
| Border | #dfc5fclavender | #dfc5fclavender |
| Input | #d6b6fbthistle | #d6b6fbthistle |
| Ring | #33293ddarkslategray | #33293ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.80:1 | AAA |
| Text on card | 14.95:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 6.74:1 | AA |
| Text on background | 15.80:1 | AAA |
| Text on card | 14.95:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 6.74:1 | AA |
Paste this into your globals.css to use Amethyst Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.917 0.051 306.432);
--foreground: oklch(0.114 0.058 308.563);
--muted: oklch(0.91 0.01 306.982);
--muted-foreground: oklch(0.391 0.031 306.13);
--popover: oklch(0.881 0.074 306.09);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.893 0.066 306.208);
--card-foreground: oklch(0 0 0);
--border: oklch(0.862 0.08 305.977);
--input: oklch(0.828 0.1 305.614);
--primary: oklch(0.3 0.038 306.277);
--primary-foreground: oklch(0.828 0.03 307.366);
--secondary: oklch(0.794 0.019 307.51);
--secondary-foreground: oklch(0.261 0.015 307.118);
--accent: oklch(0.744 0.164 304.23);
--accent-foreground: oklch(0.253 0.139 294.765);
--destructive: oklch(0.441 0.17 28.861);
--destructive-foreground: oklch(0.928 0.032 20.113);
--ring: oklch(0.3 0.038 306.277);
--chart-1: oklch(0.3 0.038 306.277);
--chart-2: oklch(0.794 0.019 307.51);
--chart-3: oklch(0.744 0.164 304.23);
--chart-4: oklch(0.82 0.017 307.553);
--chart-5: oklch(0.297 0.044 306.021);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.917 0.051 306.432);
--foreground: oklch(0.114 0.058 308.563);
--muted: oklch(0.91 0.01 306.982);
--muted-foreground: oklch(0.391 0.031 306.13);
--popover: oklch(0.881 0.074 306.09);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.893 0.066 306.208);
--card-foreground: oklch(0 0 0);
--border: oklch(0.862 0.08 305.977);
--input: oklch(0.828 0.1 305.614);
--primary: oklch(0.3 0.038 306.277);
--primary-foreground: oklch(0.828 0.03 307.366);
--secondary: oklch(0.794 0.019 307.51);
--secondary-foreground: oklch(0.261 0.015 307.118);
--accent: oklch(0.744 0.164 304.23);
--accent-foreground: oklch(0.253 0.139 294.765);
--destructive: oklch(0.441 0.17 28.861);
--destructive-foreground: oklch(0.928 0.032 20.113);
--ring: oklch(0.3 0.038 306.277);
--chart-1: oklch(0.3 0.038 306.277);
--chart-2: oklch(0.794 0.019 307.51);
--chart-3: oklch(0.744 0.164 304.23);
--chart-4: oklch(0.82 0.017 307.553);
--chart-5: oklch(0.297 0.044 306.021);
}