Closed xrstf closed 10 months ago
This is nice. Maybe we can add this to the k8s.io/docs website as well?
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: tengqm, xrstf
The full list of commands accepted by this bot can be found here.
The pull request process is described here
For the Kubernetes website it might make sense to wait for it to use Bootstrap 5, which has better native support for it. This implementation here that I made is quite cheap, for the full website we probabl want something more robust/fine-tuned. But that's beyond my capabilities :-)
See https://github.com/kubernetes/website/issues/37444
I'd prefer to have the button act only as an override for the user's own preference, when that preference is available.
This adds a simple button to the page to toggle between a light and dark mode. The dark mode is based on Bootstrap colors: