kaas
This commit is contained in:
parent
d58c57f5fa
commit
446b4a456f
1 changed files with 9 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue