Use theme context, scheme tailwind utilities
This commit is contained in:
parent
907abee1aa
commit
974bb582ae
@ -454,6 +454,7 @@ function Home({ initialSettings }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Wrapper({ initialSettings, fallback }) {
|
export default function Wrapper({ initialSettings, fallback }) {
|
||||||
|
const { theme } = useContext(ThemeContext);
|
||||||
const wrappedStyle = {};
|
const wrappedStyle = {};
|
||||||
let backgroundBlur = false;
|
let backgroundBlur = false;
|
||||||
let backgroundSaturate = false;
|
let backgroundSaturate = false;
|
||||||
@ -484,8 +485,9 @@ export default function Wrapper({ initialSettings, fallback }) {
|
|||||||
id="page_wrapper"
|
id="page_wrapper"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"relative",
|
"relative",
|
||||||
initialSettings.theme && initialSettings.theme,
|
theme && theme,
|
||||||
initialSettings.color && `theme-${initialSettings.color}`,
|
initialSettings.color && `theme-${initialSettings.color}`,
|
||||||
|
theme === "dark" ? "scheme-dark" : "scheme-light",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user