Frosty is a shadcn/ui theme built around a near-black primary color (#1b1819) with near-black accents (#181b1a). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the near-black primary (#1b1819) on a red-tinted background (#0c0405).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #0c0405black |
| Foreground | #040102black | #ffffffwhite |
| Card | #fcf3f5lavenderblush | #100507black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f8snow | #0c0405black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #1b1819black | #1b1819black |
| Primary foreground | #b7aeb0darkgray | #b7aeb0darkgray |
| Secondary | #181b1ablack | #181b1ablack |
| Secondary foreground | #aeb7b5darkgray | #aeb7b5darkgray |
| Muted | #d6e6e3gainsboro | #192926darkslategray |
| Muted foreground | #3b4e4adarkslategray | #b1c4c0silver |
| Accent | #181b1ablack | #181b1ablack |
| Accent foreground | #aeb7b5darkgray | #aeb7b5darkgray |
| Destructive | #871f0ddarkred | #ec5236tomato |
| Destructive foreground | #fad3ccbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b1819black | #1b1819black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 8.45:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Frosty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 2.24);
--foreground: oklch(0.083 0.015 2.2);
--muted: oklch(0.912 0.018 181.502);
--muted-foreground: oklch(0.408 0.025 180.241);
--popover: oklch(0.981 0.006 2.24);
--popover-foreground: oklch(0.083 0.015 2.2);
--card: oklch(0.972 0.009 2.33);
--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.213 0.005 2.706);
--primary-foreground: oklch(0.759 0.011 2.458);
--secondary: oklch(0.219 0.005 181.445);
--secondary-foreground: oklch(0.772 0.011 181.682);
--accent: oklch(0.219 0.005 181.445);
--accent-foreground: oklch(0.772 0.011 181.682);
--destructive: oklch(0.412 0.142 32.267);
--destructive-foreground: oklch(0.897 0.046 29.733);
--ring: oklch(0.213 0.005 2.706);
--chart-1: oklch(0.213 0.005 2.706);
--chart-2: oklch(0.219 0.005 181.445);
--chart-3: oklch(0.219 0.005 181.445);
--chart-4: oklch(0.252 0.006 181.39);
--chart-5: oklch(0.211 0.008 3.033);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.02 2.349);
--foreground: oklch(1 0 180);
--muted: oklch(0.267 0.023 179.35);
--muted-foreground: oklch(0.804 0.022 181.296);
--popover: oklch(0.121 0.02 2.349);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.134 0.023 3.483);
--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.213 0.005 2.706);
--primary-foreground: oklch(0.759 0.011 2.458);
--secondary: oklch(0.219 0.005 181.445);
--secondary-foreground: oklch(0.772 0.011 181.682);
--accent: oklch(0.219 0.005 181.445);
--accent-foreground: oklch(0.772 0.011 181.682);
--destructive: oklch(0.645 0.195 32.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.213 0.005 2.706);
--chart-1: oklch(0.213 0.005 2.706);
--chart-2: oklch(0.219 0.005 181.445);
--chart-3: oklch(0.219 0.005 181.445);
--chart-4: oklch(0.252 0.006 181.39);
--chart-5: oklch(0.211 0.008 3.033);
}