When you are in a dark environment, for example at night, a dark theme can be much more comfortable for the eyes.
Open the menu ( ) on the right side of the headerbar.
Click on the dark or light circle, and the theme switches to it.