Skip to content

Commit 5cecbab

Browse files
committed
style: Adjust primary color and dark mode styling
- Update primary color in light mode - Set primary color for dark mode - Apply dark mode to footer background - Style footer text for dark mode - Apply dark mode to navbar background
1 parent 1c00897 commit 5cecbab

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

template/src/css/custom.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ p {
121121

122122
/* You can override the default Infima variables here. */
123123
:root {
124-
--ifm-color-primary: #2e83ff;
124+
--ifm-color-primary: #2e8555;
125125
--ifm-color-primary-dark: #29784c;
126126
--ifm-color-primary-darker: #277148;
127127
--ifm-color-primary-darkest: #205d3b;
@@ -142,7 +142,7 @@ html[data-theme="dark"] {
142142

143143
/* For readability concerns, you should choose a lighter palette in dark mode. */
144144
[data-theme='dark'] {
145-
--ifm-color-primary: #8d8d8d;
145+
--ifm-color-primary: #25c2a0;
146146
--ifm-color-primary-dark: #21af90;
147147
--ifm-color-primary-darker: #1fa588;
148148
--ifm-color-primary-darkest: #1a8870;
@@ -154,20 +154,19 @@ html[data-theme="dark"] {
154154
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
155155
}
156156

157-
.footer {
157+
/* Footer and navbar will use theme defaults */
158+
[data-theme='dark'] .footer {
158159
background-color: #131213;
159160
}
160161

161-
.footer a,
162-
.footer p,
163-
.footer span,
164-
.footer div {
162+
[data-theme='dark'] .footer a,
163+
[data-theme='dark'] .footer p,
164+
[data-theme='dark'] .footer span,
165+
[data-theme='dark'] .footer div {
165166
color: #ffffff;
166-
/* Example: Light gray text for dark mode */
167167
}
168168

169-
.navbar {
170-
/* or .navbar--fixedTop if it has that class */
169+
[data-theme='dark'] .navbar {
171170
background-color: #131213;
172171
}
173172

@@ -186,8 +185,8 @@ html[data-theme="dark"] {
186185
/* Ensures full height for alignment */
187186
}
188187

189-
.navbar__link {
190-
/* Example: for navbar links */
188+
[data-theme='dark'] .navbar__link {
189+
/* White links in dark mode */
191190
color: #ffffff;
192191
}
193192

0 commit comments

Comments
 (0)