Adding auto detection of dark themes based on css rules