Impish for shadcn/ui

Impish is a shadcn/ui theme built around a teal primary color (#1ec2c2) with blue accents (#1e70c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#1ec2c2) on a teal-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0bblack
Foreground
#010404black
#f8fcfcmintcream
Card
#ffffffwhite
#040b0bblack
Card foreground
#010404black
#f8fcfcmintcream
Popover
#ffffffwhite
#040b0bblack
Popover foreground
#010404black
#f8fcfcmintcream
Primary
#1ec2c2lightseagreen
#1ec2c2lightseagreen
Primary foreground
#031212black
#031212black
Secondary
#1ec270mediumseagreen
#1ec270mediumseagreen
Secondary foreground
#03120ablack
#03120ablack
Muted
#d5ddd9gainsboro
#222a26darkslategray
Muted foreground
#45594fdarkslategray
#a6bab0darkgray
Accent
#1e70c2steelblue
#1e70c2steelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a74811saddlebrown
#e36216chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1ec2c2lightseagreen
#1ec2c2lightseagreen

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button8.69:1AAA
Secondary button8.23:1AAA
Muted text5.42:1AA
Accent5.04:1AA
Destructive5.87:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button8.69:1AAA
Secondary button8.23:1AAA
Muted text7.16:1AAA
Accent5.04:1AA
Destructive6.02:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.013 195.251);
  --muted: oklch(0.89 0.011 164.825);
  --muted-foreground: oklch(0.445 0.03 163.21);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.013 195.251);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.101 0.013 195.251);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.739 0.122 194.841);
  --primary-foreground: oklch(0.166 0.023 195.175);
  --secondary: oklch(0.718 0.173 154.325);
  --secondary-foreground: oklch(0.163 0.028 162.507);
  --accent: oklch(0.542 0.148 252.74);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.519 0.14 44.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.122 194.841);
  --chart-1: oklch(0.739 0.122 194.841);
  --chart-2: oklch(0.718 0.173 154.325);
  --chart-3: oklch(0.542 0.148 252.74);
  --chart-4: oklch(0.754 0.182 154.258);
  --chart-5: oklch(0.749 0.124 194.826);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.012 195.867);
  --foreground: oklch(0.987 0.004 197.098);
  --muted: oklch(0.277 0.014 163.735);
  --muted-foreground: oklch(0.771 0.027 164.197);
  --popover: oklch(0.141 0.012 195.867);
  --popover-foreground: oklch(0.987 0.004 197.098);
  --card: oklch(0.141 0.012 195.867);
  --card-foreground: oklch(0.987 0.004 197.098);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.122 194.841);
  --primary-foreground: oklch(0.166 0.023 195.175);
  --secondary: oklch(0.718 0.173 154.325);
  --secondary-foreground: oklch(0.163 0.028 162.507);
  --accent: oklch(0.542 0.148 252.74);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.179 44.459);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.739 0.122 194.841);
  --chart-1: oklch(0.739 0.122 194.841);
  --chart-2: oklch(0.718 0.173 154.325);
  --chart-3: oklch(0.542 0.148 252.74);
  --chart-4: oklch(0.754 0.182 154.258);
  --chart-5: oklch(0.749 0.124 194.826);
}