Slushy is a shadcn/ui theme built around a deep blue primary color (#0d122b) with deep violet accents (#170d2b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0d122b) on a blue-tinted background (#050610).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050610black |
| Foreground | #050814black | #ffffffwhite |
| Card | #fcfcfcsnow | #060814black |
| Card foreground | #040610black | #ffffffwhite |
| Popover | #ffffffwhite | #050610black |
| Popover foreground | #050814black | #ffffffwhite |
| Primary | #0d122bblack | #0d122bblack |
| Primary foreground | #8f9bdcmediumpurple | #8f9bdcmediumpurple |
| Secondary | #0d212bblack | #0d212bblack |
| Secondary foreground | #8fc2dcskyblue | #8fc2dcskyblue |
| Muted | #d1dbe1gainsboro | #1e292edarkslategray |
| Muted foreground | #434546darkslategray | #b9bbbcsilver |
| Accent | #170d2bblack | #170d2bblack |
| Accent foreground | #a88fdcmediumpurple | #a88fdcmediumpurple |
| Destructive | #c9190dfirebrick | #eb1e0fred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d122bblack | #0d122bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 5.76:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 8.60:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Slushy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.138 0.029 271.384);
--muted: oklch(0.886 0.014 228.959);
--muted-foreground: oklch(0.39 0.003 228.848);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.138 0.029 271.384);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.127 0.024 270.757);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.194 0.049 272.523);
--primary-foreground: oklch(0.705 0.095 275.015);
--secondary: oklch(0.236 0.032 231.971);
--secondary-foreground: oklch(0.787 0.065 230.236);
--accent: oklch(0.193 0.057 295.997);
--accent-foreground: oklch(0.701 0.113 298.786);
--destructive: oklch(0.534 0.207 29.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.194 0.049 272.523);
--chart-1: oklch(0.194 0.049 272.523);
--chart-2: oklch(0.236 0.032 231.971);
--chart-3: oklch(0.193 0.057 295.997);
--chart-4: oklch(0.271 0.038 232.339);
--chart-5: oklch(0.193 0.052 272.151);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.023 271.411);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.018 229.837);
--muted-foreground: oklch(0.79 0.002 228.791);
--popover: oklch(0.128 0.023 271.411);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.026 272.057);
--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.194 0.049 272.523);
--primary-foreground: oklch(0.705 0.095 275.015);
--secondary: oklch(0.236 0.032 231.971);
--secondary-foreground: oklch(0.787 0.065 230.236);
--accent: oklch(0.193 0.057 295.997);
--accent-foreground: oklch(0.701 0.113 298.786);
--destructive: oklch(0.599 0.234 29.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.194 0.049 272.523);
--chart-1: oklch(0.194 0.049 272.523);
--chart-2: oklch(0.236 0.032 231.971);
--chart-3: oklch(0.193 0.057 295.997);
--chart-4: oklch(0.271 0.038 232.339);
--chart-5: oklch(0.193 0.052 272.151);
}