Skip to content

Commit d0aa641

Browse files
Add theme switcher and define light/dark palettes
Enable theme switching and introduce separate light and dark color variables in _config_theme.yml. Adds theme-switcher settings (style: button), consolidates color configuration into explicit light and dark palettes (page/text/link/hover/navbar/footer variants), and preserves mobile-theme-col. Also renames assets/css/pygment_highlights.css to assets/css/pygment_highlights_dark.css.bak as a backup of the dark syntax styles.
1 parent 30b5c07 commit d0aa641

File tree

2 files changed

+30
-12
lines changed

2 files changed

+30
-12
lines changed

_config_theme.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@ post_search: true
6060
edit_page_button: true
6161
navbar-var-length: true
6262
keywords: "LizardByte,Sunshine,Moonlight,self-hosted,gamestreaming,gamestream,game,streaming,media server"
63-
footer-col: "#242526"
64-
footer-hover-col: "#28a9e6"
65-
footer-link-col: "#dfdfdf"
66-
footer-text-col: "#a8aaa8"
67-
hover-col: "#28a9e6"
68-
link-col: "#28a9e6"
69-
navbar-border-col: "#393a3b"
70-
navbar-col: "#151515"
71-
navbar-text-col: "#e4e6eb"
72-
page-col: "#303436"
73-
text-col: "#e4e4e4"
74-
mobile-theme-col: "#05FF3B"
7563
sass:
7664
sass_dir: _sass
7765
style: compressed
@@ -81,6 +69,8 @@ site-css:
8169
site-js:
8270
- "https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@2025.326.11214/dist/crowdin.js"
8371
- "/assets/js/crowdin-init.js"
72+
theme-switcher: true
73+
theme-switcher-style: 'button'
8474
gtag: "G-SSW90X5YZX"
8575
giscus:
8676
hostname: giscus.app # Replace with your giscus instance's hostname if self-hosting
@@ -98,6 +88,34 @@ giscus:
9888
lazy-loading: true
9989
date_format: "%B %-d, %Y"
10090

91+
# Light theme colors
92+
page-col: "#ffffff"
93+
text-col: "#404040"
94+
link-col: "#28a9e6"
95+
hover-col: "#1c7fb3"
96+
navbar-col: "#f8f9fa"
97+
navbar-text-col: "#212529"
98+
navbar-border-col: "#dee2e6"
99+
footer-col: "#f8f9fa"
100+
footer-text-col: "#6c757d"
101+
footer-link-col: "#212529"
102+
footer-hover-col: "#28a9e6"
103+
104+
# Dark theme colors
105+
dark-page-col: "#303436"
106+
dark-text-col: "#e4e4e4"
107+
dark-link-col: "#28a9e6"
108+
dark-hover-col: "#28a9e6"
109+
dark-navbar-col: "#151515"
110+
dark-navbar-text-col: "#e4e6eb"
111+
dark-navbar-border-col: "#393a3b"
112+
dark-footer-col: "#242526"
113+
dark-footer-text-col: "#a8aaa8"
114+
dark-footer-link-col: "#dfdfdf"
115+
dark-footer-hover-col: "#28a9e6"
116+
117+
mobile-theme-col: "#05FF3B"
118+
101119
# Advanced settings
102120
timezone: "America/New_York"
103121
markdown: kramdown
File renamed without changes.

0 commit comments

Comments
 (0)