From dce85a2b7a73814bb936d1b3143e46a7a99cb4ed Mon Sep 17 00:00:00 2001 From: CDN Date: Mon, 2 Dec 2024 17:50:32 +0800 Subject: [feature/themes] Add auto-switching themes for blurple/brutalist/solarized (#3588) --- web/assets/themes/solarized-auto.css | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 web/assets/themes/solarized-auto.css (limited to 'web/assets/themes/solarized-auto.css') diff --git a/web/assets/themes/solarized-auto.css b/web/assets/themes/solarized-auto.css new file mode 100644 index 000000000..8324ef5f7 --- /dev/null +++ b/web/assets/themes/solarized-auto.css @@ -0,0 +1,10 @@ +/* + theme-title: Solarized (auto) + theme-description: Solarized theme that adapts to system preferences +*/ + +/* Default to dark theme */ +@import url("solarized-dark.css"); + +@import url("solarized-light.css") screen and (prefers-color-scheme: light); +@import url("solarized-dark.css") screen and (prefers-color-scheme: dark); -- cgit v1.3