How to set dark theme in YouTrack
It's only availalbe for agile board body (not header). The control for enabling it is near from where you switch board card details mode -- right buttons groups below the search bar. Update: in YouTrack 2018.3 the dark theme is available on single issue screen view, soon coming to issue list.