mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
Enhancement: use css color-scheme (#4349)
This commit is contained in:
parent
230da3d2eb
commit
6d829bce79
@ -452,6 +452,7 @@ function Home({ initialSettings }) {
|
||||
}
|
||||
|
||||
export default function Wrapper({ initialSettings, fallback }) {
|
||||
const { theme } = useContext(ThemeContext);
|
||||
const wrappedStyle = {};
|
||||
let backgroundBlur = false;
|
||||
let backgroundSaturate = false;
|
||||
@ -482,8 +483,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user