Components / section
Theme Reveal Hero
A minimal hero that switches between light and dark with a circular reveal from the theme button.

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