Best For
sci-fi HUD / HUD interface / heads-up display
科幻HUD
A holographic display interface inspired by starship cockpits and tactical command centers. Deep space backgrounds, cyan glowing borders, translucent glass panels, and radar sweep animations create an immersive experience of operating high-tech equipment.
Best For
sci-fi HUD / HUD interface / heads-up display
Primary Move
Use deep space backgrounds bg-[#020617] or bg-slate-950
Watch Out
Do not use light/white backgrounds
AI Implementation
Use the Hard Prompt by default to generate UI. Use the Design Spec to understand, modify, and review the style. Use the Creative Brief for early exploration.
Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.
When to use
How to use
STYLEKIT_STYLE_REFERENCE
style_name: Sci-Fi HUD
style_slug: sci-fi-hud
style_source: /styles/sci-fi-hud
# Hard Prompt
## When To Use
Use this when you want AI to generate code with strict style consistency. It is the safest default for production UI.
## How To Use
- Copy the full prompt into ChatGPT, Claude, Cursor, or another coding assistant.
- Append the concrete product/page requirement after the prompt.
- After generation, check the forbidden rules and interaction states before accepting the output.
Strictly follow the style rules below and maintain consistency. No style drift allowed.
## Requirements
- Prioritize style consistency first, then creative extension.
- When conflicts arise, treat prohibitions as the highest priority.
- Self-check before output: verify colors, typography, spacing, and interactions still match this style.
## Style Rules
STYLE: Sci-Fi HUD
TYPE: Futuristic command center interface
MUST USE:
- Deep space background: bg-[#020617] or bg-slate-950
- Semi-transparent panels: bg-slate-900/85 backdrop-blur-xl
- Cyan glow borders: border-cyan-500/30 shadow-[0_0_20px_rgba(6,182,212,0.5)]
- L-shaped corner decorations on important panels
- font-mono uppercase tracking-wider for labels
- Status indicators with pulse animation
- Scanline overlays for tech atmosphere
- Progress bars with gradient fill and glow
MUST AVOID:
- Light/white backgrounds
- Warm color schemes (except for warning/danger status)
- Regular shadows (shadow-md, shadow-lg)
- Serif fonts
- Cute/rounded design language
- Large border-radius (rounded-2xl+)
Animation & Interaction Rules:
- Tactical Lock: On hover, L-shaped corner brackets perform short lock displacement (duration-150).
- Data Overload: On hover, increase scanline visibility and glow intensity to simulate data overload.
- Holographic Pierce: Active state prioritizes bright inner glow feedback over gravity-style sinking.
- Terminal Blinking: Status lights and key indicators maintain pulse or flicker to sustain system-online feel.
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- use light/white backgrounds
- use warm tones (orange, pink, etc. -- warm colors only for warning states)
- use regular shadows shadow-md (must use glow shadows)
- use serif fonts
- use cute/rounded design language
- use large border-radius rounded-2xl+
- let panel interactions only deepen regular shadows (lacks system activation feel)
- let status lights remain static (HUD requires continuous pulse or flicker)
## Self-Check (Verify Before Shipping)
If any item fails, the style has drifted — fix before shipping.
- [ ] No purple-to-blue gradients
- [ ] No overused fonts (Inter, Roboto, Geist, Fraunces, Plus Jakarta Sans)
- [ ] No nested cards (cards inside cards)
- [ ] No gray text on colored backgrounds
- [ ] Body text contrast meets WCAG AA (>= 4.5:1)
- [ ] No bounce or elastic easing curves
- [ ] Animations have a prefers-reduced-motion fallback
- [ ] Body text line length capped at 65-75 characters
- [ ] No side-stripe accent borders (border-left/right > 1px)
- [ ] No gradient text (background-clip: text)
- [ ] No glassmorphism used as the default surface treatment
- [ ] No tiny uppercase tracked eyebrow labels above every section heading
- [ ] do not use light/white backgrounds
- [ ] do not use warm tones (orange, pink, etc. -- warm colors only for warning states)
- [ ] do not use regular shadows shadow-md (must use glow shadows)
- [ ] do not use serif fonts
- [ ] do not use cute/rounded design languageComponent Templates
半透明发光边框按钮,悬停增强辉光
Frontend Readiness
This layer tracks whether the style is ready for real websites: theme modes, state feedback, keyboard access, and performance constraints.
Overall
51%
Fallback
Dark Mode
0%
MissingUI States
79%
PartialMotion
70%
PartialA11y
70%
PartialPerformance
35%
FallbackButton
Default / Hover / Focus Visible / Active / Disabled
Input
Default / Hover / Focus Visible / Disabled / Error
Card
Default / Hover / Focus Visible / Loading / Skeleton
Form
Default / Focus Visible / Disabled / Loading / Error
FAQ
/* Sci-Fi HUD Global Styles */
@layer base {
body {
background-color: #020617;
color: #E5F2FF;
}
::selection {
background-color: rgba(6, 182, 212, 0.4);
color: #E5F2FF;
}
}
@keyframes hud-radar-sweep {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes hud-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(1.2); }
}
@keyframes hud-data-slide {
from { opacity: 0; transform: translateX(-10px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes hud-bar-shine {
from { left: -100%; }
to { left: 100%; }
}
/* Sci-Fi HUD Design Tokens */
:root {
--sci-fi-hud-primary: #06B6D4;
--sci-fi-hud-secondary: #020617;
--sci-fi-hud-accent: #0EA5E9;
--sci-fi-hud-glow: rgba(6, 182, 212, 0.3);
}
.sci-fi-hud-card {
position: relative;
overflow: hidden;
}
.sci-fi-hud-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.3s ease;
background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent);
pointer-events: none;
}
.sci-fi-hud-card:hover::before {
opacity: 1;
}
.sci-fi-hud-gradient {
background: linear-gradient(135deg, #06B6D4, #0EA5E9);
}
.sci-fi-hud-gradient-text {
background: linear-gradient(135deg, #06B6D4, #0EA5E9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sci-fi-hud-frosted {
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
background: rgba(6, 182, 212, 0.08);
}
.sci-fi-hud-accent-corner {
clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
}
.sci-fi-hud-animate-in {
animation: sci-fi-hud-fade-in 0.5s ease-out both;
}IDE Integration
Download configuration files for AI coding assistants to generate code in this style.
Style Pack
Get complete machine-readable style assets including design tokens, Tailwind presets, CSS variables, and shadcn/ui themes.
Metadata
Style metadata including version information
Design Tokens
Compatible with Figma / Style Dictionary / Tokens Studio
Tailwind Preset
Tailwind CSS theme preset, import directly in config
Global CSS
CSS variables and base styles
shadcn Theme
shadcn/ui theme configuration
CSS Variables
Pure CSS variables, works with any project
SKILL.md
Loadable skill pack for Cursor / Claude Code / VS Code
Sci-Fi HUD style draws from futuristic tech interfaces in movies and games, where "information IS the interface."
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: A - Excellent
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#E5F2FF / #020617 | 17.75:1 |
Readability
Score
72/100
Font Size
text-sm
Font Weight
font-bold font-mono
Line Height
default
Scoring is based on WCAG 2.1 standards. AA requires 4.5:1 contrast for normal text, 3:1 for large text; AAA requires 7:1 for normal text, 4.5:1 for large text.