Add dark mode toggle feature#592
Conversation
- Add DarkModeToggle component with sun/moon icons - Update all components to support light/dark themes - Add CSS custom properties for theme switching - Implement persistent theme preference storage - Add smooth transitions between themes
|
I tested this branch locally. The toggle does render in the built page and
So the feature direction matches #494, but this needs a cleanup pass before it is safe to merge. |
|
Thanks for the cleanup pass. I rechecked the current PR head ( There are still blockers before this is safe to merge:
So this is closer than before, but it still needs a source-only cleanup pass and a quick generated-HTML/style check after that. |
|
Nice cleanup pass. I revalidated the new PR head (
The remaining blocker I still see is that the PR diff includes generated |
|
so is it ready to be merged
…On Sun, 17 May 2026 at 11:21, Sean Kenneth Doherty ***@***.***> wrote:
*Sean-Kenneth-Doherty* left a comment
(firstcontributions/firstcontributions.github.io#592)
<#592 (comment)>
Nice cleanup pass. I revalidated the new PR head (
bff80c8) and several previous blockers
are fixed now:
- git diff --check origin/main...HEAD is clean
- GITHUB_TOKEN=$(gh auth token) pnpm build succeeds, 2 pages
- the built page includes the dark-mode toggle
- the initialization script now includes
document.documentElement.classList.add('dark')
- the generated HTML no longer contains the literal Issue-Label
{issue.priority...} class string; issue labels render as classes like Issue-Label
good-first-issue
The remaining blocker I still see is that the PR diff includes generated
.astro/* and dist/* deletions. Those files are already handled separately
by #632
<#632>,
so this dark-mode PR should restore/remove that generated artifact churn
and stay source-only before merge.
—
Reply to this email directly, view it on GitHub
<#592 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARUOMNV4M6HVPX345WVCWWT43FHMVAVCNFSM6AAAAACYJOCGISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DINRZGUZDCMZQGI>
.
You are receiving this because you authored the thread.Message ID:
<firstcontributions/firstcontributions.github.io/pull/592/c4469521302@
github.com>
|
|
Rechecked the latest head Two blockers still remain before this is clean to merge:
Suggested next step: restore/remove the generated |
…d clean whitespace" This reverts commit f1395f0.
|
Rechecked latest head
Suggested next step: restore/remove |
Pull Request Description: Add Dark Mode Toggle Feature
Feature Summary
Added a comprehensive dark mode toggle feature to enhance user experience with theme switching capabilities.
Key Features Added:
Technical Implementation:
--bg-primary,--text-primary, etc. for theme variableshtml.darkclass for theme switchingUser Experience:
Files Modified:
src/components/DarkModeToggle.astro(new)src/layouts/Layout.astrosrc/components/Navbar.astrosrc/components/App.astrosrc/components/ProjectCard.astrosrc/components/ProjectList.astrosrc/components/SocialShare.astrosrc/components/IssueList.astroThis feature significantly improves accessibility and user comfort, especially for users who prefer dark themes or work in low-light environments. 🎯
demo.1.mp4