Components / section

Theme Reveal Hero

v1.0.4 · premium

A minimal hero that switches between light and dark with a circular reveal from the theme button.

Theme Reveal Hero demo

Implementation

A minimal hero that switches between light and dark with a circular reveal from the theme button.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.4 · published

Source code

Download source ZIP
export function ThemeRevealHero({
  brand, homeHref, logo, links, headline, headingAs: Heading = 'h1', description, photos, introId, descriptionId,
  initialTheme = 'light', duration = 800,

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.4 · A minimal hero that switches between light and dark with a circular reveal from the theme button.

Frequently asked questions

Can I choose the initial color theme?

Yes. Set initialTheme to light or dark. Visitors can then switch with the theme button.

Where does the circular reveal begin?

It starts at the theme button, then expands over the hero.