Moist is a shadcn/ui theme built around a muted deep green primary color (#2e3f2c) with muted light green accents (#e8eee8). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted deep green primary (#2e3f2c) on a green-tinted background (#050a05).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #050a05black |
| Foreground | #041103black | #fcfdfcwhite |
| Card | #f8fcf8mintcream | #050a05black |
| Card foreground | #041103black | #fcfdfcwhite |
| Popover | #f8fcf8mintcream | #050a05black |
| Popover foreground | #041103black | #fcfdfcwhite |
| Primary | #2e3f2cdarkslategray | #2e3f2cdarkslategray |
| Primary foreground | #c7d7c6lightgrey | #c7d7c6lightgrey |
| Secondary | #e8eee8linen | #243423darkslategray |
| Secondary foreground | #475e45darkolivegreen | #bad0b9silver |
| Muted | #ebf5eahoneydew | #0a150ablack |
| Muted foreground | #4b644adarkolivegreen | #9db59bdarkseagreen |
| Accent | #e8eee8linen | #243423darkslategray |
| Accent foreground | #475e45darkolivegreen | #bad0b9silver |
| Destructive | #8b2e09saddlebrown | #f26b36tomato |
| Destructive foreground | #fcd8cabisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2e3f2cdarkslategray | #2e3f2cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.66:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.01:1 | AA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.46:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.93:1 | AA |
Paste this into your globals.css to use Moist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 143.597);
--foreground: oklch(0.16 0.037 141.742);
--muted: oklch(0.96 0.019 143.533);
--muted-foreground: oklch(0.475 0.05 143.059);
--popover: oklch(0.987 0.007 143.597);
--popover-foreground: oklch(0.16 0.037 141.742);
--card: oklch(0.987 0.007 143.597);
--card-foreground: oklch(0.16 0.037 141.742);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.346 0.038 143.036);
--primary-foreground: oklch(0.862 0.028 143.464);
--secondary: oklch(0.942 0.01 143.579);
--secondary-foreground: oklch(0.455 0.048 143.064);
--accent: oklch(0.942 0.01 143.579);
--accent-foreground: oklch(0.455 0.048 143.064);
--destructive: oklch(0.435 0.134 38.534);
--destructive-foreground: oklch(0.909 0.044 42.77);
--ring: oklch(0.346 0.038 143.036);
--chart-1: oklch(0.346 0.038 143.036);
--chart-2: oklch(0.942 0.01 143.579);
--chart-3: oklch(0.942 0.01 143.579);
--chart-4: oklch(0.964 0.006 143.601);
--chart-5: oklch(0.349 0.045 142.939);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.016 142.639);
--foreground: oklch(0.993 0.002 143.627);
--muted: oklch(0.181 0.027 142.803);
--muted-foreground: oklch(0.748 0.045 143.31);
--popover: oklch(0.137 0.016 142.639);
--popover-foreground: oklch(0.993 0.002 143.627);
--card: oklch(0.137 0.016 142.639);
--card-foreground: oklch(0.993 0.002 143.627);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.346 0.038 143.036);
--primary-foreground: oklch(0.862 0.028 143.464);
--secondary: oklch(0.305 0.037 142.969);
--secondary-foreground: oklch(0.835 0.04 143.38);
--accent: oklch(0.305 0.037 142.969);
--accent-foreground: oklch(0.835 0.04 143.38);
--destructive: oklch(0.686 0.179 40.568);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.346 0.038 143.036);
--chart-1: oklch(0.346 0.038 143.036);
--chart-2: oklch(0.305 0.037 142.969);
--chart-3: oklch(0.305 0.037 142.969);
--chart-4: oklch(0.338 0.043 142.946);
--chart-5: oklch(0.349 0.045 142.939);
}