Ash is a shadcn/ui theme built around a violet primary color (#573a83) with purple accents (#7c3a83). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#573a83) on a violet-tinted background (#07040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07040cblack |
| Foreground | #020105black | #f7f5fawhitesmoke |
| Card | #ffffffwhite | #07040cblack |
| Card foreground | #020105black | #f7f5fawhitesmoke |
| Popover | #ffffffwhite | #07040cblack |
| Popover foreground | #020105black | #f7f5fawhitesmoke |
| Primary | #573a83darkslateblue | #573a83darkslateblue |
| Primary foreground | #f7f4fawhitesmoke | #f7f4fawhitesmoke |
| Secondary | #3a4183darkslateblue | #3a4183darkslateblue |
| Secondary foreground | #f4f5fawhitesmoke | #f4f5fawhitesmoke |
| Muted | #e8e9f2lavender | #0d0e17black |
| Muted foreground | #555768dimgray | #9799aadarkgray |
| Accent | #7c3a83rebeccapurple | #7c3a83rebeccapurple |
| Accent foreground | #faf4faghostwhite | #faf4faghostwhite |
| Destructive | #841d01maroon | #fe582atomato |
| Destructive foreground | #ffc7b8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #573a83darkslateblue | #573a83darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.81:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.63:1 | AA |
Paste this into your globals.css to use Ash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.074 0.026 306.069);
--muted: oklch(0.936 0.013 281.068);
--muted-foreground: oklch(0.461 0.028 280.255);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.074 0.026 306.069);
--card: oklch(1 0 180);
--card-foreground: oklch(0.074 0.026 306.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.12 299.665);
--primary-foreground: oklch(0.972 0.008 304.223);
--secondary: oklch(0.405 0.11 275.575);
--secondary-foreground: oklch(0.971 0.007 281.168);
--accent: oklch(0.463 0.135 323.53);
--accent-foreground: oklch(0.974 0.01 322.667);
--destructive: oklch(0.403 0.142 34.617);
--destructive-foreground: oklch(0.876 0.067 35.989);
--ring: oklch(0.418 0.12 299.665);
--chart-1: oklch(0.418 0.12 299.665);
--chart-2: oklch(0.405 0.11 275.575);
--chart-3: oklch(0.463 0.135 323.53);
--chart-4: oklch(0.427 0.117 275.497);
--chart-5: oklch(0.414 0.128 299.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.023 305.137);
--foreground: oklch(0.972 0.007 304.235);
--muted: oklch(0.166 0.02 279.124);
--muted-foreground: oklch(0.687 0.025 280.68);
--popover: oklch(0.117 0.023 305.137);
--popover-foreground: oklch(0.972 0.007 304.235);
--card: oklch(0.117 0.023 305.137);
--card-foreground: oklch(0.972 0.007 304.235);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.418 0.12 299.665);
--primary-foreground: oklch(0.972 0.008 304.223);
--secondary: oklch(0.405 0.11 275.575);
--secondary-foreground: oklch(0.971 0.007 281.168);
--accent: oklch(0.463 0.135 323.53);
--accent-foreground: oklch(0.974 0.01 322.667);
--destructive: oklch(0.679 0.21 35.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.418 0.12 299.665);
--chart-1: oklch(0.418 0.12 299.665);
--chart-2: oklch(0.405 0.11 275.575);
--chart-3: oklch(0.463 0.135 323.53);
--chart-4: oklch(0.427 0.117 275.497);
--chart-5: oklch(0.414 0.128 299.181);
}