Frozen is a shadcn/ui theme built around a violet primary color (#7746a0) with purple accents (#a0469b). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#7746a0) on a violet-tinted background (#0b050f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b050fblack |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #ffffffwhite | #0b050fblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #0b050fblack |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #7746a0rebeccapurple | #7746a0rebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4a46a0darkslateblue | #4a46a0darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8e7f3lavender | #0c0c18black |
| Muted foreground | #3d3d4ddarkslategray | #b3b2c2silver |
| Accent | #a0469bdarkorchid | #a0469bdarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a12202firebrick | #fb3d0eorangered |
| Destructive foreground | #fedfd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7746a0rebeccapurple | #7746a0rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 5.47:1 | AA |
| Destructive | 6.11:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 9.31:1 | AAA |
| Accent | 5.47:1 | AA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Frozen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.932 0.017 288.371);
--muted-foreground: oklch(0.366 0.028 287.205);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.493 0.144 307.321);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.449 0.141 281.349);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.542 0.159 329.453);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.462 0.166 33.515);
--destructive-foreground: oklch(0.927 0.037 34.314);
--ring: oklch(0.493 0.144 307.321);
--chart-1: oklch(0.493 0.144 307.321);
--chart-2: oklch(0.449 0.141 281.349);
--chart-3: oklch(0.542 0.159 329.453);
--chart-4: oklch(0.469 0.148 281.276);
--chart-5: oklch(0.49 0.154 307);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.026 310.313);
--foreground: oklch(0.983 0.003 310.409);
--muted: oklch(0.16 0.026 285.327);
--muted-foreground: oklch(0.769 0.023 288.135);
--popover: oklch(0.132 0.026 310.313);
--popover-foreground: oklch(0.983 0.003 310.409);
--card: oklch(0.132 0.026 310.313);
--card-foreground: oklch(0.983 0.003 310.409);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.493 0.144 307.321);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.449 0.141 281.349);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.542 0.159 329.453);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.231 33.46);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.493 0.144 307.321);
--chart-1: oklch(0.493 0.144 307.321);
--chart-2: oklch(0.449 0.141 281.349);
--chart-3: oklch(0.542 0.159 329.453);
--chart-4: oklch(0.469 0.148 281.276);
--chart-5: oklch(0.49 0.154 307);
}