Ghost Pokemon is a shadcn/ui theme built around a violet primary color (#8b66cc) with blue accents (#5ca9d6). The light mode uses a violet-tinted background (#f1eef7). Dark mode keeps the violet primary (#7d53c6) on a violet-tinted background (#171122).
| Token | Light | Dark |
|---|---|---|
| Background | #f1eef7whitesmoke | #171122black |
| Foreground | #262626darkslategray | #cccccclightgrey |
| Card | #eeeaf5lavender | #191226black |
| Card foreground | #292929darkslategray | #c9c9c9silver |
| Popover | #f4f1f8whitesmoke | #150f1fblack |
| Popover foreground | #242424darkslategray | #cfcfcflightgrey |
| Primary | #8b66ccmediumpurple | #7d53c6slateblue |
| Primary foreground | #efe7felavender | #efe7felavender |
| Secondary | #6966ccslateblue | #5753c6slateblue |
| Secondary foreground | #e8e7felavender | #e8e7felavender |
| Muted | #c9c2d6thistle | #3c334ddarkslategray |
| Muted foreground | #3c334ddarkslategray | #c9c2d6thistle |
| Accent | #5ca9d6cornflowerblue | #479fd1steelblue |
| Accent foreground | #e7f5fealiceblue | #e7f5fealiceblue |
| Destructive | #cc001bcrimson | #b30018firebrick |
| Destructive foreground | #ffe6e9mistyrose | #ffe6e9mistyrose |
| Border | #e4e0eblavender | #30293ddarkslategray |
| Input | #c9c2d6thistle | #483d5cdarkslategray |
| Ring | #6e40bfslateblue | #6e40bfslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.17:1 | AAA |
| Text on card | 12.32:1 | AAA |
| Primary button | 3.59:1 | AA Large |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 6.86:1 | AA |
| Accent | 2.32:1 | Fail |
| Destructive | 4.95:1 | AA |
| Text on background | 11.49:1 | AAA |
| Text on card | 10.94:1 | AAA |
| Primary button | 4.47:1 | AA Large |
| Secondary button | 5.01:1 | AA |
| Muted text | 6.86:1 | AA |
| Accent | 2.65:1 | Fail |
| Destructive | 6.08:1 | AA |
Paste this into your globals.css to use Ghost Pokemon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.954 0.012 302.731);
--foreground: oklch(0.27 0 180);
--muted: oklch(0.826 0.029 302.388);
--muted-foreground: oklch(0.342 0.045 300.86);
--popover: oklch(0.963 0.01 302.768);
--popover-foreground: oklch(0.259 0 167.471);
--card: oklch(0.945 0.014 302.696);
--card-foreground: oklch(0.28 0 180);
--border: oklch(0.914 0.014 302.691);
--input: oklch(0.826 0.029 302.388);
--primary: oklch(0.594 0.153 298.559);
--primary-foreground: oklch(0.941 0.032 302.412);
--secondary: oklch(0.564 0.153 281.797);
--secondary-foreground: oklch(0.935 0.031 287.317);
--accent: oklch(0.704 0.101 236.047);
--accent-foreground: oklch(0.963 0.019 232.868);
--destructive: oklch(0.532 0.216 26.016);
--destructive-foreground: oklch(0.945 0.028 8.476);
--ring: oklch(0.497 0.189 295.513);
--chart-1: oklch(0.594 0.153 298.559);
--chart-2: oklch(0.564 0.153 281.797);
--chart-3: oklch(0.704 0.101 236.047);
--chart-4: oklch(0.597 0.141 282.762);
--chart-5: oklch(0.59 0.162 298.216);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.194 0.036 299.925);
--foreground: oklch(0.845 0 164.055);
--muted: oklch(0.342 0.045 300.86);
--muted-foreground: oklch(0.826 0.029 302.388);
--popover: oklch(0.184 0.033 300.061);
--popover-foreground: oklch(0.853 0 168.69);
--card: oklch(0.203 0.039 299.804);
--card-foreground: oklch(0.837 0 171.254);
--border: oklch(0.298 0.038 300.961);
--input: oklch(0.385 0.053 300.787);
--primary: oklch(0.544 0.172 297.256);
--primary-foreground: oklch(0.941 0.032 302.412);
--secondary: oklch(0.51 0.174 279.78);
--secondary-foreground: oklch(0.935 0.031 287.317);
--accent: oklch(0.669 0.112 237.206);
--accent-foreground: oklch(0.963 0.019 232.868);
--destructive: oklch(0.482 0.196 25.72);
--destructive-foreground: oklch(0.945 0.028 8.476);
--ring: oklch(0.497 0.189 295.513);
--chart-1: oklch(0.544 0.172 297.256);
--chart-2: oklch(0.51 0.174 279.78);
--chart-3: oklch(0.669 0.112 237.206);
--chart-4: oklch(0.542 0.162 281.058);
--chart-5: oklch(0.54 0.181 296.784);
}