stdlib-js / www

Website for stdlib, a standard library for JavaScript and Node.js.
https://stdlib.io
Apache License 2.0
7 stars 8 forks source link

[RFC]: consider supporting a dark theme #24

Closed kgryte closed 2 years ago

kgryte commented 3 years ago

Description

This RFC proposes supporting a dark theme for the API docs.

The general idea behind dark theme support to reduce the number of bright pixels (and thus blue light) for better long-term eye health.

This should be straightforward to do. Would mainly require adding a toggle element which would apply a theme class to the root element. From there, we'd just need to update the stylesheets to use different colors (syntax highlighting, links, etc) on the dark background.

Related Issues

No.

Questions

No.

Other

No.

Checklist

Planeshifter commented 3 years ago

Toggling between a dark and light theme is meanwhile supported.

kgryte commented 2 years ago

This has been added with support with future extension of, e.g., high contrast themes (see GitHub theme preferences). Currently, we only support light and dark.