Probability is a shadcn/ui theme built around a teal primary color (#5fb99b) with cyan accents (#5faab9). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#5fb99b) on a neutral background (#030806).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfbmintcream | #030806black |
| Foreground | #000000black | #f6f9f8whitesmoke |
| Card | #f3fcf9mintcream | #040b09black |
| Card foreground | #000000black | #f9fbfamintcream |
| Popover | #f3fcf9mintcream | #040b09black |
| Popover foreground | #000000black | #f9fbfamintcream |
| Primary | #5fb99bmediumaquamarine | #5fb99bmediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #5fb96emediumseagreen | #5fb96emediumseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6eae7lavender | #151915black |
| Muted foreground | #445a48darkslategray | #a5bba9darkgray |
| Accent | #5faab9cadetblue | #5faab9cadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #bb180cfirebrick | #f02314orangered |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5fb99bmediumaquamarine | #5fb99bmediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 8.90:1 | AAA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Probability in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 174.374);
--foreground: oklch(0 0 0);
--muted: oklch(0.934 0.007 150.717);
--muted-foreground: oklch(0.444 0.04 149.494);
--popover: oklch(0.983 0.011 174.264);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.011 174.264);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.722 0.098 169.537);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.711 0.138 147.658);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.696 0.077 212.01);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.506 0.196 29.731);
--destructive-foreground: oklch(0.99 0.004 22.265);
--ring: oklch(0.722 0.098 169.537);
--chart-1: oklch(0.722 0.098 169.537);
--chart-2: oklch(0.711 0.138 147.658);
--chart-3: oklch(0.696 0.077 212.01);
--chart-4: oklch(0.73 0.129 147.988);
--chart-5: oklch(0.729 0.104 169.156);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.013 174.801);
--foreground: oklch(0.979 0.004 174.483);
--muted: oklch(0.208 0.01 150.129);
--muted-foreground: oklch(0.77 0.036 150.171);
--popover: oklch(0.141 0.015 174.493);
--popover-foreground: oklch(0.986 0.002 174.518);
--card: oklch(0.141 0.015 174.493);
--card-foreground: oklch(0.986 0.002 174.518);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.722 0.098 169.537);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.711 0.138 147.658);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.696 0.077 212.01);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.611 0.236 29.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.722 0.098 169.537);
--chart-1: oklch(0.722 0.098 169.537);
--chart-2: oklch(0.711 0.138 147.658);
--chart-3: oklch(0.696 0.077 212.01);
--chart-4: oklch(0.73 0.129 147.988);
--chart-5: oklch(0.729 0.104 169.156);
}