Moody is a shadcn/ui theme built around a vivid cyan primary color (#83d4f1) with vivid orange accents (#f1a083). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#83d4f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010304black | #f5f8f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010304black | #f5f8f9whitesmoke |
| Primary | #83d4f1skyblue | #83d4f1skyblue |
| Primary foreground | #072e3cdarkslategray | #072e3cdarkslategray |
| Secondary | #f1a083darksalmon | #f1a083darksalmon |
| Secondary foreground | #3c1507black | #3c1507black |
| Muted | #e5e2e1gainsboro | #1e1b1ablack |
| Muted foreground | #6d5b54dimgray | #ab9892rosybrown |
| Accent | #f1a083darksalmon | #f1a083darksalmon |
| Accent foreground | #3c1507black | #3c1507black |
| Destructive | #75110amaroon | #dd2113crimson |
| Destructive foreground | #f9bdb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #83d4f1skyblue | #83d4f1skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 8.62:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.90:1 | AA |
Paste this into your globals.css to use Moody in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.095 0.013 214.796);
--muted: oklch(0.915 0.003 41.279);
--muted-foreground: oklch(0.487 0.027 40.989);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.095 0.013 214.796);
--card: oklch(0.992 0 161.565);
--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.828 0.089 223.293);
--primary-foreground: oklch(0.281 0.049 227.285);
--secondary: oklch(0.78 0.105 40.754);
--secondary-foreground: oklch(0.253 0.066 39.884);
--accent: oklch(0.78 0.105 40.754);
--accent-foreground: oklch(0.253 0.066 39.884);
--destructive: oklch(0.365 0.135 29.483);
--destructive-foreground: oklch(0.851 0.07 23.311);
--ring: oklch(0.828 0.089 223.293);
--chart-1: oklch(0.828 0.089 223.293);
--chart-2: oklch(0.78 0.105 40.754);
--chart-3: oklch(0.78 0.105 40.754);
--chart-4: oklch(0.803 0.093 40.809);
--chart-5: oklch(0.83 0.092 223.407);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.003 221.334);
--muted: oklch(0.226 0.004 41.168);
--muted-foreground: oklch(0.695 0.024 41.077);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.003 221.334);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.002 221.324);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.828 0.089 223.293);
--primary-foreground: oklch(0.281 0.049 227.285);
--secondary: oklch(0.78 0.105 40.754);
--secondary-foreground: oklch(0.253 0.066 39.884);
--accent: oklch(0.78 0.105 40.754);
--accent-foreground: oklch(0.253 0.066 39.884);
--destructive: oklch(0.574 0.22 29.698);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.828 0.089 223.293);
--chart-1: oklch(0.828 0.089 223.293);
--chart-2: oklch(0.78 0.105 40.754);
--chart-3: oklch(0.78 0.105 40.754);
--chart-4: oklch(0.803 0.093 40.809);
--chart-5: oklch(0.83 0.092 223.407);
}