Use theme context, scheme tailwind utilities

This commit is contained in:
shamoon 2024-11-27 22:08:17 -08:00
parent 907abee1aa
commit 974bb582ae
No known key found for this signature in database

View File

@ -454,6 +454,7 @@ function Home({ initialSettings }) {
}
export default function Wrapper({ initialSettings, fallback }) {
const { theme } = useContext(ThemeContext);
const wrappedStyle = {};
let backgroundBlur = false;
let backgroundSaturate = false;
@ -484,8 +485,9 @@ export default function Wrapper({ initialSettings, fallback }) {
id="page_wrapper"
className={classNames(
"relative",
initialSettings.theme && initialSettings.theme,
theme && theme,
initialSettings.color && `theme-${initialSettings.color}`,
theme === "dark" ? "scheme-dark" : "scheme-light",
)}
>
<div