Skip to content

feat: add dark mode support across website and homepage#370

Merged
sumn2u merged 2 commits intosumn2u:mainfrom
mhughes2012:feature/issue-360-dark-mode
Mar 8, 2026
Merged

feat: add dark mode support across website and homepage#370
sumn2u merged 2 commits intosumn2u:mainfrom
mhughes2012:feature/issue-360-dark-mode

Conversation

@mhughes2012
Copy link
Contributor

Summary

This PR resolves issue #360 by improving dark mode behavior and styling across the site.

Changes

  • fixed dark mode toggle behavior across page navigation
  • added reusable dark mode script support
  • ensured homepage dark mode assets are loaded correctly
  • updated toggle icon behavior
  • softened copy-code button styling in dark mode
  • added dark mode styles for alert variants:
    • .alert-warning
    • .alert-info
    • .alert-success
    • .alert-danger
  • added homepage dark mode styles for:
    • .language-selector-container
    • .language-card

Issue

Closes #360

@vercel
Copy link

vercel bot commented Mar 7, 2026

@mhughes2012 is attempting to deploy a commit to the Suman Kunwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 8, 2026

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

Project Deployment Actions Updated (UTC)
learn-javascript Ready Ready Preview, Comment Mar 8, 2026 1:36am

@sumn2u
Copy link
Owner

sumn2u commented Mar 8, 2026

@mhughes2012 Awesome work. The functionality is great, but I noticed a small issue on the landing page. Could you take a look?

Live preview: https://learn-javascript-git-fork-mhughes-0ab332-suman-kunwars-projects.vercel.app/

screencapture-learn-javascript-git-fork-mhughes-0ab332-suman-kunwars-projects-vercel-app-2026-03-07-19_53_24 (1) screencapture-learn-javascript-git-fork-mhughes-0ab332-suman-kunwars-projects-vercel-app-en-functions-2026-03-07-19_53_46 (1)

@mhughes2012
Copy link
Contributor Author

@sumn2u thank you, I added a small update to address the background of the wider part of the page on the landing page.

Copy link
Owner

@sumn2u sumn2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sumn2u sumn2u merged commit a738ace into sumn2u:main Mar 8, 2026
3 checks passed
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.

Implement Dark Mode Toggle

2 participants