Snack is a shadcn/ui theme built around a light teal primary color (#e9fcf6) with light pink accents (#fce9ee). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#e9fcf6) on a neutral background (#020403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #020403black |
| Foreground | #000000black | #f8fcfbmintcream |
| Card | #f7fdfbmintcream | #030706black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #fbfefdwhite | #020403black |
| Popover foreground | #000000black | #f8fcfbmintcream |
| Primary | #e9fcf6honeydew | #e9fcf6honeydew |
| Primary foreground | #0a4332darkslategray | #0a4332darkslategray |
| Secondary | #fce9eelavenderblush | #fce9eelavenderblush |
| Secondary foreground | #9c163ebrown | #9c163ebrown |
| Muted | #f3e8eblinen | #170c10black |
| Muted foreground | #473e40darkslategray | #c1b8bbsilver |
| Accent | #fce9eelavenderblush | #fce9eelavenderblush |
| Accent foreground | #9c163ebrown | #9c163ebrown |
| Destructive | #7b330asaddlebrown | #ec6618chocolate |
| Destructive foreground | #fad3bdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9fcf6honeydew | #e9fcf6honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.67:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 10.57:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 8.61:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 10.57:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 9.86:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Snack in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 176.572);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.013 357.047);
--muted-foreground: oklch(0.373 0.014 357.685);
--popover: oklch(0.994 0.003 176.572);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.006 176.485);
--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.975 0.021 176.007);
--primary-foreground: oklch(0.342 0.064 167.564);
--secondary: oklch(0.95 0.022 357.318);
--secondary-foreground: oklch(0.453 0.167 11.038);
--accent: oklch(0.95 0.022 357.318);
--accent-foreground: oklch(0.453 0.167 11.038);
--destructive: oklch(0.415 0.111 45.193);
--destructive-foreground: oklch(0.894 0.053 51.83);
--ring: oklch(0.975 0.021 176.007);
--chart-1: oklch(0.975 0.021 176.007);
--chart-2: oklch(0.95 0.022 357.318);
--chart-3: oklch(0.95 0.022 357.318);
--chart-4: oklch(0.98 0.009 356.913);
--chart-5: oklch(0.975 0.022 175.981);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 176.794);
--foreground: oklch(0.987 0.004 176.539);
--muted: oklch(0.173 0.02 359.842);
--muted-foreground: oklch(0.791 0.011 357.062);
--popover: oklch(0.097 0.009 176.794);
--popover-foreground: oklch(0.987 0.004 176.539);
--card: oklch(0.122 0.011 176.794);
--card-foreground: oklch(0.994 0.002 176.599);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.975 0.021 176.007);
--primary-foreground: oklch(0.342 0.064 167.564);
--secondary: oklch(0.95 0.022 357.318);
--secondary-foreground: oklch(0.453 0.167 11.038);
--accent: oklch(0.95 0.022 357.318);
--accent-foreground: oklch(0.453 0.167 11.038);
--destructive: oklch(0.668 0.184 44.46);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.975 0.021 176.007);
--chart-1: oklch(0.975 0.021 176.007);
--chart-2: oklch(0.95 0.022 357.318);
--chart-3: oklch(0.95 0.022 357.318);
--chart-4: oklch(0.98 0.009 356.913);
--chart-5: oklch(0.975 0.022 175.981);
}