Distinct Starship Trooper for shadcn/ui

Distinct Starship Trooper is a shadcn/ui theme built around a vivid green primary color (#089b45) with light teal accents (#ebf9f2). The light mode uses a neutral background (#f5f5f5). Dark mode switches to a teal primary (#1b9864) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#f5f5f5whitesmoke
#06090eblack
Foreground
#020817black
#f8fafcghostwhite
Card
#ffffffwhite
#0c0e12black
Card foreground
#020817black
#f8fafcghostwhite
Popover
#ffffffwhite
#131520black
Popover foreground
#020817black
#f8fafcghostwhite
Primary
#089b45seagreen
#1b9864seagreen
Primary foreground
#fafaf9snow
#fafaf9snow
Secondary
#ffffffwhite
#f7fbfcghostwhite
Secondary foreground
#04954cseagreen
#0b8e57seagreen
Muted
#f1f5f9whitesmoke
#1e293bdarkslategray
Muted foreground
#64748bslategray
#94a3b8darkgray
Accent
#ebf9f2honeydew
#0a2924black
Accent foreground
#00663cdarkslategray
#70dbafmediumaquamarine
Destructive
#ef4444tomato
#f66355tomato
Destructive foreground
#ffffffwhite
#330000black
Border
#e2e8f0lavender
#14181fblack
Input
#e2e8f0lavender
#1e293bdarkslategray
Ring
#00cc66springgreen
#0bda95mediumspringgreen

Contrast

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

Light mode
Text on background18.31:1AAA
Text on card20.00:1AAA
Primary button3.47:1AA Large
Secondary button3.88:1AA Large
Muted text4.34:1AA Large
Accent6.54:1AA
Destructive3.76:1AA Large
Dark mode
Text on background19.08:1AAA
Text on card18.44:1AAA
Primary button3.52:1AA Large
Secondary button4.01:1AA Large
Muted text5.69:1AA
Accent9.19:1AAA
Destructive5.98:1AA

CSS variables

Paste this into your globals.css to use Distinct Starship Trooper in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.97 0 180);
  --foreground: oklch(0.137 0.036 258.526);
  --muted: oklch(0.968 0.007 247.895);
  --muted-foreground: oklch(0.555 0.041 257.44);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 258.526);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.137 0.036 258.526);
  --border: oklch(0.929 0.013 255.532);
  --input: oklch(0.929 0.013 255.532);
  --primary: oklch(0.603 0.166 149.471);
  --primary-foreground: oklch(0.985 0.001 117.851);
  --secondary: oklch(1 0 180);
  --secondary-foreground: oklch(0.588 0.153 152.283);
  --accent: oklch(0.971 0.017 164.665);
  --accent-foreground: oklch(0.449 0.107 156.736);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.74 0.197 151.371);
  --chart-1: oklch(0.603 0.166 149.471);
  --chart-2: oklch(1 0 180);
  --chart-3: oklch(0.971 0.017 164.665);
  --chart-4: oklch(1.023 0 180);
  --chart-5: oklch(0.61 0.17 149.195);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 263.87);
  --foreground: oklch(0.984 0.003 247.859);
  --muted: oklch(0.28 0.037 259.974);
  --muted-foreground: oklch(0.711 0.035 256.788);
  --popover: oklch(0.2 0.022 275.518);
  --popover-foreground: oklch(0.984 0.003 247.859);
  --card: oklch(0.164 0.01 267.247);
  --card-foreground: oklch(0.984 0.003 247.859);
  --border: oklch(0.209 0.014 260.184);
  --input: oklch(0.28 0.037 259.974);
  --primary: oklch(0.602 0.131 159.191);
  --primary-foreground: oklch(0.985 0.001 121.517);
  --secondary: oklch(0.985 0.004 228.807);
  --secondary-foreground: oklch(0.569 0.132 157.474);
  --accent: oklch(0.256 0.037 180.345);
  --accent-foreground: oklch(0.816 0.119 164.353);
  --destructive: oklch(0.684 0.183 28.042);
  --destructive-foreground: oklch(0.202 0.083 29.234);
  --ring: oklch(0.785 0.172 161.432);
  --chart-1: oklch(0.602 0.131 159.191);
  --chart-2: oklch(0.985 0.004 228.807);
  --chart-3: oklch(0.256 0.037 180.345);
  --chart-4: oklch(1.007 0.002 48.725);
  --chart-5: oklch(0.609 0.134 158.787);
}