Documenter.jl: Respect users' preference for light/dark mode

Created on 13 May 2020  路  1Comment  路  Source: JuliaDocs/Documenter.jl

Coming soon (or even already here) to a browser near you, a way of choosing to display light or dark mode:

https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme

Is this something that can be added to Documenter?

HTML Enhancement help wanted

Most helpful comment

Documenter's theme switching is JS-based, but that shouldn't be a problem, since it seems that you can access that media feature via JS too. Would probably be a rather simple modification to themeswap.js.

>All comments

Documenter's theme switching is JS-based, but that shouldn't be a problem, since it seems that you can access that media feature via JS too. Would probably be a rather simple modification to themeswap.js.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mforets picture mforets  路  3Comments

carlobaldassi picture carlobaldassi  路  5Comments

dkarrasch picture dkarrasch  路  5Comments

cadojo picture cadojo  路  3Comments

haampie picture haampie  路  3Comments