fosscu.org icon indicating copy to clipboard operation
fosscu.org copied to clipboard

Add Toggle Theme Functionality

Open Saurav-Pant opened this issue 2 years ago • 3 comments

As a user, I want to be able to switch between light and dark themes on the website/app, so that I can choose the one that is easier on my eyes or fits my preferences.

To implement this feature, we will need to add a button or switch somewhere on the page that the user can click or tap to toggle the theme. When the user switches the theme, we will need to update the CSS styles accordingly to apply the appropriate colors, fonts, and other design elements.

In addition, we should consider storing the user's preference for the theme in a cookie or local storage, so that it persists across page reloads and sessions.

By adding this functionality, we can improve the user experience and make the website/app more accessible and customizable for our users.

Saurav-Pant avatar Apr 24 '23 02:04 Saurav-Pant

i want to work on this issue, assign me this issue

29deepanshutyagi avatar May 05 '23 15:05 29deepanshutyagi

@Saurav-Pant I want to work on this @Mr-Sunglasses can I give it's PR without assigning ??

draunger avatar Jan 17 '24 07:01 draunger

@draunger yeah you can :)

Mr-Sunglasses avatar Jan 17 '24 07:01 Mr-Sunglasses

@Saurav-Pant @Mr-Sunglasses can i use normal css for toggle button instead of tailwind css ??

draunger avatar Jun 27 '24 18:06 draunger

@Saurav-Pant @Mr-Sunglasses ??

draunger avatar Jun 28 '24 05:06 draunger

Hey 👋 @draunger if you can do in Normal css I think it isn't hard for you to learn to do it with Tailwindcss

Mr-Sunglasses avatar Jun 28 '24 05:06 Mr-Sunglasses

@Mr-Sunglasses as I have done the this issue using normal css, if you agree I will send the PR of this issue Else I will take some time using tailwind css

draunger avatar Jun 28 '24 06:06 draunger

@Mr-Sunglasses as I have done the this issue using normal css, if you agree I will send the PR of this issue Else I will take some time using tailwind css

@draunger As we use tailwind everywhere so take your time and come back when you are comfortable with TailwindCSS :-)

Mr-Sunglasses avatar Jun 28 '24 06:06 Mr-Sunglasses

@Mr-Sunglasses ok sir

draunger avatar Jun 28 '24 06:06 draunger

@Mr-Sunglasses as the issue said that we have to make toggle button for dark them but the website is already in dark so there is no need for button right ??

draunger avatar Jul 15 '24 16:07 draunger

@Mr-Sunglasses as the issue said that we have to make toggle button for dark them but the website is already in dark so there is no need for button right ??

It's a good pick @draunger , As we have our main theme in Green and dark so no need for this feature to implement.

Mr-Sunglasses avatar Jul 15 '24 16:07 Mr-Sunglasses

@Mr-Sunglasses so we have to close this issue?

draunger avatar Jul 15 '24 16:07 draunger

@Mr-Sunglasses so we have to close this issue?

Yeah I already closed it as completed.

Mr-Sunglasses avatar Jul 15 '24 16:07 Mr-Sunglasses