Skip to content

Add Dark/Light Theme Toggle Button to Blog Page#1002

Merged
Renu-code123 merged 3 commits intoRenu-code123:mainfrom
Eshajha19:blog-dark
Mar 5, 2026
Merged

Add Dark/Light Theme Toggle Button to Blog Page#1002
Renu-code123 merged 3 commits intoRenu-code123:mainfrom
Eshajha19:blog-dark

Conversation

@Eshajha19
Copy link
Contributor

Add Dark/Light Theme Toggle Button to Blog Page

📌 Description

This PR introduces a theme toggle button to the Blog page, allowing users to switch between dark mode and light mode for a better reading experience. The selected theme is stored in localStorage, ensuring the user's preference persists across sessions.

🚀 Changes Implemented

Added a theme toggle button in the navbar of blog.html.

Implemented JavaScript logic to switch between dark and light themes.

Added CSS styling for the toggle button to match the ExpenseFlow design.

Integrated Font Awesome icons for moon and sun indicators.

Enabled localStorage support so the theme preference is remembered on reload.

🎯 Benefits

Improves user experience while reading blog articles.

Provides consistent UI behavior with other pages that support dark/light mode.

Allows users to customize the interface based on their preference.

🧪 Testing

Verified theme toggle functionality.

Confirmed that the selected theme persists after page refresh.

Checked UI responsiveness and icon switching.

This PR closes issue #998
https://github.com/user-attachments/assets/35b62e67-a794-4858-acf0-bfcc48f3bee9

@vercel
Copy link

vercel bot commented Mar 5, 2026

@Eshajha19 is attempting to deploy a commit to the Renu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

🎉 Thanks for the PR, @Eshajha19!

We really appreciate you taking the time to contribute to ExpenseFlow! 💙


⭐ Love this project?

Please give us a star! It helps the project grow and reach more developers! 🌟

🔗 https://github.com/Renu-code123/ExpenseFlow


✅ PR Checklist

Before we review, please ensure:

  • Your code follows the project's coding standards
  • All file changes are accurate and intentional
  • You've tested your changes locally
  • Any review comments have been addressed

🙌 Thank You for Contributing!

We truly appreciate your interest in contributing to this project.

  • Please make sure your code follows the project structure
  • Add clear commit messages and comments where necessary
  • Ensure your changes do not break existing functionality

We'll review your PR as soon as possible. Keep up the great work! ✨


@vercel
Copy link

vercel bot commented Mar 5, 2026

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

Project Deployment Actions Updated (UTC)
expenseflow Ready Ready Preview, Comment Mar 5, 2026 3:04pm

@Renu-code123 Renu-code123 merged commit a567b7c into Renu-code123:main Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants