Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

softer dark mode #7178

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 8 additions & 7 deletions src/browser/pages/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body,

body {
background: rgb(244, 247, 252);
background: light-dark(rgb(244, 247, 252), #111);
background: light-dark(rgb(244, 247, 252), #111827);
color: #111;
color: light-dark(#111, #ddd);
margin: 0;
Expand All @@ -29,14 +29,15 @@ button {

.-button {
background-color: rgb(87, 114, 245);
background-color: light-dark(rgb(87, 114, 245), rgb(50, 85, 250));
background-color: light-dark(rgb(87, 114, 245), rgb(26, 86, 219));
border-radius: 5px;
border: none;
box-sizing: border-box;
color: white;
color: light-dark(white, #ddd);
color: light-dark(white, white);
cursor: pointer;
padding: 18px 20px;
font-weight: 500;
text-decoration: none;
}

Expand All @@ -53,7 +54,7 @@ button {

.card-box {
background-color: rgb(250, 253, 258);
background-color: light-dark(rgb(250, 253, 258), #000);
background-color: light-dark(rgb(250, 253, 258), #1f2937);
border-radius: 5px;
box-shadow:
rgba(60, 66, 87, 0.117647) 0px 7px 14px 0px,
Expand All @@ -64,9 +65,9 @@ button {

.card-box > .header {
border-bottom: 1px solid #ddd;
border-bottom: 1px solid light-dark(#ddd, #222);
border-bottom: 1px solid light-dark(#ddd, #1f2937);
color: #444;
color: light-dark(#444, #ccc);
color: light-dark(#444, #fff);
padding: 30px;
}

Expand All @@ -77,7 +78,7 @@ button {

.card-box > .header > .sub {
color: #555;
color: light-dark(#555, #aaa);
color: light-dark(#555, #9ca3af);
margin-top: 10px;
}

Expand Down
12 changes: 10 additions & 2 deletions src/browser/pages/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,23 @@ body {

.login-form > .field > .password {
background-color: rgb(244, 247, 252);
background-color: light-dark(rgb(244, 247, 252), #222);
background-color: light-dark(rgb(244, 247, 252), #374151);
border-radius: 5px;
border: 1px solid #ddd;
border: 1px solid light-dark(#ddd, #333);
border: 1px solid light-dark(#ddd, #4b5563);
box-sizing: border-box;
flex: 1;
padding: 16px;
}

.login-form > .field > .password::placeholder {
color: rgb(148 163 184);
}

.login-form > .field > .password:focus {
outline: 2px solid rgb(63, 131, 248);
}

.login-form > .user {
display: none;
}
Expand Down