Enhancement: use css color-scheme (#4349)

pull/4353/head
shamoon 2 days ago committed by GitHub
parent 230da3d2eb
commit 6d829bce79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -452,6 +452,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;
@ -482,8 +483,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…
Cancel
Save