Astonishing is a shadcn/ui theme built around a vivid green primary color (#81fd94) with neutral gray accents (#d3d5d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#81fd94) on a green-tinted background (#030c05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c05black |
| Foreground | #041607black | #ffffffwhite |
| Card | #fcfcfcsnow | #041006black |
| Card foreground | #031105black | #ffffffwhite |
| Popover | #ffffffwhite | #030c05black |
| Popover foreground | #041607black | #ffffffwhite |
| Primary | #81fd94lightgreen | #81fd94lightgreen |
| Primary foreground | #014b0cdarkgreen | #014b0cdarkgreen |
| Secondary | #d3d5d3lightgrey | #262c27darkslategray |
| Secondary foreground | #393c3adarkslategray | #bec6bfsilver |
| Muted | #dcefdfgainsboro | #102313black |
| Muted foreground | #3f403fdarkslategray | #bfc0bfsilver |
| Accent | #d3d5d3lightgrey | #262c27darkslategray |
| Accent foreground | #393c3adarkslategray | #bec6bfsilver |
| Destructive | #6f240cmaroon | #e95a2bchocolate |
| Destructive foreground | #f7c6b5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #81fd94lightgreen | #81fd94lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Astonishing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.177 0.04 147.755);
--muted: oklch(0.934 0.03 149.82);
--muted-foreground: oklch(0.371 0.002 150.159);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.177 0.04 147.755);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.16 0.035 148.309);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.181 147.104);
--primary-foreground: oklch(0.36 0.115 144.326);
--secondary: oklch(0.87 0.003 150.205);
--secondary-foreground: oklch(0.353 0.005 150.074);
--accent: oklch(0.87 0.003 150.205);
--accent-foreground: oklch(0.353 0.005 150.074);
--destructive: oklch(0.372 0.111 37.524);
--destructive-foreground: oklch(0.865 0.061 39.244);
--ring: oklch(0.898 0.181 147.104);
--chart-1: oklch(0.898 0.181 147.104);
--chart-2: oklch(0.87 0.003 150.205);
--chart-3: oklch(0.87 0.003 150.205);
--chart-4: oklch(0.893 0.002 150.214);
--chart-5: oklch(0.901 0.186 147.015);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.024 149.11);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.04 147.655);
--muted-foreground: oklch(0.806 0.002 150.213);
--popover: oklch(0.14 0.024 149.11);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.028 148.669);
--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.898 0.181 147.104);
--primary-foreground: oklch(0.36 0.115 144.326);
--secondary: oklch(0.284 0.012 149.688);
--secondary-foreground: oklch(0.818 0.014 150.026);
--accent: oklch(0.284 0.012 149.688);
--accent-foreground: oklch(0.818 0.014 150.026);
--destructive: oklch(0.648 0.187 37.841);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.181 147.104);
--chart-1: oklch(0.898 0.181 147.104);
--chart-2: oklch(0.284 0.012 149.688);
--chart-3: oklch(0.284 0.012 149.688);
--chart-4: oklch(0.316 0.014 149.664);
--chart-5: oklch(0.901 0.186 147.015);
}