Developers Theme is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#464f59). The light mode uses a blue-tinted background (#24292e). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#24292e).
| Token | Light | Dark |
|---|---|---|
| Background | #24292edarkslategray | #24292edarkslategray |
| Foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Card | #1f2428darkslategray | #1f2428darkslategray |
| Card foreground | #e0e0e0gainsboro | #e0e0e0gainsboro |
| Popover | #1d2125black | #1d2125black |
| Popover foreground | #edededwhitesmoke | #edededwhitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2d3339darkslategray | #2d3339darkslategray |
| Muted foreground | #a9b3bcdarkgray | #a9b3bcdarkgray |
| Accent | #464f59darkslategray | #464f59darkslategray |
| Accent foreground | #e5e8eblavender | #e5e8eblavender |
| Destructive | #ff2d19orangered | #ff2d19orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #343637darkslategray | #343637darkslategray |
| Input | #3c3d3edarkslategray | #3c3d3edarkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.92:1 | AAA |
| Text on card | 11.88:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 3.72:1 | AA Large |
| Text on background | 9.92:1 | AAA |
| Text on card | 11.88:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Developers Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.277 0.011 248.24);
--foreground: oklch(0.869 0 165.964);
--muted: oklch(0.318 0.014 248.262);
--muted-foreground: oklch(0.761 0.017 248.048);
--popover: oklch(0.246 0.01 248.217);
--popover-foreground: oklch(0.947 0 180);
--card: oklch(0.257 0.01 248.226);
--card-foreground: oklch(0.908 0 180);
--border: oklch(0.33 0.002 247.898);
--input: oklch(0.36 0.003 247.9);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.423 0.02 248.298);
--accent-foreground: oklch(0.93 0.005 247.875);
--destructive: oklch(0.643 0.243 30.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.423 0.02 248.298);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.277 0.011 248.24);
--foreground: oklch(0.869 0 165.964);
--muted: oklch(0.318 0.014 248.262);
--muted-foreground: oklch(0.761 0.017 248.048);
--popover: oklch(0.246 0.01 248.217);
--popover-foreground: oklch(0.947 0 180);
--card: oklch(0.257 0.01 248.226);
--card-foreground: oklch(0.908 0 180);
--border: oklch(0.33 0.002 247.898);
--input: oklch(0.36 0.003 247.9);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.423 0.02 248.298);
--accent-foreground: oklch(0.93 0.005 247.875);
--destructive: oklch(0.643 0.243 30.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.423 0.02 248.298);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}