Moist is a shadcn/ui theme built around a muted blue primary color (#4f5a82) with muted light blue accents (#bac1d9). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#4f5a82) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #000000black |
| Foreground | #030611black | #f5f6f9whitesmoke |
| Card | #f7f8fdghostwhite | #000000black |
| Card foreground | #030611black | #f5f6f9whitesmoke |
| Popover | #f7f8fdghostwhite | #000000black |
| Popover foreground | #030611black | #f5f6f9whitesmoke |
| Primary | #4f5a82darkslateblue | #4f5a82darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d1d5e0lightgrey | #27282bdarkslategray |
| Secondary foreground | #34394cdarkslategray | #bfc0c5silver |
| Muted | #e7e9eelavender | #111218black |
| Muted foreground | #494b50darkslategray | #afb1b6darkgray |
| Accent | #bac1d9lightsteelblue | #31343fdarkslategray |
| Accent foreground | #22283fdarkslategray | #cbced7lightgrey |
| Destructive | #8e210bdarkred | #ed3612orangered |
| Destructive foreground | #fbd7d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4f5a82darkslateblue | #4f5a82darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Moist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 273.801);
--foreground: oklch(0.126 0.027 265.727);
--muted: oklch(0.933 0.007 273.774);
--muted-foreground: oklch(0.412 0.008 273.634);
--popover: oklch(0.981 0.006 273.801);
--popover-foreground: oklch(0.126 0.027 265.727);
--card: oklch(0.981 0.006 273.801);
--card-foreground: oklch(0.126 0.027 265.727);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.476 0.065 271.881);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.873 0.016 273.651);
--secondary-foreground: oklch(0.347 0.034 272.524);
--accent: oklch(0.812 0.035 273.332);
--accent-foreground: oklch(0.284 0.042 271.718);
--destructive: oklch(0.427 0.148 32.806);
--destructive-foreground: oklch(0.908 0.042 31.205);
--ring: oklch(0.476 0.065 271.881);
--chart-1: oklch(0.476 0.065 271.881);
--chart-2: oklch(0.873 0.016 273.651);
--chart-3: oklch(0.812 0.035 273.332);
--chart-4: oklch(0.899 0.013 273.702);
--chart-5: oklch(0.472 0.073 271.551);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.004 273.818);
--muted: oklch(0.185 0.011 273.077);
--muted-foreground: oklch(0.76 0.007 273.761);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.004 273.818);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.004 273.818);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.476 0.065 271.881);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.276 0.006 273.609);
--secondary-foreground: oklch(0.808 0.007 273.769);
--accent: oklch(0.327 0.021 273.047);
--accent-foreground: oklch(0.851 0.013 273.685);
--destructive: oklch(0.618 0.222 32.511);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.476 0.065 271.881);
--chart-1: oklch(0.476 0.065 271.881);
--chart-2: oklch(0.276 0.006 273.609);
--chart-3: oklch(0.327 0.021 273.047);
--chart-4: oklch(0.306 0.007 273.598);
--chart-5: oklch(0.472 0.073 271.551);
}