Skip to content

feat: add night mode theme with moon and twinkling stars#12

Open
sanxore wants to merge 1 commit into
meltylabs:mainfrom
sanxore:2-your-first-parallel-agent
Open

feat: add night mode theme with moon and twinkling stars#12
sanxore wants to merge 1 commit into
meltylabs:mainfrom
sanxore:2-your-first-parallel-agent

Conversation

@sanxore
Copy link
Copy Markdown

@sanxore sanxore commented May 10, 2026

Summary

  • Adds a night mode theme: 🌙/☀️ toggle button (and n key) that swaps the page to a deep radial-gradient sky with a glowing moon and 8 staggered twinkling stars.
  • Recolors UI accents (tagline, counter, steam, button borders) for legibility on dark, with a 600ms eased background transition.
  • Persists the preference via localStorage (wtc:night) and disables the new animations under prefers-reduced-motion.

Test plan

  • Toggle on/off via button and n key — body class, stars, moon, and stored value all flip in sync.
  • Clicking the night-toggle does not dispatch a train (stopPropagation).
  • Dispatch still works in both modes; reload preserves the chosen theme.

🤖 Generated with Claude Code

Toggle via 🌙/☀️ button or `n` key. Swaps to a deep radial-gradient
sky with a glowing moon and twinkling stars, recolors UI accents for
dark legibility, and persists the preference in localStorage. New
animations are disabled under prefers-reduced-motion.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

1 participant