Best For
fullscreen hero / hero section / hero image
全屏英雄区布局
A hero section layout with fullscreen images or video backgrounds that captures attention through stunning visuals, ideal for brand showcases, product launches, and event promotions.
Best For
fullscreen hero / hero section / hero image
Primary Move
Use h-screen or min-h-screen to ensure fullscreen coverage
Watch Out
Do NOT place text directly on complex backgrounds without an overlay
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: Fullscreen Hero
style_slug: hero-fullscreen
style_source: /styles/hero-fullscreen
# 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
You are a frontend expert specializing in Fullscreen Hero layout. All generated code must strictly follow these constraints:
## Absolute Prohibitions
- Do NOT place text on busy backgrounds without overlay
- Do NOT use low-quality or stretched images
- Do NOT ignore mobile responsiveness
- Do NOT fill entire viewport with no breathing room
- Do NOT autoplay video with sound
## Must Follow
- Container: min-h-screen or h-screen
- Background: object-cover for images
- Overlay: gradient or solid for text readability
- Content: centered with max-width constraint
- Scroll indicator: at bottom of hero
- Navigation: absolute positioned, transparent
## Structure
Layers (bottom to top):
1. Background image/video (absolute, full cover)
2. Overlay (gradient or solid color)
3. Content (relative z-10, centered)
4. Navigation (absolute top)
5. Scroll indicator (absolute bottom)
## Background Options
Image:
- object-fit: cover
- Full viewport coverage
- High quality, relevant imagery
Video:
- Muted, autoplay, loop
- Fallback poster image
- Pause on mobile (optional)
Overlay types:
- Solid: bg-black/50
- Gradient: from-black/80 via-transparent to-black/30
- Color: bg-brand/70 mix-blend-multiply
## Content
- Badge/label (optional)
- Main headline (large, bold)
- Subheadline (medium)
- CTA buttons (prominent)
- Max-width container (4xl recommended)
## Responsive
Mobile:
- Smaller text sizes
- Stacked CTA buttons
- Simpler background (may hide video)
Desktop:
- Full visual impact
- Side-by-side buttons
- All animations enabled
## Animation & Interaction Rules
### Gravity Focus (CTA Button)
- Resting: shadow-[0_4px_14px_rgba(0,0,0,0.3)]
- Hover: hover:-translate-y-1 hover:shadow-[0_8px_28px_rgba(0,0,0,0.5)] -- gravity float with shadow burst
- Active: active:scale-[0.98] active:translate-y-0 active:shadow-[0_2px_8px_rgba(0,0,0,0.3)] -- tactile press
- Focus: focus:ring-2 focus:ring-white/80 focus:ring-offset-2 focus:ring-offset-black/50
### Floating Glass (Feature Cards)
- Always use group class on card container
- Hover: hover:-translate-y-2 hover:shadow-[0_16px_40px_rgba(0,0,0,0.5)] -- dramatic float
- Icon container: group-hover:scale-110 transition-transform duration-300 ease-out
### Text Reveal on Hover
- h3: group-hover:text-white/95 transition-colors duration-200
- p: group-hover:text-white/85 transition-colors duration-200
### Tactile Confirmation
- All buttons: active:scale-[0.98] -- required for perceived responsiveness on dark overlay
- Duration: 200ms ease-out for all interactive elements
## Self-Check
After generating code, verify:
1. Hero is full viewport height
2. Text is readable on background
3. Overlay provides contrast
4. Scroll indicator visible
5. Mobile layout works
## Absolute Bans (Match and Refuse)
If any of the following patterns appear, it is a style violation — rewrite without exception.
- place text directly on complex backgrounds without an overlay
- use low-quality or stretched images
- ignore mobile responsiveness
- fill the entire space with content and no whitespace
- autoplay video with sound
- omit active:scale-[0.98] on buttons (buttons without tactile confirmation feel terrible on fullscreen backgrounds)
- omit group class on cards (icon group-hover:scale-110 micro-interaction depends on group)
## 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 place text directly on complex backgrounds without an overlay
- [ ] do NOT use low-quality or stretched images
- [ ] do NOT ignore mobile responsiveness
- [ ] do NOT fill the entire space with content and no whitespace
- [ ] do NOT autoplay video with soundComponent Templates
全屏英雄区 CTA 按钮:重力浮起(hover:-translate-y-1)+ 阴影爆破,active:scale-[0.98] 触觉按压,focus 环在深色背景下可见
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
/* Fullscreen Hero Global Styles */
/* Base hero container */
.hero-fullscreen {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Background image/video */
.hero-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Video background */
.hero-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Overlay variations */
.hero-overlay {
position: absolute;
inset: 0;
}
.hero-overlay-dark {
background: rgba(0, 0, 0, 0.5);
}
.hero-overlay-gradient {
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.3) 0%,
transparent 50%,
rgba(0, 0, 0, 0.7) 100%
);
}
.hero-overlay-color {
background: rgba(99, 102, 241, 0.7);
mix-blend-mode: multiply;
}
/* Content container */
.hero-content {
position: relative;
z-index: 10;
text-align: center;
padding: 1rem;
max-width: 64rem;
}
/* Scroll indicator animation */
@keyframes hero-bounce {
0%, 100% {
transform: translateY(0) translateX(-50%);
}
50% {
transform: translateY(10px) translateX(-50%);
}
}
.hero-scroll-indicator {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
animation: hero-bounce 2s infinite;
}
/* Parallax effect */
.hero-parallax {
transform: translateZ(0);
will-change: transform;
}
/* Ken Burns effect for images */
@keyframes kenburns {
0% {
transform: scale(1);
}
100% {
transform: scale(1.1);
}
}
.hero-kenburns .hero-bg {
animation: kenburns 20s ease-out forwards;
}
.hero-fullscreen-filter { filter: brightness(1.05) contrast(1.02); }
.hero-fullscreen-focus { outline: 2px solid var(--hero-fullscreen-primary, currentColor); outline-offset: 2px; }
/* Additional techniques */
:root { --hero-fullscreen-radius: 0.75rem; --hero-fullscreen-transition: 0.3s ease; }
.hero-fullscreen-divider::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: 0.5rem; background: var(--hero-fullscreen-primary, currentColor); }
.hero-fullscreen-slant { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%); }
.hero-fullscreen-glass { backdrop-filter: blur(8px) saturate(150%); -webkit-backdrop-filter: blur(8px) saturate(150%); }Compatible Visual Styles
Fullscreen Hero is a layout pattern that can be paired with the following visual styles.
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
Fullscreen Hero is a layout approach centered on visual impact, using fullscreen images or video to create an immersive first impression.
WCAG 2.1 compliance analysis based on color contrast and typography readability.
Overall Score
Grade: C - Fair
Contrast Ratios
| Context | Colors | Ratio | AA | AAA |
|---|---|---|---|---|
| Text on background | /#ffffff / #000000 | 21:1 | ||
| Button primary | /#000000 / #ffffff | 21:1 | ||
| Text on accent 1 | /#ffffff / #ff6b6b | 2.78:1 | ||
| Text on accent 2 | /#ffffff / #4ecdc4 | 1.93:1 | ||
| Text on accent 3 | /#ffffff / #ffe66d | 1.25:1 | ||
| Text on accent 4 | /#ffffff / #6c5ce7 | 4.86:1 |
Readability
Score
83/100
Font Size
text-lg md:text-xl lg:text-2xl
Font Weight
font-bold leading-tight
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.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.