Skip to content

Commit be076f4

Browse files
committed
Reduce the brightness in dark mode.
affect: - images - site title text
1 parent 53100fa commit be076f4

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

assets/css/_colors/dark-typography.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
--label-color: rgb(108, 117, 125);
3838

3939
/* Sidebar */
40+
--site-title-color: rgba(255, 255, 255, 0.5);
4041
--nav-cursor-color: rgb(183, 182, 182);
4142
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
4243

@@ -85,6 +86,9 @@
8586
/* Footer */
8687
---footer-link: rgb(146, 146, 146);
8788

89+
img {
90+
filter: brightness(90%);
91+
}
8892

8993
hr {
9094
border-color: var(--main-border-color);

assets/css/_colors/light-typography.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444

4545
/* Sidebar */
4646

47+
--site-title-color: #b6b6b6;
48+
4749
--sidebar-bg: radial-gradient(
4850
circle, rgba(42, 30, 107, 1) 0%, rgba(35, 37, 46, 1) 100%);
4951

assets/css/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ $tab-count: {{ site.data.tabs | size }};
253253
#site-title {
254254
text-align: center;
255255
a {
256-
color: #b6b6b6;
256+
color: var(--site-title-color);
257257
font-weight: 900;
258258
font-size: 1.5rem;
259259
letter-spacing: .5px;

0 commit comments

Comments
 (0)