Probability for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.39:1AAA
Text on card20.09:1AAA
Primary button8.90:1AAA
Secondary button8.65:1AAA
Muted text6.17:1AA
Accent7.94:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.08:1AAA
Primary button8.90:1AAA
Secondary button8.65:1AAA
Muted text8.68:1AAA
Accent7.94:1AAA
Destructive4.23:1AA Large

CSS variables

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);
}