Skip to content

Commit

Permalink
fix (a11y): made code block colors WCAG AA color contrast compliant (#…
Browse files Browse the repository at this point in the history
…820)

Co-authored-by: noa.santo <[email protected]>
  • Loading branch information
virus-rpi and noa.santo authored Sep 19, 2024
1 parent 114b820 commit e6b777f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/assets/prism-themes/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ pre[class*="language-"].line-numbers .line-numbers-rows {
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
color: #547290;
}

.token.punctuation {
color: #999;
color: #95625E;
}

.token.namespace {
Expand All @@ -114,7 +114,7 @@ pre[class*="language-"].line-numbers .line-numbers-rows {
.token.char,
.token.builtin,
.token.inserted {
color: #690;
color: #657546;
}

.token.operator,
Expand All @@ -130,18 +130,18 @@ pre[class*="language-"].line-numbers .line-numbers-rows {
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
color: #05789E;
}

.token.function,
.token.class-name {
color: #DD4A68;
color: #dd102d;
}

.token.regex,
.token.important,
.token.variable {
color: #e90;
color: #9F6105;
}

.token.important,
Expand Down
4 changes: 2 additions & 2 deletions src/assets/prism-themes/prism-theme-nord.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pre[class*="language-"].line-numbers .line-numbers-rows {
.token.prolog,
.token.doctype,
.token.cdata {
color: #636f88;
color: #649CF1;
}

.token.punctuation {
Expand All @@ -79,7 +79,7 @@ pre[class*="language-"].line-numbers .line-numbers-rows {
}

.token.number {
color: #B48EAD;
color: #BF8BB4;
}

.token.boolean {
Expand Down

0 comments on commit e6b777f

Please sign in to comment.