Astonishing is a shadcn/ui theme built around a neutral gray primary color (#3b3b3b) with neutral gray accents (#e7e4e4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#3b3b3b) on a red-tinted background (#100505).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #100505black |
| Foreground | #110303black | #fdfcfcsnow |
| Card | #fcf8f8snow | #140606black |
| Card foreground | #0d0303black | #ffffffwhite |
| Popover | #fefbfbsnow | #100505black |
| Popover foreground | #110303black | #fdfcfcsnow |
| Primary | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Primary foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Secondary | #e7e4e4gainsboro | #1e1a1ablack |
| Secondary foreground | #524747darkslategray | #bab0b0darkgray |
| Muted | #e4d3d3gainsboro | #2c1b1bblack |
| Muted foreground | #4c3d3ddarkslategray | #c2b3b3silver |
| Accent | #e7e4e4gainsboro | #1e1a1ablack |
| Accent foreground | #524747darkslategray | #bab0b0darkgray |
| Destructive | #b81714firebrick | #e72623crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.10:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.48:1 | AA Large |
Paste this into your globals.css to use Astonishing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.196);
--foreground: oklch(0.13 0.03 22.102);
--muted: oklch(0.88 0.019 17.521);
--muted-foreground: oklch(0.377 0.021 18.136);
--popover: oklch(0.991 0.002 17.196);
--popover-foreground: oklch(0.13 0.03 22.102);
--card: oklch(0.982 0.005 17.235);
--card-foreground: oklch(0.116 0.026 21.871);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0 167.471);
--primary-foreground: oklch(0.869 0 165.964);
--secondary: oklch(0.921 0.004 17.228);
--secondary-foreground: oklch(0.409 0.015 17.762);
--accent: oklch(0.921 0.004 17.228);
--accent-foreground: oklch(0.409 0.015 17.762);
--destructive: oklch(0.5 0.192 28.407);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0 167.471);
--chart-1: oklch(0.351 0 167.471);
--chart-2: oklch(0.921 0.004 17.228);
--chart-3: oklch(0.921 0.004 17.228);
--chart-4: oklch(0.945 0.003 17.205);
--chart-5: oklch(0.348 0.005 17.393);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.023 20.699);
--foreground: oklch(0.991 0.002 17.188);
--muted: oklch(0.245 0.027 19.221);
--muted-foreground: oklch(0.778 0.017 17.532);
--popover: oklch(0.132 0.023 20.699);
--popover-foreground: oklch(0.991 0.002 17.188);
--card: oklch(0.145 0.027 20.955);
--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.351 0 167.471);
--primary-foreground: oklch(0.869 0 165.964);
--secondary: oklch(0.223 0.006 17.626);
--secondary-foreground: oklch(0.765 0.012 17.416);
--accent: oklch(0.223 0.006 17.626);
--accent-foreground: oklch(0.765 0.012 17.416);
--destructive: oklch(0.596 0.225 28.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0 167.471);
--chart-1: oklch(0.351 0 167.471);
--chart-2: oklch(0.223 0.006 17.626);
--chart-3: oklch(0.223 0.006 17.626);
--chart-4: oklch(0.254 0.008 17.664);
--chart-5: oklch(0.348 0.005 17.393);
}