Apprendre le CSS : Gérer le thème foncé / clair

🔗 Article: https://grafikart.fr/tutoriels/light-... On modern operating systems, users can switch between a light and dark theme according to their preferences. The good news is that this preference can be detected directly in CSS to automatically adapt the colors of your site. There are two approaches that allow you to take this preference into account: the media query `prefers-color-scheme` and the `light-dark()` function. ______________________ Support the channel: ⭐ Become a premium member: https://grafikart.fr/premium Find Grafikart: 🐦 Twitter:   / grafikart_fr   💬 Discord: https://grafikart.fr/tchat