Skip to content

Commit

Permalink
softer dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bilogic committed Jan 21, 2025
1 parent 7cc61ab commit ef592f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
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

0 comments on commit ef592f6

Please sign in to comment.