Skip to content

Commit

Permalink
Merge pull request #97 from subquery/feat/dark-mode
Browse files Browse the repository at this point in the history
feat: dark mode
  • Loading branch information
HuberTRoy authored Nov 3, 2023
2 parents 81a491d + 58d3cac commit 6f1616b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/app/header/Header.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
margin-left: 24px;
&__menu {
&--dark.@{middle}__menu--dark.@{middle}__menu--dark {
background-color: var(--sq-gray800);
background-color: var(--dark-mode-card);
padding: 0;
border-radius: 0;
}
Expand Down Expand Up @@ -90,7 +90,7 @@
padding: 16px;

&--dark {
background-color: var(--sq-gray800);
background-color: var(--dark-mode-card);
}
}

Expand Down Expand Up @@ -152,7 +152,7 @@
box-shadow: none;
padding: 0;
&--dark {
background: var(--dark-color);
background: var(--dark-mode-background);
}
}
}
Expand Down Expand Up @@ -181,7 +181,7 @@
}

&--dark.@{middle}__menu--dark.@{middle}__menu--dark {
background: var(--dark-color);
background: var(--dark-mode-card);
}

&-item.@{middle}__menu-item.@{middle}__menu-item {
Expand Down
2 changes: 1 addition & 1 deletion components/common/typography/Typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
margin: 0;
padding: 0;
font-family: var(--sq-font-family);
display: inline;
display: inline-block;

&__h1 {
font-family: var(--sq-font-family-header);
Expand Down
4 changes: 3 additions & 1 deletion components/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
--sq-shadow2: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px rgba(0, 0, 0, 0.08),
0px 9px 28px 8px rgba(0, 0, 0, 0.05);

--dark-color: #161c24;
--dark-mode-card: #1b2545;
--dark-mode-border: #34414b;
--dark-mode-background: #060f32;

/* Sizes */

Expand Down

0 comments on commit 6f1616b

Please sign in to comment.