oasisprotocol / docs

Official documentation for the Oasis Network.
https://docs.oasis.io
Apache License 2.0
14 stars 33 forks source link

Adjust diagrams for dark theme #308

Open matevz opened 2 years ago

matevz commented 2 years ago

Go through all diagrams and check that they are readable in the dark theme:

Transparent PNGs (do we have any?) should either be redrawn/reexported in SVG or designed in such a way that the text is readable regardless of the background. Non-transparent PNGs and JPEGs could maybe use Docuaurus' themed images in the future?

matevz commented 1 month ago

Possible solution would be the following:

matevz commented 1 week ago

drawio.com which we use for most of the hand-drawn diagrams now has theming support for SVG export. Selecting the "Automatic" theme option in the export dialog adds theme-sensitive CSS snippet in the SVG. This, and enabling transparent background gives best results in our docs. image

Final result: Light Dark
image image
aefhm commented 6 days ago

TODO