Avalanche is a shadcn/ui theme built around a light blue primary color (#c7e4f4) with light blue accents (#c7cdf4). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the light blue primary (#c7e4f4) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #020303black |
| Foreground | #020c12black | #f8fafbghostwhite |
| Card | #f3f9fcaliceblue | #040607black |
| Card foreground | #02090eblack | #fcfdfdwhite |
| Popover | #f7fbfdghostwhite | #020303black |
| Popover foreground | #020c12black | #f8fafbghostwhite |
| Primary | #c7e4f4paleturquoise | #c7e4f4paleturquoise |
| Primary foreground | #165174darkslategray | #165174darkslategray |
| Secondary | #c7f4eepaleturquoise | #c7f4eepaleturquoise |
| Secondary foreground | #061e1bblack | #061e1bblack |
| Muted | #d1e6e3gainsboro | #192e2cdarkslategray |
| Muted foreground | #5e6867dimgray | #97a19fdarkgray |
| Accent | #c7cdf4lightblue | #c7cdf4lightblue |
| Accent foreground | #162374midnightblue | #162374midnightblue |
| Destructive | #d74b0fchocolate | #f16f37tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7e4f4paleturquoise | #c7e4f4paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 14.60:1 | AAA |
| Muted text | 4.41:1 | AA Large |
| Accent | 8.84:1 | AAA |
| Destructive | 4.29:1 | AA Large |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 14.60:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 8.84:1 | AAA |
| Destructive | 7.05:1 | AAA |
Paste this into your globals.css to use Avalanche in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 232.655);
--foreground: oklch(0.147 0.023 229.494);
--muted: oklch(0.908 0.023 187.117);
--muted-foreground: oklch(0.51 0.012 187.145);
--popover: oklch(0.985 0.005 232.655);
--popover-foreground: oklch(0.147 0.023 229.494);
--card: oklch(0.977 0.008 232.694);
--card-foreground: oklch(0.133 0.02 225.535);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.903 0.038 233.229);
--primary-foreground: oklch(0.416 0.082 239.179);
--secondary: oklch(0.935 0.047 186.47);
--secondary-foreground: oklch(0.215 0.031 183.399);
--accent: oklch(0.857 0.055 278.298);
--accent-foreground: oklch(0.307 0.138 269.133);
--destructive: oklch(0.599 0.186 38.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.903 0.038 233.229);
--chart-1: oklch(0.903 0.038 233.229);
--chart-2: oklch(0.935 0.047 186.47);
--chart-3: oklch(0.857 0.055 278.298);
--chart-4: oklch(0.95 0.036 186.783);
--chart-5: oklch(0.903 0.039 233.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.005 228.891);
--foreground: oklch(0.985 0.002 232.615);
--muted: oklch(0.284 0.028 185.031);
--muted-foreground: oklch(0.699 0.012 187.341);
--popover: oklch(0.092 0.005 228.891);
--popover-foreground: oklch(0.985 0.002 232.615);
--card: oklch(0.116 0.006 228.891);
--card-foreground: oklch(0.992 0.001 232.597);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.903 0.038 233.229);
--primary-foreground: oklch(0.416 0.082 239.179);
--secondary: oklch(0.935 0.047 186.47);
--secondary-foreground: oklch(0.215 0.031 183.399);
--accent: oklch(0.857 0.055 278.298);
--accent-foreground: oklch(0.307 0.138 269.133);
--destructive: oklch(0.689 0.175 41.904);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.903 0.038 233.229);
--chart-1: oklch(0.903 0.038 233.229);
--chart-2: oklch(0.935 0.047 186.47);
--chart-3: oklch(0.857 0.055 278.298);
--chart-4: oklch(0.95 0.036 186.783);
--chart-5: oklch(0.903 0.039 233.261);
}