Expectancy for shadcn/ui

Expectancy is a shadcn/ui theme built around a vivid teal primary color (#13956e) with muted light teal accents (#cbd8d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#13956e) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a09black
Foreground
#020e0ablack
#f9fbfamintcream
Card
#fcfcfcsnow
#070e0cblack
Card foreground
#010907black
#fcfdfdwhite
Popover
#fcfcfcsnow
#070e0cblack
Popover foreground
#010907black
#fcfdfdwhite
Primary
#13956eteal
#13956eteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dee3e1gainsboro
#1d201fblack
Secondary foreground
#424c49darkslategray
#b3bcb9silver
Muted
#eaf5f2whitesmoke
#0a1512black
Muted foreground
#546963dimgray
#96aba5darkgray
Accent
#cbd8d4lightgrey
#2f3c38darkslategray
Accent foreground
#30403bdarkslategray
#c9d4d1lightgrey
Destructive
#bb3302firebrick
#e33e02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13956eteal
#13956eteal

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.69:1AAA
Primary button3.78:1AA Large
Secondary button6.83:1AA
Muted text5.27:1AA
Accent7.41:1AAA
Destructive5.85:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.15:1AAA
Primary button3.78:1AA Large
Secondary button8.42:1AAA
Muted text7.68:1AAA
Accent7.57:1AAA
Destructive4.22:1AA Large

CSS variables

Paste this into your globals.css to use Expectancy in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.023 175.629);
  --muted: oklch(0.962 0.012 176.278);
  --muted-foreground: oklch(0.501 0.027 175.001);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.019 176.891);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.019 176.891);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.12 165.869);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.911 0.005 176.5);
  --secondary-foreground: oklch(0.408 0.014 175.64);
  --accent: oklch(0.87 0.015 176.155);
  --accent-foreground: oklch(0.356 0.022 174.724);
  --destructive: oklch(0.526 0.179 36.029);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.12 165.869);
  --chart-1: oklch(0.596 0.12 165.869);
  --chart-2: oklch(0.911 0.005 176.5);
  --chart-3: oklch(0.87 0.015 176.155);
  --chart-4: oklch(0.933 0.004 176.543);
  --chart-5: oklch(0.602 0.122 165.489);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 176.768);
  --foreground: oklch(0.986 0.002 176.604);
  --muted: oklch(0.183 0.018 173.441);
  --muted-foreground: oklch(0.723 0.025 175.625);
  --popover: oklch(0.154 0.013 174.986);
  --popover-foreground: oklch(0.993 0.001 176.631);
  --card: oklch(0.154 0.013 174.986);
  --card-foreground: oklch(0.993 0.001 176.631);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.596 0.12 165.869);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.241 0.006 175.94);
  --secondary-foreground: oklch(0.787 0.01 176.279);
  --accent: oklch(0.343 0.018 175.012);
  --accent-foreground: oklch(0.861 0.013 176.197);
  --destructive: oklch(0.607 0.209 35.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.12 165.869);
  --chart-1: oklch(0.596 0.12 165.869);
  --chart-2: oklch(0.241 0.006 175.94);
  --chart-3: oklch(0.343 0.018 175.012);
  --chart-4: oklch(0.274 0.007 175.893);
  --chart-5: oklch(0.602 0.122 165.489);
}