Skip to content

Commit 0ef80ff

Browse files
committed
Improve dark-mode hero contrast
Dark mode now dims the home hero screenshot and restores it on hover for better readability without losing the preview effect. This keeps the landing page visually balanced in low-light themes.
1 parent 8955428 commit 0ef80ff

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

styles/index.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@
110110
border-radius: 5px;
111111
}
112112

113+
.rp-dark {
114+
.docs-hero__shot {
115+
filter: brightness(0.7);
116+
transition: filter 180ms ease;
117+
118+
&:hover {
119+
filter: unset;
120+
}
121+
}
122+
}
123+
113124
.docs-home a:focus-visible {
114125
outline: 2px solid var(--rp-c-brand);
115126
outline-offset: 3px;

0 commit comments

Comments
 (0)