feat: Ajout d'un bouton pour changer le theme
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2023-03-07 11:14:59 +01:00
parent 0ead0dacc6
commit a14621cdbe
5 changed files with 61 additions and 10 deletions

View File

@ -11,13 +11,18 @@
}
/* semantic color variables for this project */
:root {
:root, body.theme-light {
--color-background: var(--color-white);
--color-text: var(--color-black);
--color-highlight: var(--color-green);
--header-size: var(--header-size-small);
}
body.theme-dark {
--color-background: var(--color-black);
--color-text: var(--color-white);
}
@media (prefers-color-scheme: dark) {
:root {
--color-background: var(--color-black);