yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.46k stars 1.12k forks source link

[Feature] Add dark mode on yarnpkg website #4058

Open trivikr opened 2 years ago

trivikr commented 2 years ago

Describe the user story

The website https://yarnpkg.com/ does not have dark mode

Describe the solution you'd like

Some gatsby plugins:

Describe the drawbacks of your solution

I don't see a drawback. Folks who want to see the website in light mode can always select it.

Describe alternatives you've considered

trivikr commented 1 year ago

The legacy Gatsby website was removed in https://github.com/yarnpkg/berry/pull/5742

The new website is built using Docusaurus 2, and code can be viewed at https://github.com/yarnpkg/berry/tree/master/packages/docusaurus

Docusaurus allows configuring light/dark themes using colorMode configuration. Existing website colorMode configuration: https://github.com/yarnpkg/berry/blob/ffa193c59c6de53be20773a9c1958d3dc0d48221/packages/docusaurus/docusaurus.config.js#L95-L99