Light and Darkmode in CSS?

It only helps you with detecting the mode though, you would still have to write the right code for each scenario.