Moody is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#ece4e4). The light mode uses a neutral background (#fcf7f7). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0f0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7f7snow | #0f0505black |
| Foreground | #000000black | #f8f6f6whitesmoke |
| Card | #fcf7f7snow | #0f0505black |
| Card foreground | #000000black | #f8f6f6whitesmoke |
| Popover | #fcf7f7snow | #0f0505black |
| Popover foreground | #000000black | #f8f6f6whitesmoke |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #ece4e4linen | #2a2727darkslategray |
| Secondary foreground | #5e4040darkolivegreen | #c4bfbfsilver |
| Muted | #f6eaealinen | #150909black |
| Muted foreground | #443b3bdarkslategray | #c4bbbbsilver |
| Accent | #ece4e4linen | #2a2727darkslategray |
| Accent foreground | #5e4040darkolivegreen | #c4bfbfsilver |
| Destructive | #7f3005saddlebrown | #e6570aorangered |
| Destructive foreground | #fcd1bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 10.37:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Moody in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 17.246);
--foreground: oklch(0 0 0);
--muted: oklch(0.946 0.013 17.386);
--muted-foreground: oklch(0.363 0.012 17.742);
--popover: oklch(0.981 0.005 17.246);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 17.246);
--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 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.925 0.01 17.328);
--secondary-foreground: oklch(0.406 0.042 19.062);
--accent: oklch(0.925 0.01 17.328);
--accent-foreground: oklch(0.406 0.042 19.062);
--destructive: oklch(0.418 0.12 42.86);
--destructive-foreground: oklch(0.893 0.057 49.899);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.925 0.01 17.328);
--chart-3: oklch(0.925 0.01 17.328);
--chart-4: oklch(0.95 0.006 17.267);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.021 20.305);
--foreground: oklch(0.976 0.002 17.2);
--muted: oklch(0.159 0.021 19.699);
--muted-foreground: oklch(0.799 0.01 17.368);
--popover: oklch(0.133 0.021 20.305);
--popover-foreground: oklch(0.976 0.002 17.2);
--card: oklch(0.133 0.021 20.305);
--card-foreground: oklch(0.976 0.002 17.2);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.277 0.005 17.449);
--secondary-foreground: oklch(0.81 0.005 17.27);
--accent: oklch(0.277 0.005 17.449);
--accent-foreground: oklch(0.81 0.005 17.27);
--destructive: oklch(0.638 0.192 41.371);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.277 0.005 17.449);
--chart-3: oklch(0.277 0.005 17.449);
--chart-4: oklch(0.307 0.006 17.462);
--chart-5: oklch(0 0 0);
}