Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 4 additions & 26 deletions ui/css/base-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
--width-max: 798px;
--width-max-sidepanel: 490px;
--header-height: 68px;
color-scheme: dark light;
background-color: light-dark(var(--brand-colors-grey-grey000), var(--brand-colors-grey-grey900));
}

html,
Expand All @@ -25,28 +27,8 @@ body {
text-rendering: optimizeLegibility;
}

html {
@include design-system.screen-sm-max {
&:not([data-theme]) {
background-color: var(--color-background-default);
}
}

/*
Until we get the user's preference from React state,
assume the user is in dark mode, because the default
theme is system preference
*/
@media (prefers-color-scheme: dark) {
&:not([data-theme]) {
color: var(--brand-colors-white);
background-color: var(--brand-colors-grey-grey900);

body {
color: var(--brand-colors-white);
}
}
}
html[data-theme] {
background-color: var(--color-background-default);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches main container

}

/* stylelint-disable */
Expand All @@ -55,10 +37,6 @@ html {
height: 100%;
display: flex;
flex-direction: column;

html[data-theme] & {
background: var(--color-background-alternative);
}
}
/* stylelint-enable */

Expand Down
Loading