Astolfo Theme\ is a shadcn/ui theme built around a vivid purple primary color (#ff00e6) with muted light purple accents (#d3c0d1). The light mode uses a neutral background (#fefbfd). Dark mode switches to a vivid pink primary (#990057) on a pink-tinted background (#5d0534).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #5d0534maroon |
| Foreground | #0d020cblack | #ff006adeeppink |
| Card | #fefbfdsnow | #521239darkslategray |
| Card foreground | #0d020cblack | #fd4886deeppink |
| Popover | #fefbfdsnow | #43003cindigo |
| Popover foreground | #0d020cblack | #c20067mediumvioletred |
| Primary | #ff00e6magenta | #990057purple |
| Primary foreground | #ffffffwhite | #ff007ddeeppink |
| Secondary | #e1dbe0gainsboro | #4c0044indigo |
| Secondary foreground | #4b3f4adarkslategray | #c5c4c5silver |
| Muted | #e7cae4thistle | #7e0071purple |
| Muted foreground | #5c515bdimgray | #aea3acdarkgray |
| Accent | #d3c0d1thistle | #a0008bdarkmagenta |
| Accent foreground | #392837darkslategray | #d7d0d6lightgrey |
| Destructive | #b61207firebrick | #881d86darkmagenta |
| Destructive foreground | #fef1f0seashell | #ff0a5dcrimson |
| Border | #ece9eclavender | #ff00e6magenta |
| Input | #ece9eclavender | #f84b86palevioletred |
| Ring | #ff00e6magenta | #ff00e6magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 3.28:1 | AA Large |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 3.54:1 | AA Large |
| Text on card | 4.26:1 | AA Large |
| Primary button | 2.22:1 | Fail |
| Secondary button | 8.70:1 | AAA |
| Muted text | 4.07:1 | AA Large |
| Accent | 4.84:1 | AA |
| Destructive | 2.12:1 | Fail |
Paste this into your globals.css to use Astolfo Theme\ in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 328.636);
--foreground: oklch(0.121 0.038 330.678);
--muted: oklch(0.872 0.048 329.179);
--muted-foreground: oklch(0.45 0.02 329.075);
--popover: oklch(0.991 0.004 328.636);
--popover-foreground: oklch(0.121 0.038 330.678);
--card: oklch(0.991 0.004 328.636);
--card-foreground: oklch(0.121 0.038 330.678);
--border: oklch(0.937 0.005 328.647);
--input: oklch(0.937 0.005 328.647);
--primary: oklch(0.687 0.307 334.075);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.897 0.01 328.712);
--secondary-foreground: oklch(0.383 0.025 329.287);
--accent: oklch(0.829 0.03 328.988);
--accent-foreground: oklch(0.303 0.035 329.796);
--destructive: oklch(0.494 0.194 29.795);
--destructive-foreground: oklch(0.969 0.014 22.385);
--ring: oklch(0.687 0.307 334.075);
--chart-1: oklch(0.687 0.307 334.075);
--chart-2: oklch(0.897 0.01 328.712);
--chart-3: oklch(0.829 0.03 328.988);
--chart-4: oklch(0.921 0.007 328.681);
--chart-5: oklch(0.694 0.311 334.165);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.316 0.123 356.091);
--foreground: oklch(0.64 0.256 9.335);
--muted: oklch(0.407 0.182 333.77);
--muted-foreground: oklch(0.727 0.018 328.86);
--popover: oklch(0.263 0.118 333.311);
--popover-foreground: oklch(0.528 0.214 359.772);
--card: oklch(0.308 0.104 347.803);
--card-foreground: oklch(0.677 0.219 4.809);
--border: oklch(0.687 0.307 334.075);
--input: oklch(0.672 0.212 4.326);
--primary: oklch(0.445 0.182 356.257);
--primary-foreground: oklch(0.645 0.26 3.384);
--secondary: oklch(0.286 0.128 333.418);
--secondary-foreground: oklch(0.821 0.002 328.619);
--accent: oklch(0.482 0.214 335.778);
--accent-foreground: oklch(0.866 0.011 328.737);
--destructive: oklch(0.453 0.183 328.934);
--destructive-foreground: oklch(0.639 0.253 13.371);
--ring: oklch(0.687 0.307 334.075);
--chart-1: oklch(0.445 0.182 356.257);
--chart-2: oklch(0.286 0.128 333.418);
--chart-3: oklch(0.482 0.214 335.778);
--chart-4: oklch(0.324 0.145 333.561);
--chart-5: oklch(0.449 0.185 356.672);
}