Skip to content

Commit

Permalink
feat: use dark colors for background on initial app loading with dark…
Browse files Browse the repository at this point in the history
… theme (#4980)

For dark theme, use dark colors for background on initial app loading

Co-authored-by: Gokul Raam <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
  • Loading branch information
3 people authored Nov 1, 2023
1 parent d4718d7 commit 8c74849
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/compass/src/app/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@
}
}

@media (prefers-color-scheme: dark) {
:root {
background-color: @palette__black;
color: @palette__white;
}
#loading {
&-sidebar {
background: @palette__black;
}
&-content {
background: @palette__black;
}
}
}

@keyframes fadein {
from {
opacity: 0;
Expand Down

0 comments on commit 8c74849

Please sign in to comment.