diff options
author | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-08-05 19:25:26 +0100 |
---|---|---|
committer | João Augusto Costa Branco Marado Torres <torres.dev@disroot.org> | 2025-08-05 19:25:26 +0100 |
commit | 9676f0af3de2b4e49b6bb8f82ff9f97d69ab2324 (patch) | |
tree | 6b0150c82314b73b8cfe39b7f5a2fff8b80b1166 /src/styles | |
parent | 17e543a3e86872462599f6a6a46def732ee2c7ee (diff) |
feat: add color-scheme property
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/styles')
-rw-r--r-- | src/styles/global.css | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/styles/global.css b/src/styles/global.css index 36ebe55..7a3ed0e 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -15,6 +15,7 @@ --color-light-bg: oklch(0.73 0 0); --color-dark: oklch(0.47 0 0); --color-dark-bg: oklch(0.36 0 0); + --scheme: light; --size-13: 7.4375rem; --size-12: 5.5625rem; @@ -39,6 +40,7 @@ body { max-width: 80ch; font-family: var(--ff-sans); padding: 0 calc(var(--size-2) * 1em) calc(var(--size-10) * 1em); + color-scheme: var(--scheme); } a:link { @@ -65,6 +67,7 @@ a:active { --color-dark-bg: oklch(0.73 0 0); --color-light: oklch(0.47 0 0); --color-light-bg: oklch(0.36 0 0); + --scheme: dark; } } |