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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 4.86:1 | AA |
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);
}