Skip to content

Commit c70efd9

Browse files
committed
chore: normal b&w dark mode
1 parent 674ed68 commit c70efd9

File tree

1 file changed

+133
-128
lines changed

1 file changed

+133
-128
lines changed

_sass/themes/_dark.scss

Lines changed: 133 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -2,112 +2,120 @@
22
color-scheme: dark;
33

44
/* Framework color */
5-
--main-bg: rgb(24 24 37);
6-
--mask-bg: rgb(69 71 90);
7-
--main-border-color: rgb(69 71 90);
5+
--main-bg: #0d1117; /* Deep black with a slight blue tint, inspired by modern dark themes */
6+
--mask-bg: #161b22; /* Slightly lighter dark gray for overlays */
7+
--main-border-color: #21262d; /* Subtle gray for borders */
88

99
/* Common color */
10-
--text-color: rgb(205 214 244);
11-
--text-muted-color: rgb(186 194 222);
12-
--text-muted-highlight-color: rgb(170 190 255); /* replaced pink */
13-
--heading-color: rgb(116 199 236);
14-
--label-color: rgb(180 190 254);
15-
--blockquote-border-color: rgb(69 71 90);
16-
--blockquote-text-color: rgb(186 194 222);
17-
--link-color: rgb(137 180 250);
18-
--link-underline-color: rgb(137 180 250);
19-
--button-bg: rgb(69 71 90);
20-
--btn-border-color: rgb(69 71 90);
21-
--btn-backtotop-color: var(--text-color);
22-
--btn-backtotop-border-color: rgb(69 71 90);
23-
--card-header-bg: rgb(49 50 68);
24-
--card-bg: rgb(30 30 46);
25-
--checkbox-color: rgb(235 160 172);
26-
--checkbox-checked-color: var(--link-color);
27-
--img-bg: radial-gradient(circle, rgb(17 17 27) 0%, rgb(24 24 37) 100%);
28-
--shimmer-bg: linear-gradient(90deg, rgb(255 255 255 / 0%) 0%, rgb(58 55 55 / 40%) 50%, rgb(255 255 255 / 0%) 100%);
10+
--text-color: #c9d1d9; /* Light gray for body text, high readability */
11+
--text-muted-color: #8b949e; /* Muted gray for secondary text */
12+
--text-muted-highlight-color: #b3bac5; /* Slightly brighter for hover states */
13+
--heading-color: #e6edf3; /* Near-white for headings, high contrast */
14+
--label-color: #b3bac5; /* Light gray for labels */
15+
--blockquote-border-color: #30363d; /* Dark gray for blockquote borders */
16+
--blockquote-text-color: #8b949e; /* Muted gray for blockquote text */
17+
--link-color: #58a6ff; /* Vibrant blue for links, inspired by tech themes */
18+
--link-underline-color: #2f81f7; /* Darker blue for link underlines */
19+
--button-bg: #161b22; /* Dark gray for buttons */
20+
--btn-border-color: #30363d; /* Subtle border for buttons */
21+
--btn-backtotop-color: var(--text-color); /* Matches text color */
22+
--btn-backtotop-border-color: #21262d; /* Matches main border */
23+
--card-header-bg: #161b22; /* Consistent dark gray for card headers */
24+
--checkbox-color: #6e7681; /* Muted gray for checkboxes */
25+
--checkbox-checked-color: var(--link-color); /* Blue for checked state */
26+
--img-bg: radial-gradient(circle, #0d1117 0%, #161b22 100%); /* Darker gradient for images */
27+
--shimmer-bg: linear-gradient(
28+
90deg,
29+
rgb(255 255 255 / 0%) 0%,
30+
rgb(88 166 255 / 20%) 50%, /* Subtle blue shimmer */
31+
rgb(255 255 255 / 0%) 100%
32+
);
2933

3034
/* Sidebar */
31-
--site-title-color: var(--text-color);
32-
--site-subtitle-color: rgb(186 194 222);
33-
--sidebar-bg: rgb(30 30 46);
34-
--sidebar-border-color: rgb(69 71 90);
35-
--sidebar-muted-color: rgb(166 173 200);
36-
--sidebar-active-color: rgb(250 179 135);
37-
--sidebar-hover-bg: rgb(17 17 27);
38-
--sidebar-btn-bg: rgb(30 30 46);
39-
--sidebar-btn-color: rgb(166 173 200);
40-
--avatar-border-color: rgb(69 71 90);
35+
--site-title-color: #ffffff; /* Alb perfect pentru modul dark */
36+
--site-subtitle-color: #8b949e; /* Muted for subtitle */
37+
--sidebar-bg: #0d1117; /* Matches main background */
38+
--sidebar-border-color: #21262d; /* Consistent border color */
39+
--sidebar-muted-color: #8b949e; /* Muted for sidebar text */
40+
--sidebar-active-color: #ffffff; /* Bright white for active states */
41+
--sidebar-hover-bg: #161b22; /* Slightly lighter hover state */
42+
--sidebar-btn-bg: #21262d; /* Dark gray for sidebar buttons */
43+
--sidebar-btn-color: #8b949e; /* Muted button text */
44+
--avatar-border-color: rgb(201 209 217 / 90%); /* Light gray for avatar borders */
4145

4246
/* Topbar */
43-
--topbar-bg: rgb(24 24 37 / 64%);
44-
--topbar-text-color: var(--text-color);
45-
--search-border-color: rgb(69 71 90);
46-
--search-icon-color: var(--text-color);
47-
--input-focus-border-color: rgb(250 180 100); /* replaced orange */
47+
--topbar-bg: rgb(13 17 23 / 80%); /* Semi-transparent deep black */
48+
--topbar-text-color: var(--text-color); /* Matches body text */
49+
--search-border-color: #30363d; /* Dark gray for search borders */
50+
--search-icon-color: #6e7681; /* Muted gray for icons */
51+
--input-focus-border-color: #58a6ff; /* Blue for focused inputs */
4852

4953
/* Home page */
50-
--post-list-text-color: var(--text-color);
51-
--btn-patinator-text-color: var(--text-color);
52-
--btn-paginator-hover-color: rgb(91 114 186); /* replaced pink */
54+
--post-list-text-color: #c9d1d9; /* Light gray for post lists */
55+
--btn-patinator-text-color: var(--text-color); /* Matches text color */
56+
--btn-paginator-hover-color: #21262d; /* Dark gray for hover */
5357

5458
/* Posts */
55-
--toc-highlight: rgb(166 227 161);
56-
--tag-hover: rgb(17 17 27);
57-
--tb-odd-bg: rgb(30 30 46);
58-
--tb-even-bg: rgb(31 31 34);
59-
--tb-border-color: var(--tb-odd-bg);
60-
--footnote-target-bg: rgb(63 81 181);
61-
--btn-share-color: var(--text-color);
62-
--btn-share-hover-color: rgb(250 180 100); /* replaced orange */
63-
--card-hover-bg: rgb(49 50 68);
64-
--card-shadow: rgb(0 0 0 / 35%) 0 4px 16px 0,
65-
rgb(137 180, 250 / 6%) 0 0 0 1px;
66-
--kbd-wrap-color: rgb(166 173 200);
67-
--kbd-text-color: var(--text-color);
68-
--kbd-bg-color: rgb(30 30 46);
69-
--prompt-text-color: rgb(240 240 242 / 85%);
70-
--prompt-tip-bg: rgb(34 139 69 / 65%);
71-
--prompt-tip-icon-color: rgb(74 222 128);
72-
--prompt-info-bg: rgb(90 123 194 / 65%);
73-
--prompt-info-icon-color: rgb(124 157 217);
74-
--prompt-warning-bg: rgb(255 180 100 / 65%); /* replaced orange */
75-
--prompt-warning-icon-color: rgb(255 180 100); /* replaced orange */
76-
--prompt-danger-bg: rgb(185 28 28 / 65%);
77-
--prompt-danger-icon-color: rgb(248 113 113);
78-
79-
/* Tags & Categories */
80-
--tag-border: rgb(69 71 90);
81-
--tag-shadow: rgb(30 30 46);
82-
--dash-color: rgb(166 173 200);
83-
--search-tag-bg: rgb(30 30 46);
84-
--categories-border: rgb(74 74 80 / 35%);
85-
--categories-hover-bg: rgb(30 30 46);
86-
--categories-icon-hover-color: rgb(250 180 100);
59+
--toc-highlight: #58a6ff; /* Blue for table of contents highlights */
60+
--toc-popup-border-color: #30363d; /* Dark gray for TOC borders */
61+
--tag-hover: #21262d; /* Dark gray for tag hovers */
62+
--tb-odd-bg: #161b22; /* Dark gray for odd table rows */
63+
--tb-even-bg: #0d1117; /* Deeper black for even rows */
64+
--tb-border-color: var(--tb-odd-bg); /* Matches odd rows */
65+
--footnote-target-bg: #1f6feb; /* Darker blue for footnote highlights */
66+
--btn-share-color: #6e7681; /* Muted gray for share buttons */
67+
--btn-share-hover-color: #c9d1d9; /* Light gray for hover */
68+
--card-bg: #161b22; /* Dark gray for cards */
69+
--card-hover-bg: #21262d; /* Slightly lighter for hover */
70+
--card-shadow: rgb(0 0 0 / 50%) 0 6px 18px 0,
71+
rgb(201 209 217 / 20%) 0 0 0 1px; /* Darker shadow */
72+
73+
--kbd-wrap-color: #6e7681; /* Muted gray for keyboard input wrap */
74+
--kbd-text-color: #e6edf3; /* Near-white for keyboard text */
75+
--kbd-bg-color: #0d1117; /* Matches main background */
76+
--prompt-text-color: rgb(201 209 217 / 75%); /* Muted light gray */
77+
--prompt-tip-bg: rgb(22 101 52 / 70%); /* Dark green for tips */
78+
--prompt-tip-icon-color: #22c55e; /* Bright green for icons */
79+
--prompt-info-bg: rgb(29 78 216 / 70%); /* Dark blue for info */
80+
--prompt-info-icon-color: #3b82f6; /* Bright blue for icons */
81+
--prompt-warning-bg: rgb(124 45 18 / 70%); /* Dark orange for warnings */
82+
--prompt-warning-icon-color: #f97316; /* Bright orange for icons */
83+
--prompt-danger-bg: rgb(153 27 27 / 70%); /* Dark red for danger */
84+
--prompt-danger-icon-color: #ef4444; /* Bright red for icons */
85+
86+
/* Tags */
87+
--tag-border: #30363d; /* Dark gray for tag borders */
88+
--tag-shadow: #0d1117; /* Matches main background */
89+
--dash-color: #6e7681; /* Muted gray for dashes */
90+
--search-tag-bg: #161b22; /* Dark gray for search tags */
91+
92+
/* Categories */
93+
--categories-border: rgb(48 54 61 / 50%); /* Semi-transparent gray */
94+
--categories-hover-bg: #21262d; /* Dark gray for hover */
95+
--categories-icon-hover-color: #ffffff; /* White for icon hovers */
8796

8897
/* Archive */
89-
--timeline-node-bg: rgb(166 173 200);
90-
--timeline-color: rgb(69 71 90);
91-
--timeline-year-dot-color: var(--timeline-color);
92-
93-
/* Code highlight */
94-
--language-border-color: rgb(69 71 90);
95-
--highlight-bg-color: rgb(17 17 27);
96-
--highlighter-rouge-color: rgb(255 180 100); /* replaced orange */
97-
--highlight-lineno-color: rgb(166 173 200);
98-
--inline-code-bg: rgb(30 30 46);
99-
--code-color: rgb(205 214 244);
100-
--code-header-text-color: rgb(255 180 100); /* replaced orange */
101-
--code-header-muted-color: rgb(255 180 100);
102-
--code-header-icon-color: rgb(255 180 100);
103-
--clipboard-checked-color: rgb(170 190 255); /* replaced pink */
104-
--filepath-text-color: rgb(170 190 255);
98+
--timeline-node-bg: #6e7681; /* Muted gray for timeline nodes */
99+
--timeline-color: #30363d; /* Dark gray for timeline */
100+
--timeline-year-dot-color: var(--timeline-color); /* Matches timeline */
101+
102+
/* Code highlight colors */
103+
--language-border-color: #21262d; /* Dark gray for code borders */
104+
--highlight-bg-color: #0d1117; /* Deep black for code background */
105+
--highlighter-rouge-color: #c9d1d9; /* Light gray for code text */
106+
--highlight-lineno-color: #6e7681; /* Muted gray for line numbers */
107+
--inline-code-bg: rgb(255 255 255 / 5%); /* Subtle white for inline code */
108+
--code-color: #c9d1d9; /* Light gray for code */
109+
--code-header-text-color: #8b949e; /* Muted gray for code headers */
110+
--code-header-muted-color: #21262d; /* Dark gray for muted headers */
111+
--code-header-icon-color: #6e7681; /* Muted gray for icons */
112+
--clipboard-checked-color: #22c55e; /* Green for clipboard check */
113+
--filepath-text-color: #c9d1d9; /* Light gray for file paths */
105114

106115
.light {
107116
display: none;
108117
}
109118

110-
111119
/* Categories */
112120
.categories.card,
113121
.list-group-item {
@@ -134,11 +142,11 @@
134142
#archives li:nth-child(odd) {
135143
background-image: linear-gradient(
136144
to left,
137-
#1a1a1e,
138-
#2a2a2f,
139-
#3a3a40,
140-
#2a2a2f,
141-
#1a1a1e
145+
#0d1117,
146+
#161b22,
147+
#161b22,
148+
#161b22,
149+
#0d1117
142150
);
143151
}
144152

@@ -147,9 +155,9 @@
147155
color-scheme: none;
148156
}
149157

150-
/* --- Paper Manuscript Syntax highlight theme --- */
158+
/* --- Syntax highlight theme --- */
151159
.highlight .gp {
152-
color: #b4b4b8; /* Warm gray prompt */
160+
color: #8b949e; /* Muted gray for prompt */
153161
}
154162

155163
.highlight table td {
@@ -162,13 +170,13 @@
162170

163171
.highlight,
164172
.highlight .w {
165-
color: #f0f0f2;
166-
background-color: #1a1a1e;
173+
color: #c9d1d9;
174+
background-color: #0d1117;
167175
}
168176

169177
.highlight .err {
170-
color: #fef2f2;
171-
background-color: #dc2626; /* Soft red error */
178+
color: #0d1117;
179+
background-color: #f85149; /* Bright red for errors */
172180
}
173181

174182
.highlight .c,
@@ -178,41 +186,39 @@
178186
.highlight .cpf,
179187
.highlight .c1,
180188
.highlight .cs {
181-
color: #9ca3af; /* Medium gray comments */
182-
font-style: italic;
189+
color: #8b949e; /* Muted gray for comments */
183190
}
184191

185192
.highlight .cp {
186-
color: #d1d5db; /* Light gray preprocessor */
193+
color: #e6b800; /* Yellow for preprocessor */
187194
}
188195

189196
.highlight .nt {
190-
color: #8b9dc3; /* Soft blue tags */
197+
color: #e6b800; /* Yellow for tags */
191198
}
192199

193200
.highlight .o,
194201
.highlight .ow {
195-
color: #c8c8cc; /* Light gray operators */
202+
color: #c9d1d9; /* Light gray for operators */
196203
}
197204

198205
.highlight .p,
199206
.highlight .pi {
200-
color: #c8c8cc; /* Light gray punctuation */
207+
color: #c9d1d9; /* Light gray for punctuation */
201208
}
202209

203210
.highlight .gi {
204-
color: #6ee7b7; /* Soft green insertions */
205-
background-color: rgb(34 139 69 / 10%);
211+
color: #22c55e; /* Green for insertions */
206212
}
207213

208214
.highlight .gd {
209-
color: #fca5a5; /* Soft red deletions */
210-
background-color: rgb(185 28 28 / 10%);
215+
color: #f85149; /* Red for deletions */
216+
background-color: #2d0000; /* Dark red background */
211217
}
212218

213219
.highlight .gh {
214-
color: #8b9dc3; /* Soft blue headers */
215-
background-color: #1a1a1e;
220+
color: #58a6ff; /* Blue for headers */
221+
background-color: #0d1117;
216222
font-weight: bold;
217223
}
218224

@@ -221,20 +227,19 @@
221227
.highlight .kp,
222228
.highlight .kr,
223229
.highlight .kv {
224-
color: #a5b4fc; /* Light purple keywords */
225-
font-weight: 500;
230+
color: #d3869b; /* Soft pink for keywords */
226231
}
227232

228233
.highlight .kc {
229-
color: #fde68a; /* Soft yellow constants */
234+
color: #e6b800; /* Yellow for constants */
230235
}
231236

232237
.highlight .kt {
233-
color: #7dd3fc; /* Light blue types */
238+
color: #e6b800; /* Yellow for types */
234239
}
235240

236241
.highlight .kd {
237-
color: #a5b4fc; /* Light purple declarations */
242+
color: #e6b800; /* Yellow for declarations */
238243
}
239244

240245
.highlight .s,
@@ -246,39 +251,39 @@
246251
.highlight .sh,
247252
.highlight .sx,
248253
.highlight .s1 {
249-
color: #86efac; /* Soft green strings */
254+
color: #22c55e; /* Green for strings */
250255
}
251256

252257
.highlight .sa {
253-
color: #fde68a; /* Soft yellow string attributes */
258+
color: #d3869b; /* Pink for string attributes */
254259
}
255260

256261
.highlight .sr {
257-
color: #7dd3fc; /* Light blue regex */
262+
color: #2dd4bf; /* Teal for regex */
258263
}
259264

260265
.highlight .si {
261-
color: #fde68a; /* Soft yellow interpolation */
266+
color: #e6b800; /* Yellow for interpolation */
262267
}
263268

264269
.highlight .se {
265-
color: #fed7aa; /* Soft orange escapes */
270+
color: #e6b800; /* Yellow for escapes */
266271
}
267272

268273
.highlight .nn {
269-
color: #7dd3fc; /* Light blue namespaces */
274+
color: #e6b800; /* Yellow for names */
270275
}
271276

272277
.highlight .nc {
273-
color: #8b9dc3; /* Soft blue classes */
278+
color: #e6b800; /* Yellow for class names */
274279
}
275280

276281
.highlight .no {
277-
color: #fde68a; /* Soft yellow constants */
282+
color: #e6b800; /* Yellow for constants */
278283
}
279284

280285
.highlight .na {
281-
color: #8b9dc3; /* Soft blue attributes */
286+
color: #58a6ff; /* Blue for attributes */
282287
}
283288

284289
.highlight .m,
@@ -289,10 +294,10 @@
289294
.highlight .il,
290295
.highlight .mo,
291296
.highlight .mx {
292-
color: #fed7aa; /* Soft orange numbers */
297+
color: #22c55e; /* Green for numbers */
293298
}
294299

295300
.highlight .ss {
296-
color: #86efac; /* Soft green symbols */
301+
color: #22c55e; /* Green for symbols */
297302
}
298303
}

0 commit comments

Comments
 (0)