Working late, or simply prefer light text on a dark background? pgAdmin 4 has a Dark theme built in, and one setting switches the whole window, from the Object Explorer to the Query Tool.
Every screen on this page is real, from pgAdmin 4 9.19 with PostgreSQL 19 on macOS.
Step 1: Open Preferences
Click the gear button at the bottom left of the pgAdmin window:

Preferences opens in its own tab.
Step 2: Choose the Dark Theme
In the list on the left, under Miscellaneous, click User Interface. Then open the Theme list and choose Dark:

- Light: dark text on a light background.
- Dark: light text on a dark background.
- High Contrast: stronger contrast between text and background.
- System: follows your computer’s own light or dark setting. It’s the default.
The pgAdmin documentation (opens in a new tab) lists the same four themes.
Step 3: Save
Click the Save button, the disk icon at the top left of the Preferences tab:

The whole window switches at once, with no restart:

The Query Tool follows too:

Switch Back
To go back, choose System or Light in the same list and click Save.
FAQ
Why is my pgAdmin already dark?
Because the default theme, System, follows your computer. When your computer is set to dark mode, pgAdmin is dark too.
Is there a theme that is easier to read?
Try High Contrast, in the same Theme list.
Conclusion
Open Preferences with the gear button, choose Dark under Miscellaneous › User Interface › Theme, and click Save. pgAdmin switches straight away, and System puts it back to following your computer.
Additional Resources
Related
- PostgreSQL Tutorial — Part 3: pgAdmin 4 for Beginners
- How to Change the Font Size in pgAdmin 4
- How to Use the Query Tool in pgAdmin 4
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.
0 comments