Copilot Theme - Higher Contrast is a shadcn/ui theme built around a vivid light cyan primary color (#8adeff) with muted blue accents (#43515b). The light mode uses a blue-tinted background (#232a2f). Dark mode keeps the vivid light cyan primary (#8adeff) on a blue-tinted background (#232a2f).
| Token | Light | Dark |
|---|---|---|
| Background | #232a2fdarkslategray | #232a2fdarkslategray |
| Foreground | #939ca5darkgray | #939ca5darkgray |
| Card | #1e2529darkslategray | #1e2529darkslategray |
| Card foreground | #a0a9b0darkgray | #a0a9b0darkgray |
| Popover | #1c2226black | #1c2226black |
| Popover foreground | #aeb6bcsilver | #aeb6bcsilver |
| Primary | #8adefflightskyblue | #8adefflightskyblue |
| Primary foreground | #003e57darkslategray | #003e57darkslategray |
| Secondary | #2d4853darkslategray | #2d4853darkslategray |
| Secondary foreground | #cddee4gainsboro | #cddee4gainsboro |
| Muted | #2d3439darkslategray | #2d3439darkslategray |
| Muted foreground | #a9b4bcdarkgray | #a9b4bcdarkgray |
| Accent | #43515bdarkslategray | #43515bdarkslategray |
| Accent foreground | #e5e9eblavender | #e5e9eblavender |
| Destructive | #fb2d2dcrimson | #fb2d2dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #333638darkslategray | #333638darkslategray |
| Input | #3a3e40darkslategray | #3a3e40darkslategray |
| Ring | #8adefflightskyblue | #8adefflightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 5.23:1 | AA |
| Text on card | 6.52:1 | AA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 3.81:1 | AA Large |
| Text on background | 5.23:1 | AA |
| Text on card | 6.52:1 | AA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 6.69:1 | AA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Copilot Theme - Higher Contrast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.279 0.014 239.107);
--foreground: oklch(0.689 0.016 242.509);
--muted: oklch(0.32 0.013 238.983);
--muted-foreground: oklch(0.764 0.016 238.668);
--popover: oklch(0.248 0.012 239.063);
--popover-foreground: oklch(0.771 0.012 242.397);
--card: oklch(0.258 0.012 239.079);
--card-foreground: oklch(0.73 0.014 242.449);
--border: oklch(0.331 0.006 238.615);
--input: oklch(0.36 0.007 238.622);
--primary: oklch(0.858 0.094 225.28);
--primary-foreground: oklch(0.343 0.07 232.509);
--secondary: oklch(0.385 0.038 224.921);
--secondary-foreground: oklch(0.889 0.02 223.374);
--accent: oklch(0.427 0.024 239.223);
--accent-foreground: oklch(0.931 0.006 238.451);
--destructive: oklch(0.637 0.237 27.308);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.094 225.28);
--chart-1: oklch(0.858 0.094 225.28);
--chart-2: oklch(0.385 0.038 224.921);
--chart-3: oklch(0.427 0.024 239.223);
--chart-4: oklch(0.415 0.042 224.972);
--chart-5: oklch(0.86 0.096 225.376);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.279 0.014 239.107);
--foreground: oklch(0.689 0.016 242.509);
--muted: oklch(0.32 0.013 238.983);
--muted-foreground: oklch(0.764 0.016 238.668);
--popover: oklch(0.248 0.012 239.063);
--popover-foreground: oklch(0.771 0.012 242.397);
--card: oklch(0.258 0.012 239.079);
--card-foreground: oklch(0.73 0.014 242.449);
--border: oklch(0.331 0.006 238.615);
--input: oklch(0.36 0.007 238.622);
--primary: oklch(0.858 0.094 225.28);
--primary-foreground: oklch(0.343 0.07 232.509);
--secondary: oklch(0.385 0.038 224.921);
--secondary-foreground: oklch(0.889 0.02 223.374);
--accent: oklch(0.427 0.024 239.223);
--accent-foreground: oklch(0.931 0.006 238.451);
--destructive: oklch(0.637 0.237 27.308);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.094 225.28);
--chart-1: oklch(0.858 0.094 225.28);
--chart-2: oklch(0.385 0.038 224.921);
--chart-3: oklch(0.427 0.024 239.223);
--chart-4: oklch(0.415 0.042 224.972);
--chart-5: oklch(0.86 0.096 225.376);
}