Interpreter for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button7.05:1AAA
Secondary button7.58:1AAA
Muted text7.80:1AAA
Accent7.58:1AAA
Destructive6.26:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button7.05:1AAA
Secondary button7.58:1AAA
Muted text9.40:1AAA
Accent7.58:1AAA
Destructive4.38:1AA Large

CSS variables

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);
}