Skip to content

Commit 84e8645

Browse files
committed
fix(ui): avoid wrong body background color
1 parent 4b068f9 commit 84e8645

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

static/app/styles/global.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,16 @@ const styles = (theme: Theme, isDark: boolean) => css`
142142
background: ${theme.tokens.background.primary};
143143
}
144144
145+
/*this updates styles set by base.less to match our theme*/
146+
body.theme-dark {
147+
background: ${theme.tokens.background.primary};
148+
}
149+
body.theme-system {
150+
@media (prefers-color-scheme: dark) {
151+
background: ${theme.tokens.background.primary};
152+
}
153+
}
154+
145155
abbr {
146156
${theme.tooltipUnderline()};
147157
}

0 commit comments

Comments
 (0)