Best For
fullscreen hero / hero section / hero image
全屏英雄区布局
Rate this styleA 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
design.md
One document describes the colour roles, type rules, spacing and component construction behind this style. Copy or download it into Claude Code or Codex.
A full viewport of image speaks first; the copy is only a caption on top of it.
Theme: dark
Fullscreen Hero hands the first viewport to an image or a video: 100vh, a full-bleed background, and a 30% to 50% black veil so text stays readable. The typography inverts the usual order — headline very large at 56 to 96px, subtitle short, exactly two actions, everything else pushed below the fold. Buttons invert (white fill, black text) so they break out of the dark veil. There is one visual flourish only: the CTA's gravity float, lifting 4px on hover while its shadow bursts to 28px, as if light were holding it up. The background may parallax at 0.3 to 0.5 as the page scrolls.
| Name | Value | Token | Role |
|---|---|---|---|
| White | #ffffff | --color-white | Primary button fill and headline text — above full-bleed imagery, white is the only reliable ground. |
| Black | #000000 | --color-black | Veil and button text. The veil sits on the image at 30% to 50% opacity. |
| Coral | #ff6b6b | --color-coral | Secondary emphasis and badges, for details that must break out of the image. |
| Cyan | #4ecdc4 | --color-cyan | Link and secondary button hover, pairing cool against warm imagery. |
| Yellow | #ffe66d | --color-yellow | Highlights and figures, only as small annotations. |
| Indigo | #6c5ce7 | --color-indigo | The brand tone, on the logo and one accent — never at equal area with coral or yellow. |
| Role | Family | Weight | Size | Line Height | Letter Spacing | Token |
|---|---|---|---|---|---|---|
| display | — | 700 | 96px | 0.98 | -0.035em | --text-display |
| heading-lg | — | 700 | 64px | 1.02 | -0.03em | --text-heading-lg |
| heading | — | 600 | 40px | 1.1 | -0.02em | --text-heading |
| subheading | — | 400 | 24px | 1.3 | — | --text-subheading |
| body-lg | — | 400 | 18px | 1.6 | — | --text-body-lg |
| body | — | 400 | 15px | 1.6 | — | --text-body |
| label | — | 600 | 13px | 1.4 | 0.08em | --text-label |
Base unit: 8px Density: airy
| Name | Value | Token |
|---|---|---|
| 8 | 8px | --spacing-8 |
| 16 | 16px | --spacing-16 |
| 24 | 24px | --spacing-24 |
| 32 | 32px | --spacing-32 |
| 48 | 48px | --spacing-48 |
| 64 | 64px | --spacing-64 |
| 96 | 96px | --spacing-96 |
| 128 | 128px | --spacing-128 |
| 192 | 192px | --spacing-192 |
| Element | Value |
|---|---|
| cards | 16px |
| buttons | 999px |
| inputs | 12px |
| media | 0 |
Role: Primary hero action
White fill, black text, fully rounded at 999px, no border. 18px type at weight 600, 16px 32px padding, shadow 0 4px 14px at 30% black. Hover takes the fill to 95%, lifts 4px and bursts the shadow to 0 8px 28px at 50%; press scales 0.98, drops the lift and pulls the shadow back to 8px. The focus ring is 80% white with a black offset. 200ms ease-out.
Role: Feature and stat cards inside the hero
10% white fill, 8px blur, a 1px white border at 20%, 16px radius, 32px padding. The icon tile is 48px square on a 20% white ground with a 12px radius. Hover raises the fill to 15%, the border to 30%, lifts 8px, applies a 0 16px 40px shadow at 50% black and scales the icon to 1.1. 300ms ease-out.
Role: Navigation over the hero
Fully transparent, no border, no shadow. 80px tall with 32px horizontal padding; wordmark and links are white, links at 13px/500 with 0.08em tracking and 32px gaps, fading to 70% white on hover. Past the first viewport it switches to a solid ground with a 1px bottom border at 10% white.
Role: Hero background image or video
100vh tall, full width, object-fit cover, square corners. A 40% black veil sits on top, reaching 55% at the top so the navigation stays legible. Parallax runs at 0.3 to 0.5. Video must be muted, looping and always carry a poster.
| Level | Name | Value | Purpose |
|---|---|---|---|
| 0 | Full-bleed media | image or video at 100vh | 首屏背景 |
| 1 | Veil | rgba(0,0,0,0.40) | 压在媒体上的遮罩 |
| 2 | Frosted panel | rgba(255,255,255,0.10) | 首屏内的特性卡 |
0 4px 14px rgba(0,0,0,0.30)0 8px 28px rgba(0,0,0,0.50)0 16px 40px rgba(0,0,0,0.50)Full-bleed photography or video is the entire content of this layout: landscape, product, event. The image needs clear light and dark zones for the copy to sit in, and nothing important in the corners. No illustration or pattern backgrounds.
The hero is 100vh with content centred or sitting at 60% height, capped at 1280px with 32px side padding. The headline runs two lines at most, the subtitle one, and the two buttons sit side by side. No more than three blocks live inside the hero. Sections below sit at least 160px apart.
QUICK COLOR REFERENCE:
#ffffffrgba(0,0,0,0.40)#ffffff#000000#ff6b6b#4ecdc4EXAMPLE COMPONENT PROMPTS:
:root {
/* Colors */
--color-white: #ffffff;
--color-black: #000000;
--color-coral: #ff6b6b;
--color-cyan: #4ecdc4;
--color-yellow: #ffe66d;
--color-indigo: #6c5ce7;
/* Typography — Font Families */
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
/* Typography — Scale */
--text-display: 96px;
--leading-display: 0.98;
--tracking-display: -0.035em;
--text-heading-lg: 64px;
--leading-heading-lg: 1.02;
--tracking-heading-lg: -0.03em;
--text-heading: 40px;
--leading-heading: 1.1;
--tracking-heading: -0.02em;
--text-subheading: 24px;
--leading-subheading: 1.3;
--text-body-lg: 18px;
--leading-body-lg: 1.6;
--text-body: 15px;
--leading-body: 1.6;
--text-label: 13px;
--leading-label: 1.4;
--tracking-label: 0.08em;
/* Typography — Weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* Spacing */
--spacing-unit: 8px;
--spacing-8: 8px;
--spacing-16: 16px;
--spacing-24: 24px;
--spacing-32: 32px;
--spacing-48: 48px;
--spacing-64: 64px;
--spacing-96: 96px;
--spacing-128: 128px;
--spacing-192: 192px;
/* Layout */
--page-max-width: 1280px;
--section-gap: 160px;
--card-padding: 32px;
--element-gap: 24px;
--density: airy;
/* Border Radius */
--radius-cards: 16px;
--radius-buttons: 999px;
--radius-inputs: 12px;
--radius-media: 0;
/* Surfaces */
--surface-full-bleed-media: image or video at 100vh;
--surface-veil: rgba(0,0,0,0.40);
--surface-frosted-panel: rgba(255,255,255,0.10);
}
Component Templates
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.
Related Styles
Explore these styles for ready-made tokens and components.
Fullscreen Hero and Acid Graphics sit closest to each other. The table below gives the real differences in color, use case, and tags, so the choice between them is made on facts.
| Attribute | Fullscreen Hero | Acid Graphics |
|---|---|---|
| Primary color | #ffffff | #39ff14 |
| Secondary color | #000000 | #0a0a0a |
| Best for | fullscreen hero / hero section / hero image | acid graphics / acid design / psychedelic design |
| Unique tags | — | high-contrast |
Fullscreen Hero is a layout approach centered on visual impact, using fullscreen images or video to create an immersive first impression.
Design Recipes
These curated recipes combine this style with layouts and animations, optimized for specific use cases.