jashkenas / underscore

JavaScript's utility _ belt
https://underscorejs.org
MIT License
27.3k stars 5.53k forks source link

Add dark mode support for homepage #2909

Closed gprasanth closed 1 month ago

gprasanth commented 3 years ago

Tried adding dark mode support for the docs on the underscorejs.org homepage.

Here's how it looks before and after:

Screen Shot 2021-02-07 at 15 35 44 Screen Shot 2021-02-07 at 15 24 45

The code is available in a very short gist here:

doccy-dark.css

To submit a pull request I am not sure where to add this... in index.html in source root? or in docco.css?

In any case, this can be tweaked as required and added. Also, the logo lost the signature blue color, but can be avoided if an alternative logo image with white text is available.

jgonggrijp commented 3 years ago

Nice suggestion, thanks!

itsdeekay commented 3 years ago

@gprasanth You can raise PR . Recommended would be to use in index.html itself as all of the existing code is inside it. Also it ca be separated in docs folder and with specified folder.