Impish for shadcn/ui

Impish is a shadcn/ui theme built around a muted deep orange primary color (#181310) with muted deep violet accents (#131018). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted deep orange primary (#181310) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fcf9f8snow
#040201black
Foreground
#000000black
#f8f7f7whitesmoke
Card
#fcf9f8snow
#040201black
Card foreground
#000000black
#f8f7f7whitesmoke
Popover
#fcf9f8snow
#040201black
Popover foreground
#000000black
#f8f7f7whitesmoke
Primary
#181310black
#181310black
Primary foreground
#bea99ddarkgray
#bea99ddarkgray
Secondary
#101813black
#101813black
Secondary foreground
#9dbea9darkgray
#9dbea9darkgray
Muted
#d5e7dbgainsboro
#182a1fblack
Muted foreground
#394c40darkslategray
#b3c6basilver
Accent
#131018black
#131018black
Accent foreground
#a99dbedarkgray
#a99dbedarkgray
Destructive
#671c0amaroon
#ea481forangered
Destructive foreground
#f7baablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#181310black
#181310black

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button8.18:1AAA
Secondary button8.88:1AAA
Muted text7.12:1AAA
Accent7.38:1AAA
Destructive7.20:1AAA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button8.18:1AAA
Secondary button8.88:1AAA
Muted text8.41:1AAA
Accent7.38:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 52.536);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.024 158.128);
  --muted-foreground: oklch(0.395 0.031 156.913);
  --popover: oklch(0.985 0.003 52.536);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.003 52.536);
  --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.193 0.01 51.895);
  --primary-foreground: oklch(0.749 0.029 52.072);
  --secondary: oklch(0.201 0.016 156.866);
  --secondary-foreground: oklch(0.771 0.046 157.359);
  --accent: oklch(0.182 0.017 301.486);
  --accent-foreground: oklch(0.717 0.049 301.894);
  --destructive: oklch(0.346 0.11 34.683);
  --destructive-foreground: oklch(0.841 0.074 34.469);
  --ring: oklch(0.193 0.01 51.895);
  --chart-1: oklch(0.193 0.01 51.895);
  --chart-2: oklch(0.201 0.016 156.866);
  --chart-3: oklch(0.182 0.017 301.486);
  --chart-4: oklch(0.237 0.021 156.634);
  --chart-5: oklch(0.194 0.012 51.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.01 61.113);
  --foreground: oklch(0.977 0.001 52.562);
  --muted: oklch(0.266 0.032 155.752);
  --muted-foreground: oklch(0.809 0.026 158.006);
  --popover: oklch(0.092 0.01 61.113);
  --popover-foreground: oklch(0.977 0.001 52.562);
  --card: oklch(0.092 0.01 61.113);
  --card-foreground: oklch(0.977 0.001 52.562);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.193 0.01 51.895);
  --primary-foreground: oklch(0.749 0.029 52.072);
  --secondary: oklch(0.201 0.016 156.866);
  --secondary-foreground: oklch(0.771 0.046 157.359);
  --accent: oklch(0.182 0.017 301.486);
  --accent-foreground: oklch(0.717 0.049 301.894);
  --destructive: oklch(0.629 0.205 34.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.193 0.01 51.895);
  --chart-1: oklch(0.193 0.01 51.895);
  --chart-2: oklch(0.201 0.016 156.866);
  --chart-3: oklch(0.182 0.017 301.486);
  --chart-4: oklch(0.237 0.021 156.634);
  --chart-5: oklch(0.194 0.012 51.795);
}