Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add Toggle for Light and Dark Mode in Navbar #4395

Closed
1 task done
bro-maanii opened this issue May 7, 2024 · 3 comments
Closed
1 task done

Suggestion: Add Toggle for Light and Dark Mode in Navbar #4395

bro-maanii opened this issue May 7, 2024 · 3 comments
Assignees

Comments

@bro-maanii
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I suggest adding a toggle for light and dark mode in the navbar. This toggle would allow users to switch between light and dark themes easily, enhancing the accessibility and customization options of the website. It's a feature many users appreciate for its ability to reduce eye strain and improve readability based on personal preferences. Including this toggle in the navbar would make it readily accessible and intuitive for users to control the display mode according to their needs.

Why should this be worked on?

Adding a light and dark mode toggle in the navbar improves user experience, enhances accessibility, allows for customization, aligns with industry standards, and provides a competitive advantage.

@ghost
Copy link

ghost commented May 9, 2024

Sir I have 2 doubts the first can we use any external package for this and if it so then we will have to set images and some buttons for according to the condition of the toggle >?

@bro-maanii
Copy link
Author

bro-maanii commented May 9, 2024

Sir I have 2 doubts the first can we use any external package for this and if it so then we will have to set images and some buttons for according to the condition of the toggle >?

Yes, you can use Shadcn UI for the toggle effect. It's easy because Shadcn UI provides ready-made components, saving you time and effort.

With Shadcn UI, you won't need JavaScript to handle the toggle button's functionality; it's built-in. Just integrate the toggle button into your navbar and use Shadcn UI's classes to switch between light and dark modes.

Let me know if you need more help!

@pushya22
Copy link
Collaborator

pushya22 commented Jun 10, 2024

Toggle themes are available at Profile settings > Preferences > Theme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants