shadocs icon indicating copy to clipboard operation
shadocs copied to clipboard

[feature_request]: dark theme

Open abhinavpatel0 opened this issue 2 years ago • 6 comments

What is missing in the project?

please include dark theme in theme

Solution?

No response

abhinavpatel0 avatar Jan 14 '23 19:01 abhinavpatel0

+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.

Dariusz1989 avatar Feb 21 '23 15:02 Dariusz1989

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

jgazeau avatar Feb 21 '23 17:02 jgazeau

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.

Dariusz1989 avatar Feb 21 '23 21:02 Dariusz1989

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

jgazeau avatar Feb 21 '23 22:02 jgazeau

Hello! Any news?

rolik56 avatar Mar 06 '24 13:03 rolik56

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

jgazeau avatar Apr 02 '24 18:04 jgazeau