Improbable is a shadcn/ui theme built around a violet primary color (#472494) with purple accents (#7f2494). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#472494) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #080411black | #faf9fasnow |
| Card | #fcfcfcsnow | #040307black |
| Card foreground | #06030dblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #020204black |
| Popover foreground | #080411black | #faf9fasnow |
| Primary | #472494darkslateblue | #472494darkslateblue |
| Primary foreground | #f3effbwhitesmoke | #f3effbwhitesmoke |
| Secondary | #243894darkslateblue | #243894darkslateblue |
| Secondary foreground | #eff1fbaliceblue | #eff1fbaliceblue |
| Muted | #d2d5dflightgrey | #20222ddarkslategray |
| Muted foreground | #47484ddarkslategray | #b2b3b8darkgray |
| Accent | #7f2494rebeccapurple | #7f2494rebeccapurple |
| Accent foreground | #f9effblavenderblush | #f9effblavenderblush |
| Destructive | #6b110bmaroon | #da2316crimson |
| Destructive foreground | #f7b5b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #472494darkslateblue | #472494darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.77:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 7.26:1 | AAA |
| Destructive | 4.96: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.122 0.034 299.548);
--muted: oklch(0.873 0.015 275.94);
--muted-foreground: oklch(0.403 0.008 275.894);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.034 299.548);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.11 0.029 300.907);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.381 0.17 290.414);
--primary-foreground: oklch(0.957 0.017 300.474);
--secondary: oklch(0.387 0.152 268.48);
--secondary-foreground: oklch(0.959 0.014 275.975);
--accent: oklch(0.453 0.183 319.49);
--accent-foreground: oklch(0.962 0.02 320.01);
--destructive: oklch(0.343 0.124 29.341);
--destructive-foreground: oklch(0.833 0.078 23.496);
--ring: oklch(0.381 0.17 290.414);
--chart-1: oklch(0.381 0.17 290.414);
--chart-2: oklch(0.387 0.152 268.48);
--chart-3: oklch(0.453 0.183 319.49);
--chart-4: oklch(0.409 0.162 268.385);
--chart-5: oklch(0.379 0.176 289.642);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.011 301.01);
--foreground: oklch(0.984 0.002 300.742);
--muted: oklch(0.255 0.02 274.979);
--muted-foreground: oklch(0.768 0.007 276.047);
--popover: oklch(0.083 0.011 301.01);
--popover-foreground: oklch(0.984 0.002 300.742);
--card: oklch(0.105 0.014 301.01);
--card-foreground: oklch(0.992 0.001 300.755);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.381 0.17 290.414);
--primary-foreground: oklch(0.957 0.017 300.474);
--secondary: oklch(0.387 0.152 268.48);
--secondary-foreground: oklch(0.959 0.014 275.975);
--accent: oklch(0.453 0.183 319.49);
--accent-foreground: oklch(0.962 0.02 320.01);
--destructive: oklch(0.571 0.217 29.655);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.17 290.414);
--chart-1: oklch(0.381 0.17 290.414);
--chart-2: oklch(0.387 0.152 268.48);
--chart-3: oklch(0.453 0.183 319.49);
--chart-4: oklch(0.409 0.162 268.385);
--chart-5: oklch(0.379 0.176 289.642);
}