Styledex
← Index

Fullscreen Hero

全屏英雄区布局

stylekitMITLanding · landingDashboard · dashboardExperimental · experimentalLight · lightLow (display) · lowNeutral · neutralMuted · mutedSerif · serifGeneral · general

以全屏大图或视频为背景的英雄区布局,通过震撼的视觉效果抓住注意力,适合品牌展示、产品发布、活动宣传。

NNorthwind
Product · Pricing
Specimen
Make the work feel finished

One interface, dressed in this style. Compare type, color, radius, and density.

128
Active
4.8
Score
12ms
Edge

Attribution

"Fullscreen Hero" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86.

https://github.com/AnxForever/stylekit · api/styles/hero-fullscreen · bfa7da909e86 · © AnxForever

Do

  • 使用 h-screen 或 min-h-screen 确保全屏
  • 图片使用 object-cover 保持比例填充
  • 添加渐变或半透明遮罩保证文字可读
  • 内容绝对定位或 flex 居中
  • 提供滚动提示引导用户往下看
  • 视频背景静音自动播放
  • 提供降级方案(图片替代视频)
  • 主 CTA 按钮 hover:-translate-y-1 + hover:shadow-[0_8px_28px_rgba(0,0,0,0.5)](重力浮起感)

Don't

  • 禁止文字直接放在复杂背景上无遮罩
  • 禁止使用低质量或拉伸的图片
  • 禁止忽略移动端的适配
  • 禁止内容占据全部空间无留白
  • 禁止视频有声音自动播放
  • 禁止按钮缺少 active:scale-[0.98](全屏背景下按钮无触觉确认感极差)
  • 禁止卡片无 group 类(图标 group-hover:scale-110 微交互依赖 group)

Prompt

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

---
"Fullscreen Hero" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86.
powered by Styledex — https://styledex.dev

Tokens

DTCG

{
  "$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
  "$description": "Fullscreen Hero. \"Fullscreen Hero\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86.",
  "$extensions": {
    "dev.styledex": {
      "id": "stylekit-hero-fullscreen",
      "license": "MIT",
      "attribution": "\"Fullscreen Hero\" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86.",
      "banner": "powered by Styledex — https://styledex.dev"
    }
  },
  "color": {
    "background": {
      "$type": "color",
      "$value": "#000000"
    },
    "foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "card": {
      "$type": "color",
      "$value": "#000000"
    },
    "card-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "primary": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "primary-foreground": {
      "$type": "color",
      "$value": "#1c1917"
    },
    "secondary": {
      "$type": "color",
      "$value": "#000000"
    },
    "secondary-foreground": {
      "$type": "color",
      "$value": "#ffffff"
    },
    "accent": {
      "$type": "color",
      "$value": "#ff6b6b"
    },
    "accent-foreground": {
      "$type": "color",
      "$value": "#fafaf9"
    },
    "muted": {
      "$type": "color",
      "$value": "#0f0f0f"
    },
    "muted-foreground": {
      "$type": "color",
      "$value": "#a6a6a6"
    },
    "border": {
      "$type": "color",
      "$value": "#242424"
    },
    "destructive": {
      "$type": "color",
      "$value": "#dc2626"
    },
    "ring": {
      "$type": "color",
      "$value": "#ffffff"
    }
  },
  "font": {
    "sans": {
      "$type": "fontFamily",
      "$value": [
        "ui-sans-serif",
        "system-ui",
        "sans-serif"
      ]
    },
    "serif": {
      "$type": "fontFamily",
      "$value": [
        "ui-serif",
        "Georgia",
        "serif"
      ]
    },
    "mono": {
      "$type": "fontFamily",
      "$value": [
        "ui-monospace",
        "SFMono-Regular",
        "Menlo",
        "monospace"
      ]
    }
  },
  "radius": {
    "base": {
      "$type": "dimension",
      "$value": "0.5rem"
    }
  },
  "spacing": {
    "base": {
      "$type": "dimension",
      "$value": "1rem"
    }
  },
  "shadow": {
    "base": {
      "$type": "shadow",
      "$value": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
    }
  }
}

CSS

/* powered by Styledex — https://styledex.dev */
/* "Fullscreen Hero" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86. */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #1c1917;
  --secondary: #000000;
  --secondary-foreground: #ffffff;
  --accent: #ff6b6b;
  --accent-foreground: #fafaf9;
  --muted: #0f0f0f;
  --muted-foreground: #a6a6a6;
  --border: #242424;
  --destructive: #dc2626;
  --ring: #ffffff;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

Tailwind

/* powered by Styledex — https://styledex.dev */
/* "Fullscreen Hero" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86. */
/** Tailwind theme extend for Fullscreen Hero (stylekit-hero-fullscreen) */
module.exports = {
  "theme": {
    "extend": {
      "colors": {
        "background": "#000000",
        "foreground": "#ffffff",
        "card": "#000000",
        "primary": "#ffffff",
        "primary-foreground": "#1c1917",
        "secondary": "#000000",
        "accent": "#ff6b6b",
        "muted": "#0f0f0f",
        "border": "#242424",
        "destructive": "#dc2626",
        "ring": "#ffffff"
      },
      "borderRadius": {
        "lg": "0.5rem"
      },
      "fontFamily": {
        "sans": [
          "ui-sans-serif",
          "system-ui",
          "sans-serif"
        ],
        "serif": [
          "ui-serif",
          "Georgia",
          "serif"
        ],
        "mono": [
          "ui-monospace",
          "SFMono-Regular",
          "Menlo",
          "monospace"
        ]
      },
      "boxShadow": {
        "styledex": "0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04)"
      }
    }
  }
};

shadcn

/* powered by Styledex — https://styledex.dev */
/* "Fullscreen Hero" from https://github.com/AnxForever/stylekit (MIT). © AnxForever. api/styles/hero-fullscreen @ bfa7da909e86. */
@layer base {
:root {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #1c1917;
  --secondary: #000000;
  --secondary-foreground: #ffffff;
  --accent: #ff6b6b;
  --accent-foreground: #fafaf9;
  --muted: #0f0f0f;
  --muted-foreground: #a6a6a6;
  --border: #242424;
  --destructive: #dc2626;
  --ring: #ffffff;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --spacing: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}
}