diff --git a/src/webui/www/private/addpeers.html b/src/webui/www/private/addpeers.html
index e0639a5f3..4a23ace3d 100644
--- a/src/webui/www/private/addpeers.html
+++ b/src/webui/www/private/addpeers.html
@@ -4,7 +4,6 @@
QBT_TR(Add Peers)QBT_TR[CONTEXT=PeersAdditionDialog]
-
diff --git a/src/webui/www/private/addtrackers.html b/src/webui/www/private/addtrackers.html
index 4618820dc..5bf5670cf 100644
--- a/src/webui/www/private/addtrackers.html
+++ b/src/webui/www/private/addtrackers.html
@@ -4,7 +4,6 @@
QBT_TR(Add trackers)QBT_TR[CONTEXT=TrackersAdditionDialog]
-
diff --git a/src/webui/www/private/confirmdeletion.html b/src/webui/www/private/confirmdeletion.html
index 12c5ce49e..6ce0174e8 100644
--- a/src/webui/www/private/confirmdeletion.html
+++ b/src/webui/www/private/confirmdeletion.html
@@ -4,7 +4,6 @@
QBT_TR(Remove torrent(s))QBT_TR[CONTEXT=confirmDeletionDlg]
-
diff --git a/src/webui/www/private/confirmfeeddeletion.html b/src/webui/www/private/confirmfeeddeletion.html
index 40661d155..dba355316 100644
--- a/src/webui/www/private/confirmfeeddeletion.html
+++ b/src/webui/www/private/confirmfeeddeletion.html
@@ -4,7 +4,6 @@
QBT_TR(Deletion confirmation)QBT_TR[CONTEXT=RSSWidget]
-
diff --git a/src/webui/www/private/confirmruleclear.html b/src/webui/www/private/confirmruleclear.html
index 98f326ba3..6ea5ce63e 100644
--- a/src/webui/www/private/confirmruleclear.html
+++ b/src/webui/www/private/confirmruleclear.html
@@ -4,7 +4,6 @@
QBT_TR(Clear downloaded episodes)QBT_TR[CONTEXT=AutomatedRssDownloader]
-
diff --git a/src/webui/www/private/confirmruledeletion.html b/src/webui/www/private/confirmruledeletion.html
index fc05af54c..6418ff122 100644
--- a/src/webui/www/private/confirmruledeletion.html
+++ b/src/webui/www/private/confirmruledeletion.html
@@ -4,7 +4,6 @@
QBT_TR(Rule deletion confirmation)QBT_TR[CONTEXT=AutomatedRssDownloader]
-
diff --git a/src/webui/www/private/css/Layout.css b/src/webui/www/private/css/Layout.css
index 6ff68a214..b30cc953a 100644
--- a/src/webui/www/private/css/Layout.css
+++ b/src/webui/www/private/css/Layout.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
/*
Core.css for Mocha UI
diff --git a/src/webui/www/private/css/Tabs.css b/src/webui/www/private/css/Tabs.css
index 3572680c0..b4a194536 100644
--- a/src/webui/www/private/css/Tabs.css
+++ b/src/webui/www/private/css/Tabs.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
/*
Tabs.css for Mocha UI
diff --git a/src/webui/www/private/css/Window.css b/src/webui/www/private/css/Window.css
index 72283f097..73cab1219 100644
--- a/src/webui/www/private/css/Window.css
+++ b/src/webui/www/private/css/Window.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
/*
Window.css for Mocha UI
diff --git a/src/webui/www/private/css/dynamicTable.css b/src/webui/www/private/css/dynamicTable.css
index 7970d0032..a10f8eb77 100644
--- a/src/webui/www/private/css/dynamicTable.css
+++ b/src/webui/www/private/css/dynamicTable.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
/**************************************************************
Dynamic Table
diff --git a/src/webui/www/private/css/style.css b/src/webui/www/private/css/style.css
index 750b55cb9..07513cbc1 100644
--- a/src/webui/www/private/css/style.css
+++ b/src/webui/www/private/css/style.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
/* Reset */
a img,
diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html
index e06554cc0..913a10001 100644
--- a/src/webui/www/private/download.html
+++ b/src/webui/www/private/download.html
@@ -4,7 +4,6 @@
QBT_TR(Add Torrent Links)QBT_TR[CONTEXT=downloadFromURL]
-
diff --git a/src/webui/www/private/downloadlimit.html b/src/webui/www/private/downloadlimit.html
index d60af2ac2..fa49266dd 100644
--- a/src/webui/www/private/downloadlimit.html
+++ b/src/webui/www/private/downloadlimit.html
@@ -4,7 +4,6 @@
QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]
-
diff --git a/src/webui/www/private/edittracker.html b/src/webui/www/private/edittracker.html
index 51a68c982..17d2a92d2 100644
--- a/src/webui/www/private/edittracker.html
+++ b/src/webui/www/private/edittracker.html
@@ -4,7 +4,6 @@
QBT_TR(Tracker editing)QBT_TR[CONTEXT=TrackerListWidget]
-
diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html
index 09188c6c5..768ffac2f 100644
--- a/src/webui/www/private/index.html
+++ b/src/webui/www/private/index.html
@@ -8,7 +8,6 @@
qBittorrent Web UI
-
diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html
index b5c147a1e..63186e013 100644
--- a/src/webui/www/private/newcategory.html
+++ b/src/webui/www/private/newcategory.html
@@ -4,7 +4,6 @@
QBT_TR(New Category)QBT_TR[CONTEXT=TransferListWidget]
-
diff --git a/src/webui/www/private/newfeed.html b/src/webui/www/private/newfeed.html
index 12fd3c9d5..4f6204a9d 100644
--- a/src/webui/www/private/newfeed.html
+++ b/src/webui/www/private/newfeed.html
@@ -4,7 +4,6 @@
QBT_TR(Please type a RSS feed URL)QBT_TR[CONTEXT=RSSWidget]
-
diff --git a/src/webui/www/private/newfolder.html b/src/webui/www/private/newfolder.html
index 7d064241c..cc1259b8d 100644
--- a/src/webui/www/private/newfolder.html
+++ b/src/webui/www/private/newfolder.html
@@ -4,7 +4,6 @@
QBT_TR(Please choose a folder name)QBT_TR[CONTEXT=RSSWidget]
-
diff --git a/src/webui/www/private/newrule.html b/src/webui/www/private/newrule.html
index 5bf6dc764..99cb8ba78 100644
--- a/src/webui/www/private/newrule.html
+++ b/src/webui/www/private/newrule.html
@@ -4,7 +4,6 @@
QBT_TR(New rule name)QBT_TR[CONTEXT=AutomatedRssDownloader]
-
diff --git a/src/webui/www/private/newtag.html b/src/webui/www/private/newtag.html
index 2ca8d7aa5..16b779ce3 100644
--- a/src/webui/www/private/newtag.html
+++ b/src/webui/www/private/newtag.html
@@ -4,7 +4,6 @@
QBT_TR(Add Tags)QBT_TR[CONTEXT=TransferListWidget]
-
diff --git a/src/webui/www/private/rename.html b/src/webui/www/private/rename.html
index 0afa7a665..1284812db 100644
--- a/src/webui/www/private/rename.html
+++ b/src/webui/www/private/rename.html
@@ -4,7 +4,6 @@
QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]
-
diff --git a/src/webui/www/private/rename_feed.html b/src/webui/www/private/rename_feed.html
index 898310994..141e1a01f 100644
--- a/src/webui/www/private/rename_feed.html
+++ b/src/webui/www/private/rename_feed.html
@@ -4,7 +4,6 @@
QBT_TR(Please choose a new name for this RSS feed)QBT_TR[CONTEXT=RSSWidget]
-
diff --git a/src/webui/www/private/rename_file.html b/src/webui/www/private/rename_file.html
index 3bd671d59..49cdbada8 100644
--- a/src/webui/www/private/rename_file.html
+++ b/src/webui/www/private/rename_file.html
@@ -4,7 +4,6 @@
QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]
-
diff --git a/src/webui/www/private/rename_files.html b/src/webui/www/private/rename_files.html
index 276d7c302..01ede024c 100644
--- a/src/webui/www/private/rename_files.html
+++ b/src/webui/www/private/rename_files.html
@@ -4,7 +4,6 @@
QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]
-
diff --git a/src/webui/www/private/rename_rule.html b/src/webui/www/private/rename_rule.html
index 8158e7746..cbc252c3c 100644
--- a/src/webui/www/private/rename_rule.html
+++ b/src/webui/www/private/rename_rule.html
@@ -4,7 +4,6 @@
QBT_TR(Rule renaming)QBT_TR[CONTEXT=AutomatedRssDownloader]
-
diff --git a/src/webui/www/private/setlocation.html b/src/webui/www/private/setlocation.html
index a23e80c7c..36a2ee815 100644
--- a/src/webui/www/private/setlocation.html
+++ b/src/webui/www/private/setlocation.html
@@ -4,7 +4,6 @@
QBT_TR(Set location)QBT_TR[CONTEXT=HttpServer]
-
diff --git a/src/webui/www/private/shareratio.html b/src/webui/www/private/shareratio.html
index a6685411b..897f0cb01 100644
--- a/src/webui/www/private/shareratio.html
+++ b/src/webui/www/private/shareratio.html
@@ -4,7 +4,6 @@
QBT_TR(Torrent Upload/Download Ratio Limiting)QBT_TR[CONTEXT=UpDownRatioDialog]
-
diff --git a/src/webui/www/private/upload.html b/src/webui/www/private/upload.html
index 2fb0d02b6..b2e2b018c 100644
--- a/src/webui/www/private/upload.html
+++ b/src/webui/www/private/upload.html
@@ -4,7 +4,6 @@
QBT_TR(Upload local torrent)QBT_TR[CONTEXT=HttpServer]
-
diff --git a/src/webui/www/private/uploadlimit.html b/src/webui/www/private/uploadlimit.html
index da073af0e..e6cb93ef6 100644
--- a/src/webui/www/private/uploadlimit.html
+++ b/src/webui/www/private/uploadlimit.html
@@ -4,7 +4,6 @@
QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget]
-
diff --git a/src/webui/www/public/css/login.css b/src/webui/www/public/css/login.css
index 0aed63bb7..ac756fb0c 100644
--- a/src/webui/www/public/css/login.css
+++ b/src/webui/www/public/css/login.css
@@ -1,6 +1,4 @@
-:root {
- color-scheme: light dark;
-}
+@import url("palette.css");
body {
font-family: Arial, Helvetica, sans-serif;
diff --git a/src/webui/www/public/css/noscript.css b/src/webui/www/public/css/noscript.css
index a6509bb30..87ccb9a5d 100644
--- a/src/webui/www/public/css/noscript.css
+++ b/src/webui/www/public/css/noscript.css
@@ -1,3 +1,5 @@
+@import url("palette.css");
+
#formplace {
display: none;
}
diff --git a/src/webui/www/public/index.html b/src/webui/www/public/index.html
index d3902d4ec..f835e8acc 100644
--- a/src/webui/www/public/index.html
+++ b/src/webui/www/public/index.html
@@ -6,7 +6,6 @@
qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]
-