Aching is a shadcn/ui theme built around a vivid purple primary color (#cc1498) with vivid green accents (#14cc48). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#cc1498) on a purple-tinted background (#10050d).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #10050dblack |
| Foreground | #0c030ablack | #ffffffwhite |
| Card | #fefbfdsnow | #10050dblack |
| Card foreground | #0c030ablack | #ffffffwhite |
| Popover | #fefbfdsnow | #10050dblack |
| Popover foreground | #0c030ablack | #ffffffwhite |
| Primary | #cc1498mediumvioletred | #cc1498mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #14cc48limegreen | #14cc48limegreen |
| Secondary foreground | #021307black | #021307black |
| Muted | #d1ebd8gainsboro | #142e1cblack |
| Muted foreground | #575b58dimgray | #a4a8a5darkgray |
| Accent | #14cc48limegreen | #14cc48limegreen |
| Accent foreground | #021307black | #021307black |
| Destructive | #a63c07saddlebrown | #f77a3bcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc1498mediumvioletred | #cc1498mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.08:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 8.90:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 5.08:1 | AA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 8.90:1 | AAA |
| Destructive | 7.78:1 | AAA |
Paste this into your globals.css to use Aching in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 335.261);
--foreground: oklch(0.122 0.028 336.233);
--muted: oklch(0.915 0.037 154.429);
--muted-foreground: oklch(0.467 0.006 154.951);
--popover: oklch(0.991 0.004 335.261);
--popover-foreground: oklch(0.122 0.028 336.233);
--card: oklch(0.991 0.004 335.261);
--card-foreground: oklch(0.122 0.028 336.233);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.57 0.235 344.147);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.738 0.22 146.262);
--secondary-foreground: oklch(0.164 0.037 152.91);
--accent: oklch(0.738 0.22 146.262);
--accent-foreground: oklch(0.164 0.037 152.91);
--destructive: oklch(0.501 0.151 40.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.57 0.235 344.147);
--chart-1: oklch(0.57 0.235 344.147);
--chart-2: oklch(0.738 0.22 146.262);
--chart-3: oklch(0.738 0.22 146.262);
--chart-4: oklch(0.775 0.231 146.217);
--chart-5: oklch(0.576 0.239 344.452);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.028 337.314);
--foreground: oklch(1 0 180);
--muted: oklch(0.275 0.047 151.4);
--muted-foreground: oklch(0.726 0.005 155.053);
--popover: oklch(0.137 0.028 337.314);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.137 0.028 337.314);
--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.57 0.235 344.147);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.738 0.22 146.262);
--secondary-foreground: oklch(0.164 0.037 152.91);
--accent: oklch(0.738 0.22 146.262);
--accent-foreground: oklch(0.164 0.037 152.91);
--destructive: oklch(0.714 0.171 44.788);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.57 0.235 344.147);
--chart-1: oklch(0.57 0.235 344.147);
--chart-2: oklch(0.738 0.22 146.262);
--chart-3: oklch(0.738 0.22 146.262);
--chart-4: oklch(0.775 0.231 146.217);
--chart-5: oklch(0.576 0.239 344.452);
}