Interpreter is a shadcn/ui theme built around an indigo primary color (#5a38d6) with green accents (#b4d638). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#5a38d6) on an indigo-tinted background (#070510).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070510black |
| Foreground | #090514black | #f6f5fawhitesmoke |
| Card | #ffffffwhite | #070510black |
| Card foreground | #090514black | #f6f5fawhitesmoke |
| Popover | #ffffffwhite | #070510black |
| Popover foreground | #090514black | #f6f5fawhitesmoke |
| Primary | #5a38d6slateblue | #5a38d6slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b4d638yellowgreen | #b4d638yellowgreen |
| Secondary foreground | #2e370bdarkgreen | #2e370bdarkgreen |
| Muted | #e4e5e1gainsboro | #1d1e1ablack |
| Muted foreground | #42443cdarkslategray | #c1c3bbsilver |
| Accent | #b4d638yellowgreen | #b4d638yellowgreen |
| Accent foreground | #2e370bdarkgreen | #2e370bdarkgreen |
| Destructive | #b4210efirebrick | #e82b11orangered |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a38d6slateblue | #5a38d6slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Interpreter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.034 293.033);
--muted: oklch(0.92 0.005 116.436);
--muted-foreground: oklch(0.381 0.013 116.944);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.134 0.034 293.033);
--card: oklch(1 0 180);
--card-foreground: oklch(0.134 0.034 293.033);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.487 0.225 284.233);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.824 0.18 121.358);
--secondary-foreground: oklch(0.318 0.065 120.837);
--accent: oklch(0.824 0.18 121.358);
--accent-foreground: oklch(0.318 0.065 120.837);
--destructive: oklch(0.499 0.185 30.985);
--destructive-foreground: oklch(0.98 0.008 26.498);
--ring: oklch(0.487 0.225 284.233);
--chart-1: oklch(0.487 0.225 284.233);
--chart-2: oklch(0.824 0.18 121.358);
--chart-3: oklch(0.824 0.18 121.358);
--chart-4: oklch(0.834 0.173 120.904);
--chart-5: oklch(0.484 0.233 283.396);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.028 294.47);
--foreground: oklch(0.972 0.007 296.2);
--muted: oklch(0.233 0.007 116.914);
--muted-foreground: oklch(0.814 0.011 116.569);
--popover: oklch(0.124 0.028 294.47);
--popover-foreground: oklch(0.972 0.007 296.2);
--card: oklch(0.124 0.028 294.47);
--card-foreground: oklch(0.972 0.007 296.2);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.487 0.225 284.233);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.824 0.18 121.358);
--secondary-foreground: oklch(0.318 0.065 120.837);
--accent: oklch(0.824 0.18 121.358);
--accent-foreground: oklch(0.318 0.065 120.837);
--destructive: oklch(0.601 0.225 30.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.487 0.225 284.233);
--chart-1: oklch(0.487 0.225 284.233);
--chart-2: oklch(0.824 0.18 121.358);
--chart-3: oklch(0.824 0.18 121.358);
--chart-4: oklch(0.834 0.173 120.904);
--chart-5: oklch(0.484 0.233 283.396);
}