Come aggiungere una classe body specifica per la modalità scura (o chiara)?

Would you mind explaining why you need specific classes added to the body for dark or light mode?

Does this core feature not allow what you are needing?