Skip to content

Commit a8711d5

Browse files
Include new light palettes in the theme boot script.
Sakura, Citrus, Peach, Cotton Candy, Clear Sky, and Coral Reef were flashing the dark color-scheme before React applied the theme. Co-authored-by: Damon <Modsofthenation@users.noreply.github.com>
1 parent b887504 commit a8711d5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/loadpath/static/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
try {
1010
var t = localStorage.getItem("loadpath.theme");
1111
if (t) document.documentElement.setAttribute("data-theme", t);
12-
var light = { paper: 1, "solarized-light": 1, seafoam: 1, "high-contrast": 1 };
12+
var light = { paper: 1, "solarized-light": 1, seafoam: 1, "high-contrast": 1, sakura: 1, citrus: 1, peach: 1, candy: 1, sky: 1, coral: 1 };
1313
document.documentElement.style.colorScheme = light[t] ? "light" : "dark";
1414
} catch (e) {}
1515
})();

‎ui/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
try {
1010
var t = localStorage.getItem("loadpath.theme");
1111
if (t) document.documentElement.setAttribute("data-theme", t);
12-
var light = { paper: 1, "solarized-light": 1, seafoam: 1, "high-contrast": 1 };
12+
var light = { paper: 1, "solarized-light": 1, seafoam: 1, "high-contrast": 1, sakura: 1, citrus: 1, peach: 1, candy: 1, sky: 1, coral: 1 };
1313
document.documentElement.style.colorScheme = light[t] ? "light" : "dark";
1414
} catch (e) {}
1515
})();

0 commit comments

Comments
 (0)