Add dark theme #1204
Reference in New Issue
Block a user
Delete Branch "superiortheme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1151
How to test?
Install Firefox Developer Edition (up-to-date Firefox and Safari (https://github.com/privacytoolsIO/privacytools.io/pull/1204#issuecomment-524510658) should also be fine):
https://www.mozilla.org/en-US/firefox/developer/
Firefox gets data from operating system to decide if user prefers dark themes, so set it to dark in system settings or execute it like this (Adwaita is included with GTK, so you should have it installed):
White theme:
Dark theme:
Or you can go to
about:configand add a property namedui.systemUsesDarkTheme,integerand set it to1.Note:
privacy.resistFingerprintingmust be false.After you do that, there is an option to open devtools, go to Style Editor and disable

dark.cssto compare it with regular light version.Screenshot
Deploy preview for privacytools-io ready!
Built with commit
12bb38c6dbhttps://deploy-preview-1204--privacytools-io.netlify.com
FYI for visitors who don't want to or can't change their OS theme, dark mode can be toggled in the Safari developer console
(on Catalina. Don't know about Mojave support, maybe only in Safari Tech Preview on Mojave?):...and in Firefox I don't know how to do it per-site, but you can update the style used in the browser by going to
about:configand adding a new propertyui.systemUsesDarkThemeof integer type with value1.I don't understand the code though 😃
LGTM 👍🏼