Impulse is a shadcn/ui theme built around a muted light green primary color (#c1d1c5) with muted light red accents (#d1c5c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#c1d1c5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020903black | #fcfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020903black | #fcfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020903black | #fcfdfcwhite |
| Primary | #c1d1c5silver | #c1d1c5silver |
| Primary foreground | #29382cdarkslategray | #29382cdarkslategray |
| Secondary | #c5c1d1silver | #c5c1d1silver |
| Secondary foreground | #2c2938darkslategray | #2c2938darkslategray |
| Muted | #edebf5lavender | #0c0a14black |
| Muted foreground | #434148darkslategray | #b8b7besilver |
| Accent | #d1c5c1silver | #d1c5c1silver |
| Accent foreground | #382c29darkslategray | #382c29darkslategray |
| Destructive | #960f0ddarkred | #eb211ecrimson |
| Destructive foreground | #fcdad9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1d1c5silver | #c1d1c5silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.81:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 9.84:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Impulse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.024 150.979);
--muted: oklch(0.944 0.013 295.32);
--muted-foreground: oklch(0.381 0.012 295.011);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.024 150.979);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.024 150.979);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.846 0.025 151.56);
--primary-foreground: oklch(0.323 0.028 150.611);
--secondary: oklch(0.82 0.023 295.071);
--secondary-foreground: oklch(0.291 0.026 293.862);
--accent: oklch(0.832 0.015 34.297);
--accent-foreground: oklch(0.306 0.018 34.358);
--destructive: oklch(0.43 0.167 28.517);
--destructive-foreground: oklch(0.916 0.038 19.017);
--ring: oklch(0.846 0.025 151.56);
--chart-1: oklch(0.846 0.025 151.56);
--chart-2: oklch(0.82 0.023 295.071);
--chart-3: oklch(0.832 0.015 34.297);
--chart-4: oklch(0.846 0.019 295.161);
--chart-5: oklch(0.848 0.03 151.471);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 151.97);
--muted: oklch(0.155 0.021 292.976);
--muted-foreground: oklch(0.782 0.01 295.349);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.002 151.97);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.002 151.97);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.846 0.025 151.56);
--primary-foreground: oklch(0.323 0.028 150.611);
--secondary: oklch(0.82 0.023 295.071);
--secondary-foreground: oklch(0.291 0.026 293.862);
--accent: oklch(0.832 0.015 34.297);
--accent-foreground: oklch(0.306 0.018 34.358);
--destructive: oklch(0.602 0.232 28.389);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.846 0.025 151.56);
--chart-1: oklch(0.846 0.025 151.56);
--chart-2: oklch(0.82 0.023 295.071);
--chart-3: oklch(0.832 0.015 34.297);
--chart-4: oklch(0.846 0.019 295.161);
--chart-5: oklch(0.848 0.03 151.471);
}