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

Support dark-mode #22

Open
rtyler opened this issue Nov 28, 2019 · 1 comment
Open

Support dark-mode #22

rtyler opened this issue Nov 28, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@rtyler
Copy link
Collaborator

rtyler commented Nov 28, 2019

@kylegordy and I had discussed this at one point, and I wanted to make sure we didn't forget it.

Since this is a tech blog, dark mode is very important 😸

@rtyler rtyler added the enhancement New feature or request label Mar 22, 2020
@Dorson
Copy link

Dorson commented Apr 9, 2020

You could port your existing color values into CSS variables and then make additional color classes with different values for those CSS color variables.

I coded a flexible and working solution for the Dark Mode.

Try demo in here:
https://dorson.github.io/CSS-Dark-Mode-and-color-switch/

Works with basic CSS variables + short JavaScript.

Can be used inside existing CSS style file. Can be used to define multiple color themes in one CSS file. No user logins or profiles or tracking required.

Let's save our eyesight at night :-)

Have fun using my code !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants