Avalanche for shadcn/ui

Avalanche is a shadcn/ui theme built around a vivid green primary color (#01d00f) with vivid purple accents (#d001c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#01d00f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#041506black
#f9fbf9mintcream
Card
#ffffffwhite
#000000black
Card foreground
#041506black
#f9fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#041506black
#f9fbf9mintcream
Primary
#01d00flime
#01d00flime
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d001c2darkviolet
#d001c2darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5cde3gainsboro
#321a31darkslategray
Muted foreground
#493648darkslategray
#c9b6c8silver
Accent
#d001c2darkviolet
#d001c2darkviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#772a09saddlebrown
#f06f38tomato
Destructive foreground
#faccb8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#01d00flime
#01d00flime

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button2.09:1Fail
Secondary button4.69:1AA
Muted text7.42:1AAA
Accent4.69:1AA
Destructive6.81:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button2.09:1Fail
Secondary button4.69:1AA
Muted text8.27:1AAA
Accent4.69:1AA
Destructive7.03:1AAA

CSS variables

Paste this into your globals.css to use Avalanche in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.175 0.04 145.372);
  --muted: oklch(0.874 0.04 327.981);
  --muted-foreground: oklch(0.362 0.04 328.566);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.175 0.04 145.372);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.175 0.04 145.372);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.744 0.251 142.753);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.268 332.045);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.268 332.045);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.394 0.115 40.146);
  --destructive-foreground: oklch(0.879 0.059 44.428);
  --ring: oklch(0.744 0.251 142.753);
  --chart-1: oklch(0.744 0.251 142.753);
  --chart-2: oklch(0.594 0.268 332.045);
  --chart-3: oklch(0.594 0.268 332.045);
  --chart-4: oklch(0.626 0.282 332.061);
  --chart-5: oklch(0.752 0.254 142.732);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 147.516);
  --muted: oklch(0.261 0.052 329.345);
  --muted-foreground: oklch(0.797 0.033 327.941);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 147.516);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.003 147.516);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.744 0.251 142.753);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.594 0.268 332.045);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.268 332.045);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.688 0.173 41.98);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.744 0.251 142.753);
  --chart-1: oklch(0.744 0.251 142.753);
  --chart-2: oklch(0.594 0.268 332.045);
  --chart-3: oklch(0.594 0.268 332.045);
  --chart-4: oklch(0.626 0.282 332.061);
  --chart-5: oklch(0.752 0.254 142.732);
}