Ashtray is a shadcn/ui theme built around a light blue primary color (#d2d7f9) with light violet accents (#e0d2f9). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the light blue primary (#d2d7f9) on a blue-tinted background (#06070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06070eblack |
| Foreground | #010209black | #f8f9fcghostwhite |
| Card | #f8f9fbghostwhite | #080911black |
| Card foreground | #010105black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #06070eblack |
| Popover foreground | #010209black | #f8f9fcghostwhite |
| Primary | #d2d7f9lavender | #d2d7f9lavender |
| Primary foreground | #132286midnightblue | #132286midnightblue |
| Secondary | #d2ebf9lavender | #d2ebf9lavender |
| Secondary foreground | #061f2dblack | #061f2dblack |
| Muted | #ebf1f5whitesmoke | #0a1114black |
| Muted foreground | #61676bdimgray | #949a9edarkgray |
| Accent | #e0d2f9lavender | #e0d2f9lavender |
| Accent foreground | #3d1386indigo | #3d1386indigo |
| Destructive | #af1108firebrick | #f53c32tomato |
| Destructive foreground | #feececlinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2d7f9lavender | #d2d7f9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 13.65:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 9.04:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 9.29:1 | AAA |
| Secondary button | 13.65:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 9.04:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Ashtray in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 279.314);
--foreground: oklch(0.091 0.026 268.23);
--muted: oklch(0.955 0.008 232.701);
--muted-foreground: oklch(0.511 0.01 232.862);
--popover: oklch(0.991 0.002 279.314);
--popover-foreground: oklch(0.091 0.026 268.23);
--card: oklch(0.982 0.004 279.287);
--card-foreground: oklch(0.073 0.021 268.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.887 0.046 278.508);
--primary-foreground: oklch(0.325 0.164 267.685);
--secondary: oklch(0.925 0.032 233.103);
--secondary-foreground: oklch(0.226 0.04 237.446);
--accent: oklch(0.888 0.054 302.001);
--accent-foreground: oklch(0.338 0.17 290.626);
--destructive: oklch(0.48 0.189 29.461);
--destructive-foreground: oklch(0.958 0.019 21.15);
--ring: oklch(0.887 0.046 278.508);
--chart-1: oklch(0.887 0.046 278.508);
--chart-2: oklch(0.925 0.032 233.103);
--chart-3: oklch(0.888 0.054 302.001);
--chart-4: oklch(0.948 0.022 232.926);
--chart-5: oklch(0.886 0.048 278.47);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.015 276.059);
--foreground: oklch(0.982 0.004 279.279);
--muted: oklch(0.171 0.012 233.813);
--muted-foreground: oklch(0.683 0.009 232.774);
--popover: oklch(0.133 0.015 276.059);
--popover-foreground: oklch(0.982 0.004 279.279);
--card: oklch(0.144 0.018 276.578);
--card-foreground: oklch(0.991 0.002 279.311);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.887 0.046 278.508);
--primary-foreground: oklch(0.325 0.164 267.685);
--secondary: oklch(0.925 0.032 233.103);
--secondary-foreground: oklch(0.226 0.04 237.446);
--accent: oklch(0.888 0.054 302.001);
--accent-foreground: oklch(0.338 0.17 290.626);
--destructive: oklch(0.639 0.222 28.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.046 278.508);
--chart-1: oklch(0.887 0.046 278.508);
--chart-2: oklch(0.925 0.032 233.103);
--chart-3: oklch(0.888 0.054 302.001);
--chart-4: oklch(0.948 0.022 232.926);
--chart-5: oklch(0.886 0.048 278.47);
}