Ischemia for shadcn/ui

Ischemia is a shadcn/ui theme built around a teal primary color (#7ae1dc) with muted light teal accents (#e0e5e5). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the teal primary (#7ae1dc) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#020303black
Foreground
#000000black
#f9fbfbghostwhite
Card
#fbfdfdwhite
#020303black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fbfdfdwhite
#020303black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#7ae1dcskyblue
#7ae1dcskyblue
Primary foreground
#082120black
#082120black
Secondary
#e0e5e5gainsboro
#1c2121black
Secondary foreground
#435150darkslategray
#b3bdbcsilver
Muted
#e7f4f3whitesmoke
#0b1818black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#e0e5e5gainsboro
#1c2121black
Accent foreground
#435150darkslategray
#b3bdbcsilver
Destructive
#890801darkred
#fe392ftomato
Destructive foreground
#ffc0bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ae1dcskyblue
#7ae1dcskyblue

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button10.89:1AAA
Secondary button6.54:1AA
Muted text6.20:1AA
Accent6.54:1AA
Destructive6.45:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button10.89:1AAA
Secondary button8.48:1AAA
Muted text7.42:1AAA
Accent8.48:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 193.565);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.014 193.318);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.994 0.002 193.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 193.565);
  --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.846 0.097 191.248);
  --primary-foreground: oklch(0.229 0.031 190.662);
  --secondary: oklch(0.919 0.005 193.49);
  --secondary-foreground: oklch(0.422 0.017 192.819);
  --accent: oklch(0.919 0.005 193.49);
  --accent-foreground: oklch(0.422 0.017 192.819);
  --destructive: oklch(0.399 0.159 29.999);
  --destructive-foreground: oklch(0.864 0.072 22.112);
  --ring: oklch(0.846 0.097 191.248);
  --chart-1: oklch(0.846 0.097 191.248);
  --chart-2: oklch(0.919 0.005 193.49);
  --chart-3: oklch(0.919 0.005 193.49);
  --chart-4: oklch(0.942 0.004 193.524);
  --chart-5: oklch(0.851 0.1 191.164);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.006 192.889);
  --foreground: oklch(0.987 0.003 193.553);
  --muted: oklch(0.199 0.019 191.713);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.096 0.006 192.889);
  --popover-foreground: oklch(0.987 0.003 193.553);
  --card: oklch(0.096 0.006 192.889);
  --card-foreground: oklch(0.987 0.003 193.553);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.097 191.248);
  --primary-foreground: oklch(0.229 0.031 190.662);
  --secondary: oklch(0.242 0.006 193.092);
  --secondary-foreground: oklch(0.789 0.011 193.329);
  --accent: oklch(0.242 0.006 193.092);
  --accent-foreground: oklch(0.789 0.011 193.329);
  --destructive: oklch(0.651 0.232 28.597);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.097 191.248);
  --chart-1: oklch(0.846 0.097 191.248);
  --chart-2: oklch(0.242 0.006 193.092);
  --chart-3: oklch(0.242 0.006 193.092);
  --chart-4: oklch(0.275 0.008 193.059);
  --chart-5: oklch(0.851 0.1 191.164);
}