Sniveling is a shadcn/ui theme built around a muted light green primary color (#edf3ec) with muted light purple accents (#f2ecf3). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted light green primary (#edf3ec) on a green-tinted background (#051004).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #051004black |
| Foreground | #041202black | #f6f9f6whitesmoke |
| Card | #fbfefbwhite | #051004black |
| Card foreground | #041202black | #f6f9f6whitesmoke |
| Popover | #fbfefbwhite | #051004black |
| Popover foreground | #041202black | #f6f9f6whitesmoke |
| Primary | #edf3ecwhitesmoke | #edf3ecwhitesmoke |
| Primary foreground | #1d2b1cblack | #1d2b1cblack |
| Secondary | #f2ecf3whitesmoke | #f2ecf3whitesmoke |
| Secondary foreground | #664469dimgray | #664469dimgray |
| Muted | #e4d6e5gainsboro | #281a29black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #f2ecf3whitesmoke | #f2ecf3whitesmoke |
| Accent foreground | #664469dimgray | #664469dimgray |
| Destructive | #d34f0dchocolate | #f37b3fcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edf3ecwhitesmoke | #edf3ecwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 13.16:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.21:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 4.28:1 | AA Large |
| Text on background | 18.26:1 | AAA |
| Text on card | 18.26:1 | AAA |
| Primary button | 13.16:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 8.84:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 7.71:1 | AAA |
Paste this into your globals.css to use Sniveling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 143.111);
--foreground: oklch(0.163 0.043 140.947);
--muted: oklch(0.892 0.025 323.265);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.994 0.005 143.111);
--popover-foreground: oklch(0.163 0.043 140.947);
--card: oklch(0.994 0.005 143.111);
--card-foreground: oklch(0.163 0.043 140.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.958 0.011 143.083);
--primary-foreground: oklch(0.272 0.033 142.555);
--secondary: oklch(0.951 0.011 323.186);
--secondary-foreground: oklch(0.44 0.071 323.819);
--accent: oklch(0.951 0.011 323.186);
--accent-foreground: oklch(0.44 0.071 323.819);
--destructive: oklch(0.599 0.179 41.049);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.958 0.011 143.083);
--chart-1: oklch(0.958 0.011 143.083);
--chart-2: oklch(0.951 0.011 323.186);
--chart-3: oklch(0.951 0.011 323.186);
--chart-4: oklch(0.976 0.005 323.159);
--chart-5: oklch(0.958 0.012 143.076);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.032 141.482);
--foreground: oklch(0.979 0.005 143.108);
--muted: oklch(0.24 0.035 323.755);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.158 0.032 141.482);
--popover-foreground: oklch(0.979 0.005 143.108);
--card: oklch(0.158 0.032 141.482);
--card-foreground: oklch(0.979 0.005 143.108);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.958 0.011 143.083);
--primary-foreground: oklch(0.272 0.033 142.555);
--secondary: oklch(0.951 0.011 323.186);
--secondary-foreground: oklch(0.44 0.071 323.819);
--accent: oklch(0.951 0.011 323.186);
--accent-foreground: oklch(0.44 0.071 323.819);
--destructive: oklch(0.711 0.164 45.109);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.958 0.011 143.083);
--chart-1: oklch(0.958 0.011 143.083);
--chart-2: oklch(0.951 0.011 323.186);
--chart-3: oklch(0.951 0.011 323.186);
--chart-4: oklch(0.976 0.005 323.159);
--chart-5: oklch(0.958 0.012 143.076);
}