Skip to content

Redesign gallery with effect sheet modal and dark theme - #9

Merged
raqibnur merged 1 commit into
mainfrom
claude/hoverui-homepage-redesign-csl8cg
Sep 29, 2026
Merged

raqibnur merged 1 commit into
mainfrom
claude/hoverui-homepage-redesign-csl8cg

Conversation

@raqibnur

Copy link
Copy Markdown
Owner

What this changes

The homepage has been redesigned with two major features:

  1. Effect sheet modal: Each gallery tile now opens a full-screen modal dialog showing the effect's preview, source code, installation instructions, and motion specification. The modal uses the native <dialog> element with showModal() for focus management and backdrop handling.

  2. Dark theme: The site now ships with a complete dark theme, toggled via a new theme control in the header. The dark theme maintains the design thesis (achromatic at rest, colour only under pointer) with re-measured contrast values. Theme preference is persisted to localStorage and applied before first paint via an inline script.

Supporting changes include:

  • New EffectSheet component with tabbed interface (Preview, Code, Install, Motion)
  • New CopyButton component consolidating copy functionality across the site
  • New ThemeToggle component in the header
  • New Logo component (inline SVG instead of image)
  • Refactored gallery tiles to use a bezel + footer layout with persistent install command
  • Updated design tokens in app/globals.css for both light and dark themes
  • New --chrome pill tokens for header controls and badges

Why

This redesign addresses the core user journey: visitors arrive to see an effect, copy the install command, and optionally dive deeper into the code and motion spec. The modal keeps the gallery visible as context while showing full details, and the dark theme extends the product to users who prefer it without compromising the design thesis.

The native <dialog> element eliminates the need for focus trap libraries or manual backdrop handling (CLAUDE.md rule 2). Theme state is managed via useSyncExternalStore to subscribe to DOM class changes without duplicating state.


The gate

  • npm run lint passes
  • npm run build passes
  • No new dependency, runtime or dev

Screen recording

N/A — this is a redesign of existing gallery infrastructure, not a new effect.

https://claude.ai/code/session_01DM8Nfy5cu1W3jgEdse237i

…theme

- Header is three floating pills: logo, section nav (+ /r/), GitHub and a
  theme toggle. Sticky, with the logo inlined so it follows the theme.
- Hero is one centred column: stagger-text headline, magnetic install
  command, and the Tailwind mark beneath.
- Tiles are bezels with a recessed stage and a footer strip: name, motion
  readout, install copy, and an arrow that opens the effect sheet.
- Effect sheet is a native modal <dialog> with Preview (light/dark stage,
  reset), Code (file read off disk), Install (per package manager, target,
  import line, keyframes) and Motion tabs. No new dependencies.
- Light and dark themes: dark tokens measured for AA, OS default, stored
  choice applied before first paint. Previews use tokens, not hex, so
  they read on either stage.
- docs/DESIGN.md amended with the dark theme tokens and the new layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DM8Nfy5cu1W3jgEdse237i
@vercel

vercel Bot commented Sep 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hoverui Ready Ready Preview Sep 29, 2026 6:40pm UTC

@raqibnur
raqibnur merged commit 289cad5 into main Sep 29, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2cad50de Deployed Sep 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants