Boom is a shadcn/ui theme built around a deep violet primary color (#110c1d) with deep green accents (#181d0c). The light mode uses a neutral background (#f9f8fb). Dark mode keeps the deep violet primary (#110c1d) on a violet-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fbghostwhite | #06050ablack |
| Foreground | #05020dblack | #ffffffwhite |
| Card | #f9f8fbghostwhite | #06050ablack |
| Card foreground | #05020dblack | #ffffffwhite |
| Popover | #f9f8fbghostwhite | #06050ablack |
| Popover foreground | #05020dblack | #ffffffwhite |
| Primary | #110c1dblack | #110c1dblack |
| Primary foreground | #9f8dcemediumpurple | #9f8dcemediumpurple |
| Secondary | #181d0cblack | #181d0cblack |
| Secondary foreground | #90ab49yellowgreen | #90ab49yellowgreen |
| Muted | #e9e9e7linen | #171816black |
| Muted foreground | #434440darkslategray | #bebfbbsilver |
| Accent | #181d0cblack | #181d0cblack |
| Accent foreground | #90ab49yellowgreen | #90ab49yellowgreen |
| Destructive | #6e2b08saddlebrown | #f06b24chocolate |
| Destructive foreground | #f9c8aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110c1dblack | #110c1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.07:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 6.90:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 9.62:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Boom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 299.23);
--foreground: oklch(0.106 0.034 298.915);
--muted: oklch(0.933 0.003 119.362);
--muted-foreground: oklch(0.385 0.007 119.606);
--popover: oklch(0.982 0.004 299.23);
--popover-foreground: oklch(0.106 0.034 298.915);
--card: oklch(0.982 0.004 299.23);
--card-foreground: oklch(0.106 0.034 298.915);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.171 0.034 295.665);
--primary-foreground: oklch(0.684 0.096 296.791);
--secondary: oklch(0.219 0.03 121.852);
--secondary-foreground: oklch(0.701 0.129 122.981);
--accent: oklch(0.219 0.03 121.852);
--accent-foreground: oklch(0.701 0.129 122.981);
--destructive: oklch(0.38 0.104 43.893);
--destructive-foreground: oklch(0.87 0.066 49.762);
--ring: oklch(0.171 0.034 295.665);
--chart-1: oklch(0.171 0.034 295.665);
--chart-2: oklch(0.219 0.03 121.852);
--chart-3: oklch(0.219 0.03 121.852);
--chart-4: oklch(0.261 0.039 122.133);
--chart-5: oklch(0.169 0.036 295.32);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.015 299.325);
--foreground: oklch(1 0 180);
--muted: oklch(0.208 0.005 119.681);
--muted-foreground: oklch(0.802 0.006 119.425);
--popover: oklch(0.121 0.015 299.325);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.015 299.325);
--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.171 0.034 295.665);
--primary-foreground: oklch(0.684 0.096 296.791);
--secondary: oklch(0.219 0.03 121.852);
--secondary-foreground: oklch(0.701 0.129 122.981);
--accent: oklch(0.219 0.03 121.852);
--accent-foreground: oklch(0.701 0.129 122.981);
--destructive: oklch(0.681 0.181 44.393);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.171 0.034 295.665);
--chart-1: oklch(0.171 0.034 295.665);
--chart-2: oklch(0.219 0.03 121.852);
--chart-3: oklch(0.219 0.03 121.852);
--chart-4: oklch(0.261 0.039 122.133);
--chart-5: oklch(0.169 0.036 295.32);
}