Marine Starship Trooper for shadcn/ui

Marine Starship Trooper is a shadcn/ui theme built around a teal primary color (#20b170) with teal accents (#20a9b1). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#379969) on a neutral background (#1c1c1c).

Color palette

TokenLightDark
Background
#fbfefdwhite
#1c1c1cblack
Foreground
#06140dblack
#fcfdfdwhite
Card
#fbfefdwhite
#232323black
Card foreground
#06140dblack
#fcfdfdwhite
Popover
#fbfefdwhite
#232323black
Popover foreground
#06140dblack
#fcfdfdwhite
Primary
#20b170mediumseagreen
#379969seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#20b128limegreen
#363636darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce5dcgainsboro
#1a231ablack
Muted foreground
#3f5040darkslategray
#afc0b0silver
Accent
#20a9b1lightseagreen
#4ba75emediumseagreen
Accent foreground
#010404black
#010404black
Destructive
#9c3802saddlebrown
#fb1818red
Destructive foreground
#ffffffwhite
#fcfcfcsnow
Border
#e5ebe8lavender
#1b221fblack
Input
#e5ebe8lavender
#1b221fblack
Ring
#20b170mediumseagreen
#20b170mediumseagreen

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.56:1AAA
Primary button2.77:1Fail
Secondary button2.85:1Fail
Muted text6.69:1AA
Accent7.25:1AAA
Destructive7.05:1AAA
Dark mode
Text on background16.72:1AAA
Text on card15.42:1AAA
Primary button3.54:1AA Large
Secondary button12.15:1AAA
Muted text8.44:1AAA
Accent6.84:1AA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 167.715);
  --foreground: oklch(0.174 0.025 164.022);
  --muted: oklch(0.912 0.015 146.882);
  --muted-foreground: oklch(0.411 0.034 146.223);
  --popover: oklch(0.994 0.004 167.715);
  --popover-foreground: oklch(0.174 0.025 164.022);
  --card: oklch(0.994 0.004 167.715);
  --card-foreground: oklch(0.174 0.025 164.022);
  --border: oklch(0.935 0.007 167.612);
  --input: oklch(0.935 0.007 167.612);
  --primary: oklch(0.672 0.151 157.344);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.662 0.208 143.238);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.672 0.108 200.547);
  --accent-foreground: oklch(0.1 0.013 198.441);
  --destructive: oklch(0.477 0.144 41.622);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.672 0.151 157.344);
  --chart-1: oklch(0.672 0.151 157.344);
  --chart-2: oklch(0.662 0.208 143.238);
  --chart-3: oklch(0.672 0.108 200.547);
  --chart-4: oklch(0.698 0.22 143.222);
  --chart-5: oklch(0.68 0.155 156.939);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.226 0 180);
  --foreground: oklch(0.993 0.002 167.756);
  --muted: oklch(0.245 0.021 146.203);
  --muted-foreground: oklch(0.791 0.029 146.685);
  --popover: oklch(0.256 0 180);
  --popover-foreground: oklch(0.993 0.002 167.756);
  --card: oklch(0.256 0 180);
  --card-foreground: oklch(0.993 0.002 167.756);
  --border: oklch(0.245 0.012 166.342);
  --input: oklch(0.245 0.012 166.342);
  --primary: oklch(0.613 0.117 158.452);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.331 0 180);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.654 0.138 148.369);
  --accent-foreground: oklch(0.1 0.013 198.441);
  --destructive: oklch(0.627 0.249 28.504);
  --destructive-foreground: oklch(0.992 0 173.66);
  --ring: oklch(0.672 0.151 157.344);
  --chart-1: oklch(0.613 0.117 158.452);
  --chart-2: oklch(0.331 0 180);
  --chart-3: oklch(0.654 0.138 148.369);
  --chart-4: oklch(0.361 0 180);
  --chart-5: oklch(0.62 0.123 158.014);
}