Slimy is a shadcn/ui theme built around a neutral gray primary color (#7d7878) with muted light red accents (#d7c1c1). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#7d7878) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #070303black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fdf7f7snow | #070303black |
| Card foreground | #040101black | #ffffffwhite |
| Popover | #fdf7f7snow | #070303black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #7d7878gray | #7d7878gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e0d7d7gainsboro | #1f1a1ablack |
| Secondary foreground | #4a3a3adarkslategray | #bcaeaedarkgray |
| Muted | #f3ededlinen | #120c0cblack |
| Muted foreground | #634b4bdimgray | #b49c9crosybrown |
| Accent | #d7c1c1silver | #2f2222darkslategray |
| Accent foreground | #3e2828darkslategray | #ccb8b8silver |
| Destructive | #832402maroon | #fc5c22tomato |
| Destructive foreground | #fecbb9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d7878gray | #7d7878gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 7.59:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 8.06:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Slimy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.252);
--foreground: oklch(0.083 0.013 20.215);
--muted: oklch(0.95 0.006 17.267);
--muted-foreground: oklch(0.437 0.033 18.502);
--popover: oklch(0.981 0.006 17.252);
--popover-foreground: oklch(0.083 0.013 20.215);
--card: oklch(0.981 0.006 17.252);
--card-foreground: oklch(0.083 0.013 20.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.577 0.006 17.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.886 0.009 17.335);
--secondary-foreground: oklch(0.367 0.023 18.229);
--accent: oklch(0.83 0.024 17.652);
--accent-foreground: oklch(0.304 0.032 19.11);
--destructive: oklch(0.408 0.135 37.067);
--destructive-foreground: oklch(0.882 0.063 40.928);
--ring: oklch(0.577 0.006 17.33);
--chart-1: oklch(0.577 0.006 17.33);
--chart-2: oklch(0.886 0.009 17.335);
--chart-3: oklch(0.83 0.024 17.652);
--chart-4: oklch(0.911 0.007 17.291);
--chart-5: oklch(0.571 0.015 17.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.014 19.708);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.01 18.23);
--muted-foreground: oklch(0.715 0.029 17.845);
--popover: oklch(0.106 0.014 19.708);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.106 0.014 19.708);
--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.577 0.006 17.33);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.222 0.008 17.771);
--secondary-foreground: oklch(0.763 0.015 17.494);
--accent: oklch(0.269 0.02 18.483);
--accent-foreground: oklch(0.799 0.022 17.63);
--destructive: oklch(0.68 0.205 38.143);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.577 0.006 17.33);
--chart-1: oklch(0.577 0.006 17.33);
--chart-2: oklch(0.222 0.008 17.771);
--chart-3: oklch(0.269 0.02 18.483);
--chart-4: oklch(0.253 0.01 17.823);
--chart-5: oklch(0.571 0.015 17.606);
}