Diplomacy is a shadcn/ui theme built around a blue primary color (#9ab6d0) with muted light blue accents (#cad4dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#9ab6d0) on a blue-tinted background (#05080a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05080ablack |
| Foreground | #050d15black | #ffffffwhite |
| Card | #ffffffwhite | #05080ablack |
| Card foreground | #050d15black | #ffffffwhite |
| Popover | #ffffffwhite | #05080ablack |
| Popover foreground | #050d15black | #ffffffwhite |
| Primary | #9ab6d0lightsteelblue | #9ab6d0lightsteelblue |
| Primary foreground | #121c26black | #121c26black |
| Secondary | #dce1e4gainsboro | #2a2e32darkslategray |
| Secondary foreground | #3e4851darkslategray | #c2c7cbsilver |
| Muted | #f1f2f4whitesmoke | #0b0d0eblack |
| Muted foreground | #434a51darkslategray | #aeb5bcsilver |
| Accent | #cad4ddlightgrey | #3b454edarkslategray |
| Accent foreground | #2e3b48darkslategray | #d9dee2gainsboro |
| Destructive | #951b09darkred | #f4563etomato |
| Destructive foreground | #fcd9d4mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ab6d0lightsteelblue | #9ab6d0lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 7.19:1 | AAA |
| Destructive | 6.25:1 | AA |
Paste this into your globals.css to use Diplomacy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.022 244.638);
--muted: oklch(0.961 0.002 245.993);
--muted-foreground: oklch(0.406 0.014 246.36);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.022 244.638);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.022 244.638);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.764 0.049 246.703);
--primary-foreground: oklch(0.223 0.025 247.341);
--secondary: oklch(0.906 0.007 246.054);
--secondary-foreground: oklch(0.395 0.02 246.533);
--accent: oklch(0.865 0.017 246.187);
--accent-foreground: oklch(0.346 0.028 246.913);
--destructive: oklch(0.436 0.16 31.492);
--destructive-foreground: oklch(0.914 0.04 28.221);
--ring: oklch(0.764 0.049 246.703);
--chart-1: oklch(0.764 0.049 246.703);
--chart-2: oklch(0.906 0.007 246.054);
--chart-3: oklch(0.865 0.017 246.187);
--chart-4: oklch(0.93 0.005 246.03);
--chart-5: oklch(0.763 0.053 246.766);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.008 241.625);
--foreground: oklch(1 0 180);
--muted: oklch(0.157 0.003 246.215);
--muted-foreground: oklch(0.77 0.012 246.145);
--popover: oklch(0.13 0.008 241.625);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.13 0.008 241.625);
--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.764 0.049 246.703);
--primary-foreground: oklch(0.223 0.025 247.341);
--secondary: oklch(0.299 0.008 246.286);
--secondary-foreground: oklch(0.827 0.008 246.077);
--accent: oklch(0.386 0.021 246.573);
--accent-foreground: oklch(0.898 0.008 246.07);
--destructive: oklch(0.663 0.197 31.405);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.764 0.049 246.703);
--chart-1: oklch(0.764 0.049 246.703);
--chart-2: oklch(0.299 0.008 246.286);
--chart-3: oklch(0.386 0.021 246.573);
--chart-4: oklch(0.329 0.01 246.297);
--chart-5: oklch(0.763 0.053 246.766);
}