Tram for shadcn/ui

Tram is a shadcn/ui theme built around a vivid green primary color (#73e859) with vivid purple accents (#ce59e8). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#73e859) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#030802black
Foreground
#071603black
#ffffffwhite
Card
#f4fcf2honeydew
#050c03black
Card foreground
#051203black
#ffffffwhite
Popover
#f4fcf2honeydew
#050c03black
Popover foreground
#051203black
#ffffffwhite
Primary
#73e859yellowgreen
#73e859yellowgreen
Primary foreground
#040d02black
#040d02black
Secondary
#ce59e8mediumorchid
#ce59e8mediumorchid
Secondary foreground
#0b020dblack
#0b020dblack
Muted
#f0e9f1whitesmoke
#140e16black
Muted foreground
#66526bdimgray
#a894addarkgray
Accent
#ce59e8mediumorchid
#ce59e8mediumorchid
Accent foreground
#0b020dblack
#0b020dblack
Destructive
#c51916firebrick
#ea4643tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73e859yellowgreen
#73e859yellowgreen

Contrast

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

Light mode
Text on background18.13:1AAA
Text on card18.37:1AAA
Primary button12.65:1AAA
Secondary button6.04:1AA
Muted text5.91:1AA
Accent6.04:1AA
Destructive5.94:1AA
Dark mode
Text on background20.19:1AAA
Text on card19.80:1AAA
Primary button12.65:1AAA
Secondary button6.04:1AA
Muted text6.79:1AA
Accent6.04:1AA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 139.981);
  --foreground: oklch(0.18 0.044 138.751);
  --muted: oklch(0.942 0.012 320.003);
  --muted-foreground: oklch(0.468 0.046 320.072);
  --popover: oklch(0.983 0.016 139.977);
  --popover-foreground: oklch(0.163 0.038 138.298);
  --card: oklch(0.983 0.016 139.977);
  --card-foreground: oklch(0.163 0.038 138.298);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.834 0.211 140.148);
  --primary-foreground: oklch(0.146 0.035 137.809);
  --secondary: oklch(0.668 0.226 319.863);
  --secondary-foreground: oklch(0.118 0.039 321.994);
  --accent: oklch(0.668 0.226 319.863);
  --accent-foreground: oklch(0.118 0.039 321.994);
  --destructive: oklch(0.527 0.204 28.457);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.211 140.148);
  --chart-1: oklch(0.834 0.211 140.148);
  --chart-2: oklch(0.668 0.226 319.863);
  --chart-3: oklch(0.668 0.226 319.863);
  --chart-4: oklch(0.69 0.21 319.965);
  --chart-5: oklch(0.84 0.217 140.182);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.022 138.232);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.019 320.078);
  --muted-foreground: oklch(0.693 0.042 320.045);
  --popover: oklch(0.142 0.026 138.299);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.142 0.026 138.299);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.834 0.211 140.148);
  --primary-foreground: oklch(0.146 0.035 137.809);
  --secondary: oklch(0.668 0.226 319.863);
  --secondary-foreground: oklch(0.118 0.039 321.994);
  --accent: oklch(0.668 0.226 319.863);
  --accent-foreground: oklch(0.118 0.039 321.994);
  --destructive: oklch(0.63 0.202 25.909);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.834 0.211 140.148);
  --chart-1: oklch(0.834 0.211 140.148);
  --chart-2: oklch(0.668 0.226 319.863);
  --chart-3: oklch(0.668 0.226 319.863);
  --chart-4: oklch(0.69 0.21 319.965);
  --chart-5: oklch(0.84 0.217 140.182);
}