Skip to content

Commit 33e75a3

Browse files
stanwolverinejoshka
authored andcommitted
fix: color contrast fixes
1 parent e4b5527 commit 33e75a3

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

styles/dark-styles.scss

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ $light-gray: #D6D6D6; // hover on secondary text
1212
$gray: #A0A0A0; // secondary text
1313
$dark-gray: #939393; // code snippet text
1414

15-
$magenta-100: #DE46A9; // Normal
16-
$magenta-200: #E25AB2; // Light
15+
$magenta-000: #C63995;
16+
$magenta-100: #DE46A9;
17+
$magenta-200: #E25AB2;
18+
$magenta-300: #E670BD;
1719

1820
$pure-white: #ffffff;
1921
$white: #F0F0F0; // text, title
@@ -27,7 +29,7 @@ $blue: #4197E3;
2729
$lightblue: #56A3E6;
2830

2931
// Each color is associated with a library
30-
$tk-lib-runtime: $magenta-100;
32+
$tk-lib-runtime: $magenta-200;
3133
$tk-lib-hyper: $orange;
3234
$tk-lib-tonic: $yellow;
3335
$tk-lib-tower: $green;
@@ -37,7 +39,7 @@ $tk-lib-bytes: $blue;
3739

3840

3941
// Per lib styling: [ name, bg-color, color, size, logo-adjust ]
40-
$libs: "tokio" $white $surface-100 3.8rem -60%, "runtime" darken($tk-lib-runtime) $pure-white 2.2rem -22%,
42+
$libs: "tokio" $white $surface-100 3.8rem -60%, "runtime" $tk-lib-runtime $surface-100 2.2rem -22%,
4143
"hyper" $tk-lib-hyper $surface-100 100% -50%, "tonic" $tk-lib-tonic $surface-100 100% -25%,
4244
"tower" $tk-lib-tower $surface-100 100% -52%, "mio" $tk-lib-mio $surface-100 100% -41%,
4345
"tracing" $tk-lib-tracing $surface-100 100% -31%, "bytes" $tk-lib-bytes $surface-100 100% -30%;
@@ -89,10 +91,10 @@ body {
8991
}
9092
&.tk-intro {
9193
.button {
92-
background-color: $magenta-100;
94+
background-color: $magenta-000;
9395
}
9496
.button:hover {
95-
background-color: $magenta-200;
97+
background-color: $magenta-100;
9698
}
9799
.title, .subtitle {
98100
color: $white;
@@ -281,12 +283,12 @@ body {
281283

282284
strong,
283285
code {
284-
color: $magenta-100;
286+
color: $magenta-200;
285287
}
286288
}
287289

288290
blockquote.is-warning {
289-
border-left-color: $magenta-100;
291+
border-left-color: $magenta-200;
290292
}
291293
}
292294

@@ -295,10 +297,10 @@ body {
295297
}
296298

297299
a code {
298-
color: $magenta-100;
300+
color: $magenta-200;
299301
}
300302
a:hover code {
301-
color: $magenta-200;
303+
color: $magenta-300;
302304
}
303305
}
304306
}
@@ -313,9 +315,18 @@ strong {
313315
color: $white;
314316
}
315317

316-
.content blockquote {
318+
.content blockquote,
319+
.content blockquote.is-info {
317320
background-color: $surface-200;
318321
border-color: $surface-600;
322+
323+
a {
324+
color: $magenta-200;
325+
326+
&:hover {
327+
color: $magenta-300;
328+
}
329+
}
319330
}
320331

321332
.footer {
@@ -372,7 +383,7 @@ pre, code {
372383
.hljs-keyword,
373384
.hljs-selector-tag,
374385
.hljs-subst {
375-
color: $magenta-100;
386+
color: $magenta-200;
376387
}
377388

378389
.hljs-number {

0 commit comments

Comments
 (0)