How to change css item based on dark or light mode?

i suspect this topic may help you.