Skip to content

Commit

Permalink
fix: use the themeColor options in the renderer hooks after it has be…
Browse files Browse the repository at this point in the history
…en parsed

Closes #1
  • Loading branch information
dmnsgn committed Nov 24, 2023
1 parent 4e62550 commit 02bd492
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export function load(app: Application) {
defaultValue: "#cb9820",
});

const styles = getThemeCSSProperties(
app.options.getValue("themeColor") as string,
);

app.renderer.hooks.on("head.end", (event) => (
<>
<style>
<JSX.Raw html={styles} />
<JSX.Raw
html={getThemeCSSProperties(
app.options.getValue("themeColor") as string,
)}
/>
</style>
<link
rel="stylesheet"
Expand Down

0 comments on commit 02bd492

Please sign in to comment.