Indicate support for dark and light theme to browsers using color-scheme

This commit is contained in:
Lilian 2024-12-23 01:00:04 +01:00 committed by kleines Filmröllchen
parent b184b043ac
commit 4cd86a1558

View file

@ -6,6 +6,11 @@
--main-accent-color: #f9c827; --main-accent-color: #f9c827;
--secondary-accent-color: #ff925f; --secondary-accent-color: #ff925f;
/* Tell browser that we support dark and light mode.
Allows browser to change UI elements to match the color scheme.
By default browser assume only light mode is supported and draw elements accordingly.
This for example includes the chrome scrollbar and default form elements. */
color-scheme: dark light;
scroll-behavior: smooth; scroll-behavior: smooth;
} }