bhollis / jsonview

A web extension that helps you view JSON documents in the browser.
http://jsonview.com
MIT License
1.53k stars 227 forks source link

Add toggle/option to have a dark background (dark theme) #176

Closed Andre601 closed 3 years ago

Andre601 commented 3 years ago

People like me prefer to utilize dark themes on various websites, as it is sometimes easier for the eyes. But when I use JSONView does it cause my eyes to hurt as it is an extreme white background compared to the usual dark gray, black, etc. my eyes are used to.

So with this issue would I like to request a setting/toggle where you can switch to a dark theme version for the JSON displayed. From the JSON I saw so far would it seem that the biggest changes would be a different bg color, text color for the keys (not values like "Strings") and maybe a brighter blue for the numbers.

I would really appreciate if this could be considered as I am more used to dark themes but also use JSON stuff periodically, so this can be somewhat annoying.

bhollis commented 3 years ago

I won't add an option, but I've made a change to respect the system dark mode preference.

Andre601 commented 3 years ago

That seems fair enough