jhildenbiddle / docsify-themeable

A delightfully simple theme system for docsify.js. Features multiple themes with rich customization options, an improved desktop and mobile experience, and legacy browser support (IE11+).
https://jhildenbiddle.github.io/docsify-themeable
MIT License
535 stars 272 forks source link

Have both simple and simple dark theme and switch with button #59

Closed AnLupoTamTamy closed 3 years ago

AnLupoTamTamy commented 3 years ago

I'm using the Simple Theme.

It would be possible to include both Simple Theme and Simple Dark Theme in my index.html and a switch button that allows the user to toggle between the two themes? For example with Sun/Moon icons, or a toggle button.

I don't have an idea on how to do it right now. A consideration could be save in a cookie the theme chosen.

Thank you in advance for any replies or explanations.

CN-GuoZiyang commented 3 years ago

+1 I want it too

CN-GuoZiyang commented 3 years ago

I'm using the Simple Theme.

It would be possible to include both Simple Theme and Simple Dark Theme in my index.html and a switch button that allows the user to toggle between the two themes? For example with Sun/Moon icons, or a toggle button.

I don't have an idea on how to do it right now. A consideration could be save in a cookie the theme chosen.

Thank you in advance for any replies or explanations.

I found something, https://docsify-darklight-theme.boopathikumar.me/#/, take a look

AnLupoTamTamy commented 3 years ago

That's exactly what I was looking for! It's also compatible by default with docsify-themeable : https://docsify-darklight-theme.boopathikumar.me/#/docsifyThemeable Thank you!