Style Catalog/Fullscreen Hero

Fullscreen Hero

全屏英雄区布局

C
62/100Fair
Rate this style

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.

fullscreen herohero sectionhero imagevideo backgroundfullscreen background image100vhabove the foldimmersive landing pagebrand showcaseproduct launch page
View Full Showcase →
Templates

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

Copy the Hard Prompt first, then use the spec when needed

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.

Hard Prompt

Use this by default: copy it, append the concrete requirement, and let AI generate consistent production UI.

When to use

  • When AI should generate UI directly
  • When repeated outputs must stay consistent
  • When style drift is the main risk

How to use

  • Copy the full prompt
  • Append the concrete requirement
  • Review against forbidden rules and UI states
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

---

# Fullscreen Hero Design System

> 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.

## Design Philosophy

Fullscreen Hero is a layout approach centered on visual impact, using fullscreen images or video to create an immersive first impression.

Core principles:
- First impression: Capture visitors immediately with stunning visuals
- Brand expression: Convey brand identity through imagery
- Focus on essentials: Highlight the most important information and actions
- Emotional connection: Build emotional resonance through visuals

---

## Token Dictionary (exact class mapping)

### Border
```
Width: border-2
Color: border-white
Radius: rounded-full
```

### Shadow
```
sm: shadow-none
md: shadow-none
lg: shadow-none
hover: shadow-none
focus: focus:ring-2 focus:ring-white/50
```

### Interaction
```
Hover translate: (none)
Hover scale: (none)
Hover opacity: hover:opacity-90
Transition: transition-all duration-300
Active: active:scale-95
```

### Typefaces
```
Heading: font-bold leading-tight
Body: font-sans
Mono: font-mono
```

### Type scale
```
Hero: text-5xl md:text-7xl lg:text-8xl
H1: text-4xl md:text-6xl
H2: text-3xl md:text-5xl
H3: text-2xl md:text-3xl
Body: text-lg md:text-xl lg:text-2xl
Small: text-sm md:text-base
```

### Spacing
```
Section: py-0
Container: px-4 md:px-6 lg:px-8
Card: p-8 md:p-10
Gap sm: gap-3 md:gap-4
Gap md: gap-4 md:gap-6
Gap lg: gap-6 md:gap-10
```

### Color roles
```
Background primary: bg-black
Background secondary: bg-black/50
Background accent: bg-[#ff6b6b], bg-[#4ecdc4], bg-[#ffe66d], bg-[#6c5ce7]
Text primary: text-white
Text secondary: text-white/80
Text muted: text-white/60
Button primary: bg-white text-black
Button secondary: bg-transparent text-white border-2 border-white
```

---

## [FORBIDDEN]

These classes are banned in this style. Check for them before returning code:

### Banned classes
- `shadow-sm`
- `shadow-md`
- `shadow-lg`
- `shadow-xl`
- `bg-zinc-50`
- `bg-gray-50`
- `text-zinc-900`
- `text-gray-900`
- `border-gray-200`
- `border-zinc-200`

### Banned patterns
- matches `^shadow-(?!none)`
- matches `^bg-(?:zinc|gray)-(?:50|100)`
- matches `^border-(?:zinc|gray)-`

### Why they are banned
- `shadow-lg`: Hero Fullscreen uses overlays and contrast instead of shadows
- `bg-white`: Hero Fullscreen uses dark backgrounds with image/video overlays
- `text-black`: Hero Fullscreen uses white text on dark overlaid backgrounds

> WARNING: if your code contains any of the above, replace it before shipping.

---

## [REQUIRED]

### Every button must include
```
px-8 py-4
font-semibold text-lg
rounded-full
transition-colors
```

### Every card must include
```
bg-white/10 backdrop-blur-sm
rounded-2xl
border border-white/20
```

### Every input must include
```
bg-white/10 backdrop-blur-sm
border border-white/30
rounded-full
text-white placeholder-white/60
focus:outline-none focus:ring-2 focus:ring-white/50
```

---

## [COMPARE] Fullscreen Hero wrong vs right

The wrong examples below stand for generic library defaults that were never adapted to this style. Do not read them as visual suggestions.

### Button

[WRONG] **Wrong** (generic component library default, do not copy):
```html
<button class="{GENERIC_LIBRARY_BUTTON_DEFAULT}">
 Click me
</button>
```

[CORRECT] **Right** (uses this style's tokens):
```html
<button class="px-8 py-4 font-semibold text-lg rounded-full transition-colors bg-white text-black">
 Click me
</button>
```

### Card

[WRONG] **Wrong** (generic card, not adapted to this style):
```html
<div class="{GENERIC_LIBRARY_CARD_DEFAULT}">
 <h3>{TITLE}</h3>
</div>
```

[CORRECT] **Right** (uses this style's card tokens):
```html
<div class="bg-white/10 backdrop-blur-sm rounded-2xl border border-white/20 p-8 md:p-10">
 <h3 class="font-bold leading-tight text-2xl md:text-3xl">{TITLE}</h3>
</div>
```

### Input

[WRONG] **Wrong** (generic input, not adapted to this style):
```html
<input class="{GENERIC_LIBRARY_INPUT_DEFAULT}" />
```

[CORRECT] **Right** (uses this style's input tokens):
```html
<input class="bg-white/10 backdrop-blur-sm border border-white/30 rounded-full text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-white/50" placeholder="{PLACEHOLDER}" />
```

---

## [TEMPLATES] Fullscreen Hero page skeletons

These skeletons use this style's tokens only. Replace `{PLACEHOLDER}` values, but keep every token in place:

### Navigation
```html
<nav class="bg-black text-white border-2 border-white px-4 md:px-6 lg:px-8">
 <div class="flex items-center justify-between max-w-6xl mx-auto gap-4 md:gap-6">
 <a href="/" class="font-bold leading-tight text-2xl md:text-3xl">
 {LOGO_TEXT}
 </a>
 <div class="flex gap-4 md:gap-6 font-sans text-sm md:text-base">
 {NAV_LINKS}
 </div>
 </div>
</nav>
```

### Hero section
```html
<section class="bg-[#ff6b6b] text-white py-0 px-4 md:px-6 lg:px-8">
 <div class="max-w-4xl mx-auto">
 <h1 class="font-bold leading-tight text-5xl md:text-7xl lg:text-8xl">
 {HEADLINE}
 </h1>
 <p class="font-sans text-lg md:text-xl lg:text-2xl max-w-xl">
 {SUBHEADLINE}
 </p>
 <button class="px-8 py-4 font-semibold text-lg rounded-full transition-colors bg-white text-black">
 {CTA_TEXT}
 </button>
 </div>
</section>
```

### Card grid
```html
<section class="bg-black text-white py-0 px-4 md:px-6 lg:px-8">
 <div class="max-w-6xl mx-auto">
 <h2 class="font-bold leading-tight text-3xl md:text-5xl">{SECTION_TITLE}</h2>
 <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6">
 <!-- Card template - repeat for each card -->
 <div class="bg-white/10 backdrop-blur-sm rounded-2xl border border-white/20 p-8 md:p-10">
 <h3 class="font-bold leading-tight text-2xl md:text-3xl">{CARD_TITLE}</h3>
 <p class="font-sans text-lg md:text-xl lg:text-2xl text-white/60">{CARD_DESCRIPTION}</p>
 </div>
 </div>
 </div>
</section>
```

### Form input
```html
<input class="bg-white/10 backdrop-blur-sm border border-white/30 rounded-full text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-white/50" placeholder="{PLACEHOLDER}" />
```

### Footer
```html
<footer class="bg-black/50 text-white/80 py-0 px-4 md:px-6 lg:px-8">
 <div class="max-w-6xl mx-auto">
 <div class="grid grid-cols-1 md:grid-cols-3 gap-6 md:gap-10">
 <div>
 <span class="font-bold leading-tight text-2xl md:text-3xl">{LOGO_TEXT}</span>
 <p class="font-sans text-sm md:text-base">{TAGLINE}</p>
 </div>
 <div>
 <h4 class="font-bold leading-tight text-2xl md:text-3xl">{COLUMN_TITLE}</h4>
 <ul class="font-sans text-sm md:text-base">
 {FOOTER_LINKS}
 </ul>
 </div>
 </div>
 </div>
</footer>
```

---

## [CHECKLIST] Fullscreen Hero post-generation self check

**Before returning code, verify every token and rule below. Fix any violation before delivering:**

### Token check
- [ ] Button includes: `px-8 py-4 font-semibold text-lg rounded-full transition-colors`
- [ ] Card includes: `bg-white/10 backdrop-blur-sm rounded-2xl border border-white/20`
- [ ] Input includes: `bg-white/10 backdrop-blur-sm border border-white/30 rounded-full text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-white/50`

### Forbidden check
- [ ] Not using `shadow-sm`
- [ ] Not using `shadow-md`
- [ ] Not using `shadow-lg`
- [ ] Not using `shadow-xl`
- [ ] Not using `bg-zinc-50`
- [ ] Not using `bg-gray-50`
- [ ] Not using `text-zinc-900`
- [ ] Not using `text-gray-900`

### Style rule check
- [ ] Use h-screen or min-h-screen to ensure fullscreen coverage
- [ ] Use object-cover on images to maintain aspect ratio fill
- [ ] Add gradient or semi-transparent overlays to ensure text readability
- [ ] Position content absolutely or center with flex
- [ ] Provide scroll indicators to guide users downward

### Style drift check
- [ ] Does not violate: Do NOT place text directly on complex backgrounds without an overlay
- [ ] Does not violate: Do NOT use low-quality or stretched images
- [ ] Does not violate: Do NOT ignore mobile responsiveness
- [ ] Does not violate: Do NOT fill the entire space with content and no whitespace
- [ ] Does not violate: Do NOT autoplay video with sound

### Delivery check
- [ ] Responsive layout holds on phone, tablet and desktop with no horizontal overflow
- [ ] Every interactive element has a visible focus state, an accessible name and a reduced-motion path
- [ ] Text contrast meets WCAG AA and colour alone never carries state
- [ ] The result is still recognizable at a glance as Fullscreen Hero

---

## [EXAMPLES] Example prompts

### 1. 

```
Create a product launch fullscreen hero:
1. Full viewport height with product image background
2. Dark gradient overlay for text contrast
3. Badge: "Announcing [Product Name]"
4. Large headline with gradient text highlight
5. Subheadline describing key benefit
6. Two CTAs: "Pre-order Now" and "Learn More"
7. Scroll indicator at bottom
8. Transparent navbar at top
Modern, tech-forward aesthetic
```

### 2. 

```
Create a brand story fullscreen hero:
1. Video background (lifestyle footage) with muted autoplay
2. Subtle overlay with brand color tint
3. Centered brand logo (large)
4. Brand tagline below logo
5. Single CTA: "Explore Our Story"
6. Social links at bottom corners
7. Sound toggle button (optional)
Elegant, premium brand feel
```

### 3. 

```
Create an event promotion fullscreen hero:
1. Event venue/crowd image as background
2. Strong dark overlay for readability
3. Event name in large display font
4. Date and location prominently shown
5. Countdown timer to event
6. CTA: "Register Now" with early bird badge
7. Speaker photos strip at bottom (optional)
Energetic, exciting event atmosphere
```

## 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 sound

More prompt libraries: All UI Prompts · Tailwind UI Prompts · Dark Mode UI Prompts

Community

Ratings & Feedback

No ratings yet - be the firstSign in to rate

Loading comments…

Component Templates

Component Preview

英雄区按钮

全屏英雄区 CTA 按钮:重力浮起(hover:-translate-y-1)+ 阴影爆破,active:scale-[0.98] 触觉按压,focus 环在深色背景下可见

Frontend Readiness

Dark Mode, States, Motion, and Accessibility

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%

Missing

UI States

79%

Partial

Motion

70%

Partial

A11y

70%

Partial

Performance

35%

Fallback

Key State Coverage

light
HoverFocus VisibleDisabledLoadingEmptyErrorSuccess

Button

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

Implementation Notes

  • No curated dark-mode contract exists yet.
  • Check contrast in both light and dark modes.
  • Check heavy shadows, blur, large media, and scroll-linked effects manually.
  • No style-specific performance cost profile has been curated yet.

FAQ

Fullscreen Hero — Frequently Asked Questions

What is the Fullscreen Hero design style?
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. Its core principle: Fullscreen Hero is a layout approach centered on visual impact, using fullscreen images or video to create an immersive first impression.
What colors does Fullscreen Hero use?
Fullscreen Hero uses #ffffff as its primary color and #000000 as its secondary color, with accent colors #ff6b6b, #4ecdc4, #ffe66d, #6c5ce7. Every hex value can be copied from the palette on this page.
How do I apply Fullscreen Hero correctly?
Key practices: Use h-screen or min-h-screen to ensure fullscreen coverage. Use object-cover on images to maintain aspect ratio fill. Add gradient or semi-transparent overlays to ensure text readability.
What are common mistakes with Fullscreen Hero?
Avoid: Do NOT place text directly on complex backgrounds without an overlay. Do NOT use low-quality or stretched images. Do NOT ignore mobile responsiveness.
How do I prompt AI to generate Fullscreen Hero UI?
Copy the ready-made AI prompt on this page — it bundles the design tokens and component rules — and paste it into ChatGPT, Claude, Claude Code, or Codex. Effective prompts include the keywords: fullscreen hero, hero section, hero image, video background.
Global Styles

Global CSS

css
/* 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

Try Pairing

Fullscreen Hero is a layout pattern that can be paired with the following visual styles.

IDE Integration

IDE Configuration Export

Download configuration files for AI coding assistants to generate code in this style.

Style Pack

Export 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

Design Philosophy

Fullscreen Hero is a layout approach centered on visual impact, using fullscreen images or video to create an immersive first impression.

Accessibility

Accessibility Score

WCAG 2.1 compliance analysis based on color contrast and typography readability.

62

Overall Score

Grade: C - Fair

Contrast Ratios

Score: 53/100Average Ratio: 8.8:1
AA FailAAA Fail
ContextColorsRatioAAAAA
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

Recommended Combinations with Fullscreen Hero

These curated recipes combine this style with layouts and animations, optimized for specific use cases.