Boogeyman is a shadcn/ui theme built around a near-black primary color (#040209) with muted violet accents (#b3a9cb). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the near-black primary (#040209) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f6fdghostwhite | #09060eblack |
| Foreground | #06030cblack | #f6f5fawhitesmoke |
| Card | #f5f2fdghostwhite | #0b0812black |
| Card foreground | #040208black | #f9f8fcghostwhite |
| Popover | #f9f6fdghostwhite | #09060eblack |
| Popover foreground | #06030cblack | #f6f5fawhitesmoke |
| Primary | #040209black | #040209black |
| Primary foreground | #c5b2f0lightsteelblue | #c5b2f0lightsteelblue |
| Secondary | #cbc6d7thistle | #1c1c1cblack |
| Secondary foreground | #322c3fdarkslategray | #b5b5b5silver |
| Muted | #f1eef7whitesmoke | #110808black |
| Muted foreground | #5b595fdimgray | #a6a0a0darkgray |
| Accent | #b3a9cbsilver | #363030darkslategray |
| Accent foreground | #1e1929black | #cfc9c9lightgrey |
| Destructive | #d90202red | #e80202red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040209black | #040209black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Boogeyman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 299.876);
--foreground: oklch(0.113 0.026 300.047);
--muted: oklch(0.953 0.012 299.829);
--muted-foreground: oklch(0.468 0.009 299.714);
--popover: oklch(0.978 0.009 299.876);
--popover-foreground: oklch(0.113 0.026 300.047);
--card: oklch(0.967 0.014 299.791);
--card-foreground: oklch(0.099 0.022 300.27);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.095 0.026 300.324);
--primary-foreground: oklch(0.801 0.088 298.155);
--secondary: oklch(0.836 0.025 299.541);
--secondary-foreground: oklch(0.307 0.035 298.081);
--accent: oklch(0.755 0.05 298.915);
--accent-foreground: oklch(0.227 0.032 297.554);
--destructive: oklch(0.557 0.228 29.155);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.095 0.026 300.324);
--chart-1: oklch(0.095 0.026 300.324);
--chart-2: oklch(0.836 0.025 299.541);
--chart-3: oklch(0.755 0.05 298.915);
--chart-4: oklch(0.862 0.021 299.636);
--chart-5: oklch(0.094 0.028 300.344);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.02 299.238);
--foreground: oklch(0.972 0.008 299.905);
--muted: oklch(0.149 0.016 19.095);
--muted-foreground: oklch(0.712 0.006 17.307);
--popover: oklch(0.132 0.02 299.238);
--popover-foreground: oklch(0.972 0.008 299.905);
--card: oklch(0.143 0.023 297.832);
--card-foreground: oklch(0.981 0.005 299.95);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.095 0.026 300.324);
--primary-foreground: oklch(0.801 0.088 298.155);
--secondary: oklch(0.227 0 164.055);
--secondary-foreground: oklch(0.773 0 180);
--accent: oklch(0.315 0.009 17.63);
--accent-foreground: oklch(0.841 0.007 17.292);
--destructive: oklch(0.586 0.24 29.162);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.095 0.026 300.324);
--chart-1: oklch(0.095 0.026 300.324);
--chart-2: oklch(0.227 0 164.055);
--chart-3: oklch(0.315 0.009 17.63);
--chart-4: oklch(0.259 0 167.471);
--chart-5: oklch(0.094 0.028 300.344);
}