Impulse for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button7.81:1AAA
Secondary button8.06:1AAA
Muted text8.50:1AAA
Accent7.97:1AAA
Destructive6.80:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.81:1AAA
Secondary button8.06:1AAA
Muted text9.84:1AAA
Accent7.97:1AAA
Destructive4.38:1AA Large

CSS variables

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);
}