From e83466c074479d8418d525b445d84e5d13f19ccb Mon Sep 17 00:00:00 2001 From: WinsDominoes Date: Tue, 7 May 2024 18:15:11 +0700 Subject: [PATCH] update css --- assets/css/style.css | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 110560b..96d32b4 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1,13 +1,42 @@ @import url("../fonts/Inter-VariableFont_slnt\,wght.ttf"); +:root { + color-scheme: light dark; + + --light-bg: #fafafa; + --light-color: rgba(0, 0, 0, 0.8); + + --dark-bg: #242424; + --dark-color: #ffffff; +} + +* { + background-color: light-dark(var(--light-bg), var(--dark-bg)); + color: light-dark(var(--light-color), var(--dark-color)); +} + html, body { font-family: 'Inter', sans-serif; font-optical-sizing: auto; font-style: normal; - + margin: 0; padding: 0; +} - background-color: #242424; - color: #ffffff; +h1, h2, h3, h4, h5 { + margin: 0; + padding: 0; +} + +a { + text-decoration: none; +} + +.light { + color-scheme: light; +} + +.dark { + color-scheme: dark; } \ No newline at end of file