theme-color meta needs to be in the head
This commit is contained in:
parent
9791c09a25
commit
ecf7b0df20
2 changed files with 11 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Link, Meta, Title } from "@solidjs/meta";
|
||||
import { Link, Meta, Style, Title } from "@solidjs/meta";
|
||||
import { Component, createEffect, createMemo, createSignal, createUniqueId, ErrorBoundary, ParentProps, Show } from "solid-js";
|
||||
import { FilesProvider } from "~/features/file";
|
||||
import { CommandPalette, CommandPaletteApi, Menu, MenuProvider } from "~/features/menu";
|
||||
|
@ -62,14 +62,14 @@ export default function Editor(props: ParentProps) {
|
|||
});
|
||||
|
||||
return <>
|
||||
<meta name="color-scheme" content={theme().colorScheme} />
|
||||
<meta name="theme-color" content={`oklch(${lightness()} .02 ${theme().hue})`} />
|
||||
<Meta name="color-scheme" content={theme().colorScheme} />
|
||||
<Meta name="theme-color" content={`oklch(${lightness()} .02 ${theme().hue})`} />
|
||||
|
||||
<style>{`
|
||||
<Style>{`
|
||||
:root {
|
||||
--hue: ${theme().hue}deg !important;
|
||||
}
|
||||
`}</style>
|
||||
`}</Style>
|
||||
</>;
|
||||
}
|
||||
}</Show>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue