Slushy is a shadcn/ui theme built around a deep teal primary color (#0c3725) with deep cyan accents (#0c3237). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the deep teal primary (#0c3725) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #030706black |
| Foreground | #03170fblack | #fcfdfdwhite |
| Card | #f4faf8mintcream | #040b08black |
| Card foreground | #02120cblack | #ffffffwhite |
| Popover | #f8fcfamintcream | #030706black |
| Popover foreground | #03170fblack | #fcfdfdwhite |
| Primary | #0c3725darkgreen | #0c3725darkgreen |
| Primary foreground | #39d597lightseagreen | #39d597lightseagreen |
| Secondary | #0c3710darkgreen | #0c3710darkgreen |
| Secondary foreground | #39d549limegreen | #39d549limegreen |
| Muted | #d7ead9gainsboro | #152817black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #0c3237darkslategray | #0c3237darkslategray |
| Accent foreground | #39c5d5mediumturquoise | #39c5d5mediumturquoise |
| Destructive | #993b06saddlebrown | #f66613chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c3725darkgreen | #0c3725darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.90:1 | AAA |
| Text on card | 18.21:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 4.75:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 5.68:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Slushy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 170.484);
--foreground: oklch(0.182 0.032 165.744);
--muted: oklch(0.918 0.029 148.229);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.987 0.005 170.484);
--popover-foreground: oklch(0.182 0.032 165.744);
--card: oklch(0.981 0.007 170.412);
--card-foreground: oklch(0.165 0.028 167.47);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.301 0.057 162.567);
--primary-foreground: oklch(0.779 0.156 161.476);
--secondary: oklch(0.296 0.08 144.728);
--secondary-foreground: oklch(0.766 0.222 144.329);
--accent: oklch(0.294 0.043 205.659);
--accent-foreground: oklch(0.759 0.117 206.063);
--destructive: oklch(0.477 0.137 43.421);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.301 0.057 162.567);
--chart-1: oklch(0.301 0.057 162.567);
--chart-2: oklch(0.296 0.08 144.728);
--chart-3: oklch(0.294 0.043 205.659);
--chart-4: oklch(0.338 0.094 144.558);
--chart-5: oklch(0.304 0.058 162.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.012 170.837);
--foreground: oklch(0.993 0.002 170.571);
--muted: oklch(0.254 0.039 146.677);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.122 0.012 170.837);
--popover-foreground: oklch(0.993 0.002 170.571);
--card: oklch(0.14 0.014 170.702);
--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.301 0.057 162.567);
--primary-foreground: oklch(0.779 0.156 161.476);
--secondary: oklch(0.296 0.08 144.728);
--secondary-foreground: oklch(0.766 0.222 144.329);
--accent: oklch(0.294 0.043 205.659);
--accent-foreground: oklch(0.759 0.117 206.063);
--destructive: oklch(0.684 0.194 43.624);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.301 0.057 162.567);
--chart-1: oklch(0.301 0.057 162.567);
--chart-2: oklch(0.296 0.08 144.728);
--chart-3: oklch(0.294 0.043 205.659);
--chart-4: oklch(0.338 0.094 144.558);
--chart-5: oklch(0.304 0.058 162.213);
}