Impediment for shadcn/ui

Impediment is a shadcn/ui theme built around a teal primary color (#68dfd5) with muted light teal accents (#d2dbda). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#68dfd5) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a0ablack
Foreground
#020808black
#fcfdfdwhite
Card
#fcfcfcsnow
#070d0dblack
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#050a0ablack
Popover foreground
#020808black
#fcfdfdwhite
Primary
#68dfd5mediumturquoise
#68dfd5mediumturquoise
Primary foreground
#041110black
#041110black
Secondary
#eaebeblavender
#252727darkslategray
Secondary foreground
#505353darkslategray
#bec1c0silver
Muted
#d6dbdbgainsboro
#242928darkslategray
Muted foreground
#465352darkslategray
#acb9b8darkgray
Accent
#d2dbdagainsboro
#333d3cdarkslategray
Accent foreground
#364443darkslategray
#cdd5d5lightgrey
Destructive
#d61f0afirebrick
#f64f3ctomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#68dfd5mediumturquoise
#68dfd5mediumturquoise

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.13:1AAA
Primary button11.97:1AAA
Secondary button6.50:1AA
Muted text5.74:1AA
Accent7.18:1AAA
Destructive5.16:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.54:1AAA
Primary button11.97:1AAA
Secondary button8.27:1AAA
Muted text7.30:1AAA
Accent7.49:1AAA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.015 190.32);
  --muted: oklch(0.888 0.006 191.106);
  --muted-foreground: oklch(0.43 0.016 190.451);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.015 190.32);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.012 190.32);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.832 0.109 187.95);
  --primary-foreground: oklch(0.163 0.021 188.948);
  --secondary: oklch(0.939 0.001 191.229);
  --secondary-foreground: oklch(0.44 0.004 191.039);
  --accent: oklch(0.883 0.01 191.008);
  --accent-foreground: oklch(0.374 0.018 190.211);
  --destructive: oklch(0.561 0.216 30.422);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.109 187.95);
  --chart-1: oklch(0.832 0.109 187.95);
  --chart-2: oklch(0.939 0.001 191.229);
  --chart-3: oklch(0.883 0.01 191.008);
  --chart-4: oklch(0.962 0.001 191.237);
  --chart-5: oklch(0.838 0.112 187.828);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.009 190.688);
  --foreground: oklch(0.993 0.001 191.225);
  --muted: oklch(0.275 0.008 190.636);
  --muted-foreground: oklch(0.775 0.014 190.863);
  --popover: oklch(0.139 0.009 190.688);
  --popover-foreground: oklch(0.993 0.001 191.225);
  --card: oklch(0.154 0.011 189.969);
  --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.832 0.109 187.95);
  --primary-foreground: oklch(0.163 0.021 188.948);
  --secondary: oklch(0.271 0.002 191.069);
  --secondary-foreground: oklch(0.807 0.003 191.173);
  --accent: oklch(0.351 0.013 190.402);
  --accent-foreground: oklch(0.867 0.009 191.022);
  --destructive: oklch(0.658 0.206 29.884);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.832 0.109 187.95);
  --chart-1: oklch(0.832 0.109 187.95);
  --chart-2: oklch(0.271 0.002 191.069);
  --chart-3: oklch(0.351 0.013 190.402);
  --chart-4: oklch(0.303 0.003 191.061);
  --chart-5: oklch(0.838 0.112 187.828);
}