No longer do you need have your retinas burned by the unchangable light mode in MongoDB Compass on Mac OS! ... Why don't they have a dark mode..Anyways!
The app.asar.zip
file is the original app file plus 2 additions.
- darkreader.js from the dark reader chrome addon
- the <script> tag to link the javascript the html. No other modifications have been made.
This file is simply hosted here to make it easier to drag and drop dark mode
Original idea for Linux/Windows from Reddit
Linux Users: your directory would look something like /usr/lib/mongodb-compass/resources
-
This guy's script might also work
Windows Users: The app.asar
file should work, just paste it into the correct MongoDB Compass directory for Windows maybe C:\Users\{YourUsername}\program files\MongoDB Compass\resources
- Download file
- navigate to
/Applications/MongoDB Compass/Contents/Resources
- rename app.asar (to make backup)
- unzip
app.asar.zip
- drag and drop
app.asar
file into/Applications/MongoDB Compass/Contents/Resources
- Download MongoDB Compass (tested on version 1.29.6 on MacOS 12.1 M1)
- Download the dark mode
asar.zip
from this repo (original asar + dark reader chrome addon) - Once installed, go to the finder and click your
/Applications
folder - Find MongoDB Compass in the list and right click
Show Package Contents
- Click
/Contents
- Click
/Resources
- Rename the original
app.asar
in/Resources
toapp_original.asar
- Copy the
app.asar.zip
that you downloaded from this repo and paste it into the/Resources
folder - Make sure to unzip the
app.asar.zip
file here. - Restart MongoDB Compass and it will be dark!
Dark mode has no settings or toggle, it is just on. This is the way.
If you want to revert back, simply delete the file app.asar and rename the original app_original.asar back to app.asar.
Then Restart MongoDB Compass
You can always delete the app and install it again
These are the commands i used to extract the file and repackage it with the modifications.
npx asar extract app.asar destination_folder
npx asar pack destination_folder app.new.asar
Mac Script Coming Soon