Starship Trooper Elephant 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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.56:1 | AAA |
| Primary button | 2.77:1 | Fail |
| Secondary button | 2.85:1 | Fail |
| Muted text | 6.69:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 16.72:1 | AAA |
| Text on card | 15.42:1 | AAA |
| Primary button | 3.54:1 | AA Large |
| Secondary button | 12.15:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Starship Trooper Elephant 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);
}