Skip to content

Commit 7bb9a4e

Browse files
author
Alexia Michelle
committed
style: refine dark theme colors, add hero banner fade, and prevent descender clipping in titles.
1 parent d6271cc commit 7bb9a4e

2 files changed

Lines changed: 27 additions & 6 deletions

File tree

src/css/custom.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
}
3030

3131
/* Premium Dark overrides */
32-
[data-theme='dark'] {
33-
--ifm-background-color: #050507;
34-
/* Even deeper charcoal background */
35-
--ifm-navbar-background-color: rgba(5, 5, 7, 0.7);
36-
--ifm-footer-background-color: #050507;
32+
html[data-theme='dark'] {
33+
--ifm-background-color: #020203;
34+
/* Deepest midnight background */
35+
--ifm-navbar-background-color: rgba(2, 2, 3, 0.75);
36+
--ifm-footer-background-color: #020203;
3737
/* Unified with background */
3838

3939
--ifm-font-color-base: #eceef2;
@@ -68,6 +68,12 @@
6868
background: var(--ifm-navbar-background-color);
6969
}
7070

71+
.navbar__title {
72+
font-weight: 600;
73+
padding-bottom: 2px;
74+
/* Prevent 'g' clipping */
75+
}
76+
7177

7278
.footer {
7379
background-color: var(--ifm-background-color) !important;

src/pages/index.module.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
background: radial-gradient(circle at 50% 120%, #120124 0%, #030107 100%);
1212
}
1313

14+
.heroBanner::after {
15+
content: '';
16+
position: absolute;
17+
bottom: 0;
18+
left: 0;
19+
right: 0;
20+
height: 150px;
21+
background: linear-gradient(to bottom, transparent, #050507);
22+
pointer-events: none;
23+
z-index: 2;
24+
}
25+
1426

1527

1628
.heroBanner :global(.container) {
@@ -28,7 +40,10 @@
2840
-webkit-background-clip: text;
2941
background-clip: text;
3042
-webkit-text-fill-color: transparent;
31-
line-height: 1.1;
43+
line-height: 1.25;
44+
/* Increased to prevent clipping of 'g' descenders */
45+
padding-bottom: 0.1em;
46+
/* Extra breathing room */
3247
}
3348

3449

0 commit comments

Comments
 (0)