arl / statsviz

🚀 Visualise your Go program runtime metrics in real time in the browser
MIT License
3.19k stars 121 forks source link

Add dark/light mode #108

Closed tommyblue closed 1 year ago

tommyblue commented 1 year ago

Add support for dark/light theme

The browser theme is initially used. A switch in the navbar let the user choose their theme. The selection is saved into localStorage for persistency.

Theme colors seems good but can be changed if not of your liking

image

Fixes https://github.com/arl/statsviz/issues/23

tommyblue commented 1 year ago

btw, the new bootstrap (5.3, currently alpha) seems to natively support light/dark theme, could be a future upgrade

arl commented 1 year ago

btw, the new bootstrap (5.3, currently alpha) seems to natively support light/dark theme, could be a future upgrade

Nice. good to know thanks