Interaction for shadcn/ui

Interaction is a shadcn/ui theme built around a muted deep blue primary color (#131416) with muted deep orange accents (#161513). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the muted deep blue primary (#131416) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#05090fblack
Foreground
#040910black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#05090fblack
Card foreground
#040910black
#fcfcfdwhite
Popover
#f7f9fdghostwhite
#05090fblack
Popover foreground
#040910black
#fcfcfdwhite
Primary
#131416black
#131416black
Primary foreground
#a7acb4darkgray
#a7acb4darkgray
Secondary
#161513black
#161513black
Secondary foreground
#b4afa7darkgray
#b4afa7darkgray
Muted
#e3e1degainsboro
#211f1cblack
Muted foreground
#5f5a54dimgray
#aba7a0darkgray
Accent
#161513black
#161513black
Accent foreground
#b4afa7darkgray
#b4afa7darkgray
Destructive
#901b0edarkred
#da2916firebrick
Destructive foreground
#fbd9d5mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#131416black
#131416black

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button8.07:1AAA
Secondary button8.38:1AAA
Muted text5.22:1AA
Accent8.38:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button8.07:1AAA
Secondary button8.38:1AAA
Muted text6.85:1AA
Accent8.38:1AAA
Destructive4.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 258.325);
  --foreground: oklch(0.137 0.019 252.559);
  --muted: oklch(0.91 0.005 78.297);
  --muted-foreground: oklch(0.471 0.012 78.214);
  --popover: oklch(0.983 0.005 258.325);
  --popover-foreground: oklch(0.137 0.019 252.559);
  --card: oklch(0.983 0.005 258.325);
  --card-foreground: oklch(0.137 0.019 252.559);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.191 0.004 258.359);
  --primary-foreground: oklch(0.743 0.013 258.35);
  --secondary: oklch(0.195 0.004 78.225);
  --secondary-foreground: oklch(0.755 0.013 78.252);
  --accent: oklch(0.195 0.004 78.225);
  --accent-foreground: oklch(0.755 0.013 78.252);
  --destructive: oklch(0.425 0.154 30.493);
  --destructive-foreground: oklch(0.912 0.038 25.386);
  --ring: oklch(0.191 0.004 258.359);
  --chart-1: oklch(0.191 0.004 258.359);
  --chart-2: oklch(0.195 0.004 78.225);
  --chart-3: oklch(0.195 0.004 78.225);
  --chart-4: oklch(0.23 0.006 78.21);
  --chart-5: oklch(0.19 0.006 258.367);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 254.108);
  --foreground: oklch(0.992 0.001 258.316);
  --muted: oklch(0.241 0.006 78.207);
  --muted-foreground: oklch(0.729 0.01 78.263);
  --popover: oklch(0.139 0.015 254.108);
  --popover-foreground: oklch(0.992 0.001 258.316);
  --card: oklch(0.139 0.015 254.108);
  --card-foreground: oklch(0.992 0.001 258.316);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.191 0.004 258.359);
  --primary-foreground: oklch(0.743 0.013 258.35);
  --secondary: oklch(0.195 0.004 78.225);
  --secondary-foreground: oklch(0.755 0.013 78.252);
  --accent: oklch(0.195 0.004 78.225);
  --accent-foreground: oklch(0.755 0.013 78.252);
  --destructive: oklch(0.575 0.213 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.004 258.359);
  --chart-1: oklch(0.191 0.004 258.359);
  --chart-2: oklch(0.195 0.004 78.225);
  --chart-3: oklch(0.195 0.004 78.225);
  --chart-4: oklch(0.23 0.006 78.21);
  --chart-5: oklch(0.19 0.006 258.367);
}