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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 2.09:1 | Fail |
| Secondary button | 4.69:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 4.69:1 | AA |
| Destructive | 6.81:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 2.09:1 | Fail |
| Secondary button | 4.69:1 | AA |
| Muted text | 8.27:1 | AAA |
| Accent | 4.69:1 | AA |
| Destructive | 7.03:1 | AAA |
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);
}