improved static styles and x-browser scrollbars

This commit is contained in:
Ben Phelps
2022-09-30 22:13:37 +03:00
parent 2271cc0044
commit f52c6f3b41
5 changed files with 61 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ export function ColorProvider({ initialTheme, children }) {
const [color, setColor] = useState(getInitialColor);
const rawSetColor = (rawColor) => {
const root = window.document.documentElement;
const root = window.document.getElementById("page_wrapper");
root.classList.remove(`theme-${lastColor}`);
root.classList.add(`theme-${rawColor}`);