To activate the automatic dark mode:
Preferences → Interface → Enable automatic dark mode color scheme