diff options
author | 2024-12-02 17:50:32 +0800 | |
---|---|---|
committer | 2024-12-02 10:50:32 +0100 | |
commit | dce85a2b7a73814bb936d1b3143e46a7a99cb4ed (patch) | |
tree | 160cbbdde610b1482a8e14e0c29f335998b19aa5 | |
parent | [docs/zh] Update zh docs: synced to da4db81bcf1a66d0de559015e061e602d8f2fcb8 ... (diff) | |
download | gotosocial-dce85a2b7a73814bb936d1b3143e46a7a99cb4ed.tar.xz |
[feature/themes] Add auto-switching themes for blurple/brutalist/solarized (#3588)
-rw-r--r-- | web/assets/themes/blurple-auto.css | 10 | ||||
-rw-r--r-- | web/assets/themes/brutalist-auto.css | 10 | ||||
-rw-r--r-- | web/assets/themes/solarized-auto.css | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/web/assets/themes/blurple-auto.css b/web/assets/themes/blurple-auto.css new file mode 100644 index 000000000..817a07248 --- /dev/null +++ b/web/assets/themes/blurple-auto.css @@ -0,0 +1,10 @@ +/* + theme-title: Blurple (auto) + theme-description: Official blurple theme that adapts to system preferences +*/ + +/* Default to dark theme */ +@import url("blurple-dark.css"); + +@import url("blurple-light.css") screen and (prefers-color-scheme: light); +@import url("blurple-dark.css") screen and (prefers-color-scheme: dark); diff --git a/web/assets/themes/brutalist-auto.css b/web/assets/themes/brutalist-auto.css new file mode 100644 index 000000000..080360c87 --- /dev/null +++ b/web/assets/themes/brutalist-auto.css @@ -0,0 +1,10 @@ +/* + theme-title: Brutalist (auto) + theme-description: Official (Pseudo-)monochrome brutality theme that adapts to system preferences +*/ + +/* Default to brutalist theme */ +@import url("brutalist.css"); + +@import url("brutalist.css") screen and (prefers-color-scheme: light); +@import url("brutalist-dark.css") screen and (prefers-color-scheme: dark); 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); |