jgazeau / shadocs

Shadocs Theme for Hugo
https://jgazeau.github.io/shadocs/
MIT License
51 stars 20 forks source link

[feature_request]: dark theme #126

Open abhinavpatel0 opened 1 year ago

abhinavpatel0 commented 1 year ago

What is missing in the project?

please include dark theme in theme

Solution?

No response

Dariusz1989 commented 1 year ago

+1 from me too, was hoping it was just a config in sass but looks like nope. Will see if I can figure it out, will do pull if so.

jgazeau commented 1 year ago

Hi @Dariusz1989 , indeed for now there is nothing to easily put it in dark mode, I'll have a look as soon as I can to do something about that

Dariusz1989 commented 1 year ago

Hey I got it in dark mode pretty quickly...

assets/sass/theme/pre/variables.sass $theme-writing-color: hsl(0, 0%, 90%) $theme-white-color: hsl(0, 0%, 100%)

and I edited

@function findColorInvert($color)
  @if (colorLuminance($color) > 0.55)
    @return rgba(#000, 0.805)
  @else
    @return #fff

went from 0.7 to 0.805

I need to check my changes again. But once I did that I could set +/- inverse colors. Not full control as much as I'd like but enough to make it work for me.

jgazeau commented 1 year ago

Perfect 😃 Well, my aim is still to implement something more complete (button to toggle the dark mode, activate it by default depending on configuration,...). So I'll keep this issue to track it

rolik56 commented 8 months ago

Hello! Any news?

jgazeau commented 7 months ago

Hi @rolik56 , sorry didn't have much time to work on it for now. Will do my best as soon as I can