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;
|
return isServer ? 'lch(.5 .75 0deg)' : globalThis.getComputedStyle(document.body).backgroundColor;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
createEffect(() => {
|
||||||
|
console.log(theme(), themeColor());
|
||||||
|
})
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<Meta name="color-scheme" content={theme().colorScheme} />
|
<Meta name="color-scheme" content={theme().colorScheme} />
|
||||||
<Meta name="theme-color" content={themeColor()} />
|
<Meta name="theme-color" content={themeColor()} />
|
||||||
|
|
||||||
<Style>{`
|
<style>{`
|
||||||
:root {
|
:root {
|
||||||
--hue: ${theme().hue}deg !important;
|
--hue: ${theme().hue}deg !important;
|
||||||
}
|
}
|
||||||
`}</Style>
|
`}</style>
|
||||||
</>;
|
</>;
|
||||||
}
|
}
|
||||||
}</Show>
|
}</Show>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue