Skip to content

Commit 9326189

Browse files
committed
harmonize colors
1 parent cf95a66 commit 9326189

File tree

9 files changed

+118
-154
lines changed

9 files changed

+118
-154
lines changed

assets/css/theme.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424

2525
--color-background-light: #f9f9fa;
2626
--color-background-dark: #10151b;
27+
--color-primary-blue: var(--color-blue-500);
2728

2829
--color-divider-light: hsla(0, 0%, 0%, 0.1);
2930
--color-divider-dark: hsla(0, 0%, 100%, 0.05);
3031

3132
--card-bg-dark: #1d262d;
3233
--card-border-dark: #516980;
33-
--color-gray-900: var(--card-bg-dark);
34-
--color-gray-700: var(--card-border-dark);
34+
--card-bg-dark: var(--color-gray-900);
35+
--card-border-dark: var(--color-gray-700);
3536

3637
--navbar-bg-light: #f9f9fa;
3738
--navbar-bg-dark: #0b0b0b;
@@ -51,6 +52,7 @@
5152
--color-black-outlinedborder: rgba(0, 0, 0, 0.56);
5253
--color-black-selected: rgba(0, 0, 0, 0.16);
5354

55+
--color-blue: var(--color-blue-400);
5456
--color-blue-100: rgba(217, 229, 252, 1);
5557
--color-blue-200: rgba(170, 196, 248, 1);
5658
--color-blue-300: rgba(123, 164, 244, 1);
@@ -68,6 +70,7 @@
6870
--color-blue-outlinedborder: rgba(37, 96, 255, 0.56);
6971
--color-blue-selected: rgba(37, 96, 255, 0.16);
7072

73+
--color-gray: var(--color-gray-600);
7174
--color-gray-100: rgba(231, 234, 239, 1);
7275
--color-gray-200: rgba(200, 207, 218, 1);
7376
--color-gray-300: rgba(169, 180, 198, 1);
@@ -78,7 +81,7 @@
7881
--color-gray-700: rgba(67, 76, 95, 1);
7982
--color-gray-800: rgba(44, 51, 63, 1);
8083
--color-gray-900: rgba(30, 33, 41, 1);
81-
--color-gray-950: rgba(15, 18, 27, 1);
84+
--color-gray-950: rgb(18, 21, 31);
8285
--color-gray-focus: rgba(108, 126, 157, 0.24);
8386
--color-gray-focusvisible: rgba(108, 126, 157, 0.32);
8487
--color-gray-hover: rgba(108, 126, 157, 0.12);
@@ -170,6 +173,7 @@
170173
--color-teal-outlinedborder: rgba(27, 189, 191, 0.56);
171174
--color-teal-selected: rgba(27, 189, 191, 0.16);
172175

176+
--color-violet: var(--color-violet-500);
173177
--color-violet-100: rgba(239, 224, 255, 1);
174178
--color-violet-200: rgba(211, 183, 255, 1);
175179
--color-violet-300: rgba(174, 130, 255, 1);

assets/css/utilities.css

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
@utility link {
34-
@apply text-primary-blue no-underline dark:text-blue-700;
34+
@apply text-blue no-underline dark:text-blue-400;
3535
font-weight: inherit;
3636
&:hover {
3737
@apply underline underline-offset-3;
@@ -43,24 +43,24 @@
4343
}
4444

4545
@utility bg-pattern-blue {
46-
background-color: var(--color-white-main);
46+
background-color: rgba(255, 255, 255, 0.5);
4747
background-image: url("/assets/images/bg-pattern-blue.webp");
4848
background-blend-mode: overlay;
4949
background-size: cover;
50-
background-repeat: none;
50+
background-repeat: no-repeat;
5151
.dark & {
52-
background-color: var(--color-black-main);
52+
background-color: rgba(0, 0, 0, 0.741);
5353
}
5454
}
5555

5656
@utility bg-pattern-purple {
57-
background-color: var(--color-white-main);
57+
background-color: rgba(255, 255, 255, 0.5);
5858
background-image: url("/assets/images/bg-pattern-purple.webp");
5959
background-blend-mode: overlay;
6060
background-size: cover;
61-
background-repeat: none;
61+
background-repeat: no-repeat;
6262
.dark & {
63-
background-color: var(--color-black-main);
63+
background-color: rgba(0, 0, 0, 0.741);
6464
}
6565
}
6666

@@ -72,13 +72,13 @@
7272
}
7373

7474
@utility bg-pattern-verde {
75-
background-color: var(--color-white-main);
75+
background-color: rgba(255, 255, 255, 0.5);
7676
background-image: url("/assets/images/bg-pattern-verde.webp");
7777
background-blend-mode: overlay;
7878
background-size: cover;
79-
background-repeat: none;
79+
background-repeat: no-repeat;
8080
.dark & {
81-
background-color: var(--color-black-main);
81+
background-color: rgba(0, 0, 0, 0.741);
8282
}
8383
}
8484

@@ -210,3 +210,16 @@
210210
}
211211
}
212212
}
213+
214+
@utility section-card {
215+
@apply flex h-full flex-col gap-2 rounded-sm border p-4 drop-shadow-xs hover:drop-shadow-lg;
216+
@apply text-gray dark:text-gray-200;
217+
@apply border-gray-100 bg-gray-50 hover:border-gray-200 dark:border-gray-600 dark:bg-gray-900 hover:dark:border-gray-500;
218+
}
219+
220+
@utility section-card-text {
221+
@apply leading-snug text-gray-800 dark:text-gray-200;
222+
}
223+
@utility section-card-title {
224+
@apply text-xl font-semibold text-gray-900 dark:text-gray-100;
225+
}

hugo_stats.json

Lines changed: 36 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@
144144
"admonition-warning",
145145
"aspect-video",
146146
"bake-action",
147-
"bg-amber-light",
147+
"bg-amber-500",
148148
"bg-background-light",
149149
"bg-background-toc",
150150
"bg-black/50",
151151
"bg-black/70",
152-
"bg-blue-400",
152+
"bg-blue",
153153
"bg-blue-500",
154154
"bg-blue-light",
155155
"bg-blue-light-400",
@@ -158,19 +158,22 @@
158158
"bg-gradient-to-br",
159159
"bg-gradient-to-r",
160160
"bg-gradient-to-t",
161+
"bg-gray-00",
161162
"bg-gray-100",
163+
"bg-gray-400",
164+
"bg-gray-50",
162165
"bg-gray-light-100",
163166
"bg-gray-light-200",
164167
"bg-gray-light-400",
165168
"bg-gray-light-700",
166-
"bg-green-light",
169+
"bg-green-500",
167170
"bg-green-light-400",
168171
"bg-pattern-blue",
169172
"bg-pattern-purple",
170173
"bg-pattern-verde",
171-
"bg-red-light",
174+
"bg-red-500",
172175
"bg-transparent",
173-
"bg-violet-light",
176+
"bg-violet-500",
174177
"bg-white",
175178
"bg-white/10",
176179
"block",
@@ -180,7 +183,6 @@
180183
"border-b-4",
181184
"border-blue-light-500",
182185
"border-divider-light",
183-
"border-gray-light-100",
184186
"border-gray-light-200",
185187
"border-gray-light-400",
186188
"border-green-light-400",
@@ -204,26 +206,26 @@
204206
"col-start-2",
205207
"containerd-image-store",
206208
"cursor-pointer",
207-
"dark:bg-amber-dark",
209+
"dark:bg-amber-300",
208210
"dark:bg-background-dark",
209211
"dark:bg-background-toc",
212+
"dark:bg-blue",
210213
"dark:bg-blue-300",
211214
"dark:bg-blue-400",
212215
"dark:bg-blue-500",
213-
"dark:bg-blue-dark",
214216
"dark:bg-blue-dark-400",
215-
"dark:bg-gray-200",
216-
"dark:bg-gray-700",
217+
"dark:bg-gray-400",
217218
"dark:bg-gray-800",
218219
"dark:bg-gray-900",
220+
"dark:bg-gray-950",
219221
"dark:bg-gray-dark-100",
220222
"dark:bg-gray-dark-200",
221223
"dark:bg-gray-dark-300",
222224
"dark:bg-gray-dark-400",
223-
"dark:bg-green-dark",
225+
"dark:bg-green-300",
224226
"dark:bg-green-dark-400",
225-
"dark:bg-red-dark",
226-
"dark:bg-violet-dark",
227+
"dark:bg-red-300",
228+
"dark:bg-violet-300",
227229
"dark:block",
228230
"dark:border-b-blue-dark-600",
229231
"dark:border-divider-dark",
@@ -232,64 +234,52 @@
232234
"dark:border-green-dark-400",
233235
"dark:border-l-magenta-dark",
234236
"dark:fill-blue-300",
235-
"dark:fill-blue-400",
236-
"dark:fill-blue-700",
237-
"dark:fill-blue-dark",
238237
"dark:focus:ring-3-blue-dark",
239238
"dark:from-background-dark",
240-
"dark:from-blue-200",
241-
"dark:from-blue-400",
239+
"dark:from-blue-300",
242240
"dark:from-blue-600",
243-
"dark:from-blue-dark-200",
244-
"dark:from-blue-dark-400",
245241
"dark:from-gray-dark-100",
246242
"dark:hidden",
243+
"dark:hover:bg-blue-400",
247244
"dark:hover:bg-blue-500",
248-
"dark:hover:bg-blue-dark",
249245
"dark:hover:bg-blue-dark-500",
246+
"dark:hover:bg-gray-500",
250247
"dark:hover:bg-gray-dark-200",
251248
"dark:hover:bg-gray-dark-400",
252-
"dark:hover:bg-gray-dark-500",
253249
"dark:hover:text-blue-dark",
254250
"dark:prose-invert",
255251
"dark:ring-3-blue-dark-400",
256252
"dark:ring-3-gray-dark-400",
257253
"dark:syntax-dark",
254+
"dark:text-blue",
258255
"dark:text-blue-700",
259256
"dark:text-divider-dark",
257+
"dark:text-gray",
258+
"dark:text-gray-200",
260259
"dark:text-gray-dark",
261260
"dark:text-gray-dark-300",
262261
"dark:text-gray-dark-500",
263262
"dark:text-gray-dark-600",
264-
"dark:text-gray-dark-700",
265263
"dark:text-gray-dark-800",
266264
"dark:text-magenta-dark",
267-
"dark:text-violet-dark",
268265
"dark:text-white",
269266
"dark:to-background-dark",
270-
"dark:to-blue-100",
267+
"dark:to-blue-400",
271268
"dark:to-blue-500",
272-
"dark:to-blue-dark-100",
273-
"dark:to-magenta-dark-400",
274269
"docker/bake-action",
275270
"docker/build-push-action",
276271
"download-links",
277272
"download-links-subcontainer",
278273
"drop-shadow",
279-
"drop-shadow-xs",
280274
"duration-300",
281-
"fill-blue-300",
282-
"fill-blue-400",
283-
"fill-blue-500",
284-
"fill-blue-light",
275+
"fill-blue",
285276
"fixed",
286277
"flex",
287278
"flex-1",
288279
"flex-[2_2_0%]",
289280
"flex-col",
290281
"flex-col-reverse",
291282
"flex-grow",
292-
"flex-grow-0",
293283
"flex-none",
294284
"flex-shrink",
295285
"flex-wrap",
@@ -302,17 +292,15 @@
302292
"footnotes",
303293
"from-20%",
304294
"from-background-light",
295+
"from-blue-400",
305296
"from-blue-600",
306-
"from-blue-light-400",
307-
"from-blue-light-600",
308297
"gap-1",
309298
"gap-10",
310299
"gap-12",
311300
"gap-2",
312301
"gap-20",
313302
"gap-3",
314303
"gap-4",
315-
"gap-6",
316304
"gap-8",
317305
"goat",
318306
"grid",
@@ -336,23 +324,24 @@
336324
"hidden'",
337325
"hiddenml-3",
338326
"highlight",
327+
"hover:bg-blue",
339328
"hover:bg-blue-400",
340329
"hover:bg-blue-500",
341330
"hover:bg-blue-light-400",
331+
"hover:bg-gray-100",
332+
"hover:bg-gray-50",
342333
"hover:bg-gray-light-100",
343334
"hover:bg-gray-light-200",
344335
"hover:bg-gray-light-300",
345336
"hover:bg-white/20",
346-
"hover:border-gray-light-200",
347337
"hover:border-white/20",
348-
"hover:dark:bg-blue-400",
349338
"hover:dark:bg-blue-500",
339+
"hover:dark:bg-gray-700",
350340
"hover:dark:bg-gray-dark-200",
351341
"hover:dark:bg-gray-dark-300",
352-
"hover:dark:border-gray-dark",
353342
"hover:dark:text-blue-700",
354-
"hover:drop-shadow-lg",
355343
"hover:opacity-90",
344+
"hover:text-blue",
356345
"hover:text-blue-light",
357346
"hover:text-white",
358347
"hover:underline",
@@ -399,7 +388,6 @@
399388
"max-w-56",
400389
"max-w-[1920px]",
401390
"max-w-[840px]",
402-
"max-w-fit",
403391
"max-w-full",
404392
"max-w-none",
405393
"max-w-xl",
@@ -509,6 +497,9 @@
509497
"scale-75",
510498
"scroll-mt-20",
511499
"scroll-mt-36",
500+
"section-card",
501+
"section-card-text",
502+
"section-card-title",
512503
"select-none",
513504
"self-center",
514505
"self-start",
@@ -533,8 +524,11 @@
533524
"text-2xl",
534525
"text-base",
535526
"text-black",
527+
"text-blue",
536528
"text-blue-light",
537529
"text-divider-light",
530+
"text-gray",
531+
"text-gray-800",
538532
"text-gray-light",
539533
"text-gray-light-200",
540534
"text-gray-light-300",
@@ -544,18 +538,14 @@
544538
"text-lg",
545539
"text-magenta-light",
546540
"text-sm",
547-
"text-violet-light",
548541
"text-white",
549542
"text-xl",
550543
"text-xs",
551544
"to-30%",
552545
"to-50%",
553546
"to-75%",
554-
"to-blue-300",
555-
"to-blue-400",
547+
"to-blue-200",
556548
"to-blue-500",
557-
"to-blue-light",
558-
"to-magenta-light-400",
559549
"to-transparent",
560550
"to-white",
561551
"toc",

0 commit comments

Comments
 (0)