This commit is contained in:
Chris Kruining 2024-11-28 13:53:30 +01:00
parent d58c57f5fa
commit 446b4a456f
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -46,15 +46,19 @@ export default function Editor(props: ParentProps) {
return isServer ? 'lch(.5 .75 0deg)' : globalThis.getComputedStyle(document.body).backgroundColor;
});
createEffect(() => {
console.log(theme(), themeColor());
})
return <>
<Meta name="color-scheme" content={theme().colorScheme} />
<Meta name="theme-color" content={themeColor()} />
<Style>{`
<style>{`
:root {
--hue: ${theme().hue}deg !important;
}
`}</Style>
`}</style>
</>;
}
}</Show>