Hero

Light Hero

A light hero for a landing page: cream paper, a warm glow under the headline, large type and two buttons. It stays light even when the site is dark. Change the headline, the subtitle, the buttons and the accent colour.

What you can change

  • the eyebrow, title, titleAccent, lede and note copy
  • the button captions and destinations: primaryLabel, primaryHref, secondaryLabel, secondaryHref
  • the accent colour through the accent prop — the glow, the underline and the button fill all derive from it

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/hero-018?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

A server component, one file, zero dependencies. The --vibeui-hero-018-* palette is written out in explicit oklch values rather than light-dark(): lightness is the point of the block, so on a dark page it stays a sheet of cream paper. For the same reason color-scheme:light is declared on the root — otherwise the browser would paint focus rings and text selection from the dark branch on top of a light background. The background is decorated by a single [data-part="canvas"] layer: two repeating linear gradients draw a 4rem grid, a radial-gradient in mask-image fades it towards the edges, and ::after lays a warm accent glow under the headline. The text colour on the accent button is derived from the lightness of the accent itself through oklch(from …), so a light custom accent never produces white on yellow. The headline is set in clamp(2rem,7cqi,4.25rem) against the block width, and the titleAccent tail is underlined by a soft linear-gradient. The buttons carry min-height rather than height: a long translation wraps to a second line instead of spilling out. Frame padding grows through container queries at 40rem and 64rem.

Tags

  • hero
  • light
  • cream
  • typography
  • grid
  • landing
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…