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

Add light mode dark mode toggle #8

Open
GetPsyched opened this issue Jun 13, 2023 · 3 comments
Open

Add light mode dark mode toggle #8

GetPsyched opened this issue Jun 13, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@GetPsyched
Copy link
Member

A theme toggle will be a good to have.

@GetPsyched GetPsyched added enhancement New feature or request good first issue Good for newcomers labels Jun 13, 2023
@GetPsyched GetPsyched added this to v2 Jun 13, 2023
@GetPsyched GetPsyched moved this to Todo in v2 Jun 13, 2023
@tymnec
Copy link

tymnec commented Jun 14, 2023

This typically involves adding CSS styles for both the light mode and dark mode, and using JavaScript to toggle between them using the switch. Another option is to use a plugin, such as the "Dark Mode Toggle" WordPress plugin, which allows you to easily add a dark mode toggle switch button to your website . It is also possible to use CSS media queries to dynamically switch between light and dark mode based on the user's system preferences. CSS frameworks like Bootstrap also offer built-in support for light and dark color modes.

@tymnec
Copy link

tymnec commented Jun 14, 2023

Would you like to assign this to me?

@GetPsyched
Copy link
Member Author

GetPsyched commented Jun 14, 2023

Hey, @tymnec! I don't think we would need any significant amount of JavaScript in our project since we use TailwindCSS for styling. All we need to do is add a new palette, and then use the dark:some-colour variant on each of our elements.

Ref: https://github.com/NIT-KKR-Student-Support-System/website/blob/e9d43a21b1dbbb7b01af33d5ade85a916c8e7478/tailwind.config.js#L19-L29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

2 participants