Mandate is a shadcn/ui theme built around a vivid cyan primary color (#03b5dd) with muted light cyan accents (#b5ced4). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the vivid cyan primary (#03b5dd) on a cyan-tinted background (#040a0c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfbghostwhite | #040a0cblack |
| Foreground | #020b0dblack | #ffffffwhite |
| Card | #f5f9faghostwhite | #050d0fblack |
| Card foreground | #020709black | #ffffffwhite |
| Popover | #f5f9faghostwhite | #050d0fblack |
| Popover foreground | #020709black | #ffffffwhite |
| Primary | #03b5dddarkturquoise | #03b5dddarkturquoise |
| Primary foreground | #001014black | #001014black |
| Secondary | #d2dddfgainsboro | #303536darkslategray |
| Secondary foreground | #35474bdarkslategray | #c9cecflightgrey |
| Muted | #ebf2f4whitesmoke | #0b1214black |
| Muted foreground | #3f484adarkslategray | #b5bec0silver |
| Accent | #b5ced4lightsteelblue | #394447darkslategray |
| Accent foreground | #203237darkslategray | #d5dbddgainsboro |
| Destructive | #d9320dorangered | #de330dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #03b5dddarkturquoise | #03b5dddarkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.76:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 9.98:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Mandate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 212.663);
--foreground: oklch(0.14 0.017 209.496);
--muted: oklch(0.958 0.008 212.669);
--muted-foreground: oklch(0.396 0.012 212.735);
--popover: oklch(0.979 0.004 212.664);
--popover-foreground: oklch(0.122 0.015 208.188);
--card: oklch(0.979 0.004 212.664);
--card-foreground: oklch(0.122 0.015 208.188);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.717 0.131 221.185);
--primary-foreground: oklch(0.161 0.027 211.23);
--secondary: oklch(0.89 0.012 212.678);
--secondary-foreground: oklch(0.383 0.023 212.954);
--accent: oklch(0.835 0.028 212.747);
--accent-foreground: oklch(0.305 0.025 213.229);
--destructive: oklch(0.578 0.207 32.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.131 221.185);
--chart-1: oklch(0.717 0.131 221.185);
--chart-2: oklch(0.89 0.012 212.678);
--chart-3: oklch(0.835 0.028 212.747);
--chart-4: oklch(0.912 0.01 212.672);
--chart-5: oklch(0.723 0.133 221.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.013 209.715);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.011 212.982);
--muted-foreground: oklch(0.794 0.01 212.677);
--popover: oklch(0.153 0.015 211.714);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.153 0.015 211.714);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.717 0.131 221.185);
--primary-foreground: oklch(0.161 0.027 211.23);
--secondary: oklch(0.324 0.006 212.69);
--secondary-foreground: oklch(0.847 0.005 212.666);
--accent: oklch(0.378 0.016 212.79);
--accent-foreground: oklch(0.888 0.008 212.67);
--destructive: oklch(0.588 0.211 32.964);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.717 0.131 221.185);
--chart-1: oklch(0.717 0.131 221.185);
--chart-2: oklch(0.324 0.006 212.69);
--chart-3: oklch(0.378 0.016 212.79);
--chart-4: oklch(0.354 0.007 212.692);
--chart-5: oklch(0.723 0.133 221.561);
}