Skip to content

Commit 02bd492

Browse files
committed
fix: use the themeColor options in the renderer hooks after it has been parsed
Closes #1
1 parent 4e62550 commit 02bd492

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ export function load(app: Application) {
1919
defaultValue: "#cb9820",
2020
});
2121

22-
const styles = getThemeCSSProperties(
23-
app.options.getValue("themeColor") as string,
24-
);
25-
2622
app.renderer.hooks.on("head.end", (event) => (
2723
<>
2824
<style>
29-
<JSX.Raw html={styles} />
25+
<JSX.Raw
26+
html={getThemeCSSProperties(
27+
app.options.getValue("themeColor") as string,
28+
)}
29+
/>
3030
</style>
3131
<link
3232
rel="stylesheet"

0 commit comments

Comments
 (0)