Impressionable for shadcn/ui

Impressionable is a shadcn/ui theme built around a neutral gray primary color (#4a494b) with neutral gray accents (#4b494a). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the neutral gray primary (#4a494b) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#030104black
Foreground
#000000black
#fbf8fcghostwhite
Card
#f9f4fawhitesmoke
#060208black
Card foreground
#000000black
#fdfbfdsnow
Popover
#f9f4fawhitesmoke
#060208black
Popover foreground
#000000black
#fdfbfdsnow
Primary
#4a494bdarkslategray
#4a494bdarkslategray
Primary foreground
#e3e3e3gainsboro
#e3e3e3gainsboro
Secondary
#4a494bdarkslategray
#4a494bdarkslategray
Secondary foreground
#e3e3e3gainsboro
#e3e3e3gainsboro
Muted
#f1eff5whitesmoke
#0b0a10black
Muted foreground
#514d5bdarkslategray
#a7a4b2darkgray
Accent
#4b494adarkslategray
#4b494adarkslategray
Accent foreground
#e3e3e3gainsboro
#e3e3e3gainsboro
Destructive
#bd340afirebrick
#ed410corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a494bdarkslategray
#4a494bdarkslategray

Contrast

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

Light mode
Text on background19.92:1AAA
Text on card19.39:1AAA
Primary button6.95:1AA
Secondary button6.97:1AA
Muted text7.19:1AAA
Accent6.94:1AA
Destructive5.74:1AA
Dark mode
Text on background19.71:1AAA
Text on card19.94:1AAA
Primary button6.95:1AA
Secondary button6.97:1AA
Muted text8.07:1AAA
Accent6.94:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 317.176);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.008 296.937);
  --muted-foreground: oklch(0.43 0.022 296.138);
  --popover: oklch(0.973 0.009 317.168);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.009 317.168);
  --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.408 0.003 317.174);
  --primary-foreground: oklch(0.915 0.001 317.187);
  --secondary: oklch(0.407 0.002 296.97);
  --secondary-foreground: oklch(0.915 0.001 297.064);
  --accent: oklch(0.408 0.003 333.347);
  --accent-foreground: oklch(0.915 0.001 333.255);
  --destructive: oklch(0.53 0.18 35.136);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.003 317.174);
  --chart-1: oklch(0.408 0.003 317.174);
  --chart-2: oklch(0.407 0.002 296.97);
  --chart-3: oklch(0.408 0.003 333.347);
  --chart-4: oklch(0.435 0.003 296.968);
  --chart-5: oklch(0.404 0.011 317.126);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.017 318.929);
  --foreground: oklch(0.982 0.006 317.176);
  --muted: oklch(0.149 0.012 295.576);
  --muted-foreground: oklch(0.726 0.02 296.594);
  --popover: oklch(0.106 0.021 318.929);
  --popover-foreground: oklch(0.991 0.003 317.183);
  --card: oklch(0.106 0.021 318.929);
  --card-foreground: oklch(0.991 0.003 317.183);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.408 0.003 317.174);
  --primary-foreground: oklch(0.915 0.001 317.187);
  --secondary: oklch(0.407 0.002 296.97);
  --secondary-foreground: oklch(0.915 0.001 297.064);
  --accent: oklch(0.408 0.003 333.347);
  --accent-foreground: oklch(0.915 0.001 333.255);
  --destructive: oklch(0.627 0.215 34.878);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.003 317.174);
  --chart-1: oklch(0.408 0.003 317.174);
  --chart-2: oklch(0.407 0.002 296.97);
  --chart-3: oklch(0.408 0.003 333.347);
  --chart-4: oklch(0.435 0.003 296.968);
  --chart-5: oklch(0.404 0.011 317.126);
}