Avalanche is a shadcn/ui theme built around a pink primary color (#cc3891) with blue accents (#3891cc). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#cc3891) on a neutral background (#080206).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #080206black |
| Foreground | #000000black | #faf4f8whitesmoke |
| Card | #fcf8fasnow | #080206black |
| Card foreground | #000000black | #faf4f8whitesmoke |
| Popover | #fcf8fasnow | #080206black |
| Popover foreground | #000000black | #faf4f8whitesmoke |
| Primary | #cc3891mediumvioletred | #cc3891mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #91cc38yellowgreen | #91cc38yellowgreen |
| Secondary foreground | #1f2d0cblack | #1f2d0cblack |
| Muted | #e7eddebeige | #1b2112black |
| Muted foreground | #424342darkslategray | #bdbdbcsilver |
| Accent | #3891ccsteelblue | #3891ccsteelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a01008darkred | #f32116red |
| Destructive foreground | #fddfddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cc3891mediumvioletred | #cc3891mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.32:1 | AAA |
| Accent | 3.45:1 | AA Large |
| Destructive | 6.52:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 4.62:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 3.45:1 | AA Large |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Avalanche in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 340.367);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.021 124.673);
--muted-foreground: oklch(0.382 0.002 124.432);
--popover: oklch(0.982 0.006 340.367);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.006 340.367);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.588 0.201 348.273);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.777 0.183 129.153);
--secondary-foreground: oklch(0.275 0.056 128.073);
--accent: oklch(0.63 0.122 241.805);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.449 0.176 29.42);
--destructive-foreground: oklch(0.927 0.034 21.381);
--ring: oklch(0.588 0.201 348.273);
--chart-1: oklch(0.588 0.201 348.273);
--chart-2: oklch(0.777 0.183 129.153);
--chart-3: oklch(0.63 0.122 241.805);
--chart-4: oklch(0.789 0.176 128.645);
--chart-5: oklch(0.591 0.209 348.691);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.022 340.38);
--foreground: oklch(0.974 0.008 340.412);
--muted: oklch(0.237 0.029 126.245);
--muted-foreground: oklch(0.799 0.002 124.379);
--popover: oklch(0.107 0.022 340.38);
--popover-foreground: oklch(0.974 0.008 340.412);
--card: oklch(0.107 0.022 340.38);
--card-foreground: oklch(0.974 0.008 340.412);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.588 0.201 348.273);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.777 0.183 129.153);
--secondary-foreground: oklch(0.275 0.056 128.073);
--accent: oklch(0.63 0.122 241.805);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.615 0.238 29.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.201 348.273);
--chart-1: oklch(0.588 0.201 348.273);
--chart-2: oklch(0.777 0.183 129.153);
--chart-3: oklch(0.63 0.122 241.805);
--chart-4: oklch(0.789 0.176 128.645);
--chart-5: oklch(0.591 0.209 348.691);
}