We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ca0046 commit c7c082fCopy full SHA for c7c082f
1 file changed
apps/web/src/core/vscode/use-vscode-theme.hook.ts
@@ -21,8 +21,10 @@ const applyTheme = (theme: ThemePayload): void => {
21
root.style.setProperty(cssVar, value);
22
}
23
24
- if (theme.background) document.body.style.backgroundColor = theme.background;
25
- if (theme.foreground) document.body.style.color = theme.foreground;
+ if (theme.background)
+ document.body.style.setProperty('background-color', theme.background);
26
+ if (theme.foreground)
27
+ document.body.style.setProperty('color', theme.foreground);
28
};
29
30
export const useVSCodeTheme = (): void => {
0 commit comments