Repository navigation
Redesign gallery with effect sheet modal and dark theme - #9
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The homepage has been redesigned with two major features:
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 withshowModal()for focus management and backdrop handling.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
localStorageand applied before first paint via an inline script.Supporting changes include:
EffectSheetcomponent with tabbed interface (Preview, Code, Install, Motion)CopyButtoncomponent consolidating copy functionality across the siteThemeTogglecomponent in the headerLogocomponent (inline SVG instead of image)app/globals.cssfor both light and dark themes--chromepill tokens for header controls and badgesWhy
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 viauseSyncExternalStoreto subscribe to DOM class changes without duplicating state.The gate
npm run lintpassesnpm run buildpassesScreen recording
N/A — this is a redesign of existing gallery infrastructure, not a new effect.
https://claude.ai/code/session_01DM8Nfy5cu1W3jgEdse237i