Improbable is a shadcn/ui theme built around a blue primary color (#264d92) with muted light blue accents (#d0d5dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#264d92) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070ablack |
| Foreground | #020408black | #ffffffwhite |
| Card | #ffffffwhite | #05070ablack |
| Card foreground | #020408black | #ffffffwhite |
| Popover | #ffffffwhite | #05070ablack |
| Popover foreground | #020408black | #ffffffwhite |
| Primary | #264d92darkslateblue | #264d92darkslateblue |
| Primary foreground | #eff3fbaliceblue | #eff3fbaliceblue |
| Secondary | #e0e2e5gainsboro | #252a32darkslategray |
| Secondary foreground | #434851darkslategray | #bcc2cdsilver |
| Muted | #d4ddedgainsboro | #121b2bblack |
| Muted foreground | #414244darkslategray | #bbbcbesilver |
| Accent | #d0d5dclightgrey | #323e52darkslategray |
| Accent foreground | #343b46darkslategray | #d3d9e4gainsboro |
| Destructive | #c03711firebrick | #d33c12firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #264d92darkslateblue | #264d92darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 7.36:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Improbable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.013 254.067);
--muted: oklch(0.896 0.023 261.487);
--muted-foreground: oklch(0.379 0.003 261.511);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.013 254.067);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.013 254.067);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.431 0.122 260.523);
--primary-foreground: oklch(0.964 0.011 261.508);
--secondary: oklch(0.913 0.005 261.513);
--secondary-foreground: oklch(0.401 0.016 261.457);
--accent: oklch(0.871 0.012 261.506);
--accent-foreground: oklch(0.35 0.022 261.376);
--destructive: oklch(0.54 0.18 34.885);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.122 260.523);
--chart-1: oklch(0.431 0.122 260.523);
--chart-2: oklch(0.913 0.005 261.513);
--chart-3: oklch(0.871 0.012 261.506);
--chart-4: oklch(0.937 0.003 261.513);
--chart-5: oklch(0.431 0.128 260.521);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.009 257.156);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.033 260.978);
--muted-foreground: oklch(0.796 0.003 261.513);
--popover: oklch(0.127 0.009 257.156);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.009 257.156);
--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.431 0.122 260.523);
--primary-foreground: oklch(0.964 0.011 261.508);
--secondary: oklch(0.282 0.017 261.393);
--secondary-foreground: oklch(0.812 0.017 261.495);
--accent: oklch(0.362 0.038 261.192);
--accent-foreground: oklch(0.884 0.016 261.5);
--destructive: oklch(0.578 0.194 34.806);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.122 260.523);
--chart-1: oklch(0.431 0.122 260.523);
--chart-2: oklch(0.282 0.017 261.393);
--chart-3: oklch(0.362 0.038 261.192);
--chart-4: oklch(0.312 0.019 261.385);
--chart-5: oklch(0.431 0.128 260.521);
}