Skip to main content
0 reactions

How to Turn On Dark Mode in pgAdmin 4

Featured card for the guide Dark Mode in pgAdmin 4, with a checklist: Preferences, User Interface, Theme set to Dark, and Save with no restart.
How to Turn On Dark Mode in pgAdmin 4

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:

The bottom-left corner of the pgAdmin 4 window, where the gear-shaped Preferences button sits below the Object Explorer.
The gear at the bottom left opens Preferences.

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:

Preferences open at Miscellaneous, User Interface, with the Theme list open and showing Light, Dark, High Contrast and System.
Theme offers Light, Dark, High Contrast and System.
  • 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:

Preferences at Miscellaneous, User Interface with Theme set to Dark, the hint Click the save button to apply the theme, and the Save button, a disk icon, at the top left of the tab.
Dark is chosen; click the disk icon at the top left to save.

The whole window switches at once, with no restart:

The pgAdmin 4 window in the Dark theme, with the Object Explorer and the Dashboard graphs on a dark background.
After Save, the whole window switches to the Dark theme.

The Query Tool follows too:

The Query Tool in the Dark theme, with SELECT ‘Dark mode is on’ AS message; in the editor and its result in Data Output.
The Query Tool in the Dark theme.

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

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