Skip to content

Commit ed8287c

Browse files
committed
Optimize dark theme
1 parent d608473 commit ed8287c

10 files changed

+19
-14
lines changed

_includes/script-theme.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
const metaThemeColor = {
2828
light: "#ffffff",
29-
dark: "#1f1f1f"
29+
dark: "#1d1d1d"
3030
}
3131

3232
/**

npm/dist/blog-404-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-index-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-post-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-scaffold-v2.0.0.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/blog-scaffold-v2.0.0.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/src/component/contentCard.scss

+6
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,10 @@ body {
6565
@include elevation.elevation(map.get(blogTheme.$card-elevation, "elevation"),
6666
map.get(blogTheme.$card-elevation, "min-screen-shadow-dark"), 0);
6767
}
68+
}
69+
70+
@media all and (min-width: (blogTheme.$screen-middle-min-width + 1px)) and (max-width: (blogTheme.$screen-middle-max-width - 1px)) {
71+
body {
72+
--content-card-padding-horizontal: 2rem;
73+
}
6874
}

npm/src/component/theme.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ $top-bar: (
2727
bg-light: #ffffff,
2828
bg-blur-light: rgba(255, 255, 255, 0.8),
2929
bg-shadow-light: #a46053,
30-
bg-dark: #1f1f1f,
31-
bg-blur-dark: rgba(33, 33, 33, 0.8),
30+
bg-dark: #1d1d1d,
31+
bg-blur-dark: rgba(30, 30, 30, 0.8),
3232
bg-shadow-dark: #a46053,
3333
);
3434
$top-bar-ink:(
@@ -43,7 +43,7 @@ $footer-ink:(
4343

4444
$surface: (
4545
light: #ffffff,
46-
dark: #1f1f1f,
46+
dark: #1d1d1d,
4747
);
4848

4949
$background: (

npm/src/component/theme.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const metaThemeColor = {
2727
light: "#ffffff",
2828
lightMobile: "#ffffff",
2929
lightChrome: "#ffffff",
30-
dark: "#1f1f1f",
31-
darkMobile: "#1f1f1f",
32-
darkChrome: "#1f1f1f",
30+
dark: "#1d1d1d",
31+
darkMobile: "#1d1d1d",
32+
darkChrome: "#1d1d1d",
3333
}
3434

3535
const topbarBlur = {

npm/src/page/index.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ body {
113113
}
114114

115115
.dark {
116-
117116
.index-top-card,
118117
.index-card {
119118
@include cardElevationMiniScreenDark();
@@ -299,7 +298,7 @@ body {
299298
@media all and (max-width: blogTheme.$screen-middle-min-width) {
300299
body {
301300
--index-card-padding-vertical: 1rem;
302-
--index-card-padding-horizontal: 1rem;
301+
--index-card-padding-horizontal: 1.3rem;
303302
--index-card-to-container-border-horizontal: 0.5rem;
304303
--index-card-gap: 0.6rem;
305304
--grid-index-card-gap: 0.7rem;

0 commit comments

Comments
 (0)