Frosty is a shadcn/ui theme built around a vivid purple primary color (#fa61e1) with vivid green accents (#61fa7a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#fa61e1) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070306black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0a0509black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0a0509black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fa61e1orchid | #fa61e1orchid |
| Primary foreground | #280121black | #280121black |
| Secondary | #61fa7alightgreen | #61fa7alightgreen |
| Secondary foreground | #012808black | #012808black |
| Muted | #f0f5f1whitesmoke | #0a0f0bblack |
| Muted foreground | #4b4e4bdarkslategray | #b1b4b1darkgray |
| Accent | #61fa7alightgreen | #61fa7alightgreen |
| Accent foreground | #012808black | #012808black |
| Destructive | #a53709saddlebrown | #f57138tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fa61e1orchid | #fa61e1orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 11.82:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 11.82:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 11.82:1 | AAA |
| Muted text | 9.22:1 | AAA |
| Accent | 11.82:1 | AAA |
| Destructive | 7.27:1 | AAA |
Paste this into your globals.css to use Frosty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.019 331.892);
--muted: oklch(0.965 0.008 150.71);
--muted-foreground: oklch(0.42 0.006 150.633);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.73 0.232 334.825);
--primary-foreground: oklch(0.19 0.08 335.747);
--secondary: oklch(0.876 0.214 146.51);
--secondary-foreground: oklch(0.24 0.071 146.188);
--accent: oklch(0.876 0.214 146.51);
--accent-foreground: oklch(0.24 0.071 146.188);
--destructive: oklch(0.492 0.153 38.998);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.73 0.232 334.825);
--chart-1: oklch(0.73 0.232 334.825);
--chart-2: oklch(0.876 0.214 146.51);
--chart-3: oklch(0.876 0.214 146.51);
--chart-4: oklch(0.883 0.198 147.003);
--chart-5: oklch(0.731 0.238 334.931);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.014 331.46);
--foreground: oklch(0.992 0.002 330.855);
--muted: oklch(0.163 0.012 149.75);
--muted-foreground: oklch(0.767 0.005 150.733);
--popover: oklch(0.127 0.016 331.461);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.016 331.461);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.73 0.232 334.825);
--primary-foreground: oklch(0.19 0.08 335.747);
--secondary: oklch(0.876 0.214 146.51);
--secondary-foreground: oklch(0.24 0.071 146.188);
--accent: oklch(0.876 0.214 146.51);
--accent-foreground: oklch(0.24 0.071 146.188);
--destructive: oklch(0.697 0.176 41.942);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.73 0.232 334.825);
--chart-1: oklch(0.73 0.232 334.825);
--chart-2: oklch(0.876 0.214 146.51);
--chart-3: oklch(0.876 0.214 146.51);
--chart-4: oklch(0.883 0.198 147.003);
--chart-5: oklch(0.731 0.238 334.931);
}