Moat is a shadcn/ui theme built around a deep indigo primary color (#0d0c4b) with deep green accents (#0c4b0d). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep indigo primary (#0d0c4b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #000000black |
| Foreground | #030312black | #f9f9fbghostwhite |
| Card | #fcfcfdwhite | #000000black |
| Card foreground | #030312black | #f9f9fbghostwhite |
| Popover | #fcfcfdwhite | #000000black |
| Popover foreground | #030312black | #f9f9fbghostwhite |
| Primary | #0d0c4bmidnightblue | #0d0c4bmidnightblue |
| Primary foreground | #9c9aefmediumpurple | #9c9aefmediumpurple |
| Secondary | #4b0d0cmaroon | #4b0d0cmaroon |
| Secondary foreground | #ef9c9adarksalmon | #ef9c9adarksalmon |
| Muted | #f2e4e3mistyrose | #1c0d0dblack |
| Muted foreground | #745858dimgray | #a78b8brosybrown |
| Accent | #0c4b0ddarkgreen | #0c4b0ddarkgreen |
| Accent foreground | #9aef9cpalegreen | #9aef9cpalegreen |
| Destructive | #620904maroon | #f51f14red |
| Destructive foreground | #fba29dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0c4bmidnightblue | #0d0c4bmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 6.02:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Moat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 287.131);
--foreground: oklch(0.109 0.04 278.887);
--muted: oklch(0.929 0.015 18.618);
--muted-foreground: oklch(0.49 0.037 19.633);
--popover: oklch(0.991 0.002 287.131);
--popover-foreground: oklch(0.109 0.04 278.887);
--card: oklch(0.991 0.002 287.131);
--card-foreground: oklch(0.109 0.04 278.887);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.215 0.11 272.907);
--primary-foreground: oklch(0.721 0.122 283.679);
--secondary: oklch(0.273 0.092 26.476);
--secondary-foreground: oklch(0.774 0.1 20.675);
--accent: oklch(0.36 0.11 143.039);
--accent-foreground: oklch(0.876 0.14 144.64);
--destructive: oklch(0.318 0.121 29.642);
--destructive-foreground: oklch(0.799 0.107 23.015);
--ring: oklch(0.215 0.11 272.907);
--chart-1: oklch(0.215 0.11 272.907);
--chart-2: oklch(0.273 0.092 26.476);
--chart-3: oklch(0.36 0.11 143.039);
--chart-4: oklch(0.303 0.104 26.788);
--chart-5: oklch(0.214 0.113 272.086);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.002 287.129);
--muted: oklch(0.182 0.024 20.773);
--muted-foreground: oklch(0.663 0.034 19.195);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.002 287.129);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.002 287.129);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.215 0.11 272.907);
--primary-foreground: oklch(0.721 0.122 283.679);
--secondary: oklch(0.273 0.092 26.476);
--secondary-foreground: oklch(0.774 0.1 20.675);
--accent: oklch(0.36 0.11 143.039);
--accent-foreground: oklch(0.876 0.14 144.64);
--destructive: oklch(0.619 0.241 29.399);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.215 0.11 272.907);
--chart-1: oklch(0.215 0.11 272.907);
--chart-2: oklch(0.273 0.092 26.476);
--chart-3: oklch(0.36 0.11 143.039);
--chart-4: oklch(0.303 0.104 26.788);
--chart-5: oklch(0.214 0.113 272.086);
}