Space Mission is styled with Tailwind CSS v3, using a utility-first approach where almost every visual property — color, spacing, typography, animation — is expressed directly in JSX class names rather than in bespoke stylesheets. The project’s design language is encoded in aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/space-mission/llms.txt
Use this file to discover all available pages before exploring further.
tailwind.config.js file that extends Tailwind’s default theme with custom color tokens, font families, and a single custom animation. Everything else — the .hud-border component class, global base styles, and the Google Fonts import — lives in assets/main.css using Tailwind’s @layer directives.
Custom Color Tokens
Fivespace-* color tokens are added to the theme via theme.extend.colors. Placing them in extend rather than replacing the top-level colors key means all of Tailwind’s built-in palette (slate, indigo, rose, etc.) remains available alongside them.
| Token | Hex | Description |
|---|---|---|
space-navy | #020617 | Near-black primary background |
space-turquoise | #22d3ee | Electric cyan primary accent |
space-teal | #14b8a6 | Muted teal secondary accent |
space-white | #f1f5f9 | Slate-white for body text |
space-violet | #7c3aed | Deep violet for backend / Void Explorer accents |
bg-space-navy), text (text-space-turquoise), border (border-space-teal), and all opacity variants (bg-space-navy/80, border-space-turquoise/30, etc.).
Custom Font Families
Three font families override Tailwind’s defaultmono, sans, and serif stacks:
font-mono→Space Mono, monospace— used for nav labels, form labels, HUD status text, and<code>elements.font-serif→Fraunces, serif— applied globally to allh1–h6headings via a base layer rule.font-sans→Inter, sans-serif— set on<html>by Tailwind’s preflight, making it the default for all body text.
Custom Animation: animate-ping-slow
The animate-ping-slow utility drives the slow-pulsing glow rings used on status indicators and decorative orbital elements. It reuses Tailwind’s built-in @keyframes ping (scale up and fade out) but stretches the duration from the default 1 s to 3 s and uses a cubic-bezier(0, 0, 0.2, 1) easing for a more languid, atmospheric feel.
The keyframe definition compiled into assets/main.css:
The .hud-border Component Class
.hud-border is defined in assets/main.css inside a @layer components block, which means it can be overridden by Tailwind’s utility layer when needed. It bundles the four properties that make up the frosted-glass panel aesthetic used across cards and overlays:
@layer components, you can override any individual property with a utility class placed after it in the HTML — for example, hud-border bg-space-navy/95 will increase the panel opacity without touching the rest of the definition.
Full Inferred Config
The followingtailwind.config.js represents the complete configuration inferred from the compiled assets/main.css output:
Adding a New Color Token
To introduce a new color — say an amber accent for a new section — add it to thecolors.extend block and rebuild:
npm run build, you can use bg-space-amber, text-space-amber, border-space-amber/50, and every other variant just like the built-in tokens.
Adding a New Animation
To add a second slow animation — for example a gentle floating bob — extend theanimation and keyframes keys together:
animate-float in your JSX.
Tailwind’s content scanner detects class names by scanning source files as plain text. It will not find class names assembled from string concatenation at runtime — for example,
`bg-space-${color}` will never generate the corresponding CSS. Always write complete class names like bg-space-turquoise or bg-space-teal directly in your JSX, and run npm run build to regenerate assets/main.css after any change to the config or source files.