Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: prismjs theme
Browse files Browse the repository at this point in the history
Minimal overrides to improve the accessibility of our Prismjs theme

fix #321
  • Loading branch information
Schalk Neethling committed Dec 5, 2020
1 parent 585c24d commit c4e6f36
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions sass/atoms/_primsjs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.token.keyword {
color: $primary-50;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: $green-100;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
color: $neutral-100;
}

.token.atrule,
.token.attr-value,
.token.function {
color: $red-200;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: $neutral-300;
}

.token.regex,
.token.important {
color: $orange-100;
}
1 change: 1 addition & 0 deletions sass/mdn-minimalist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@import "./atoms/notecards";
@import "./atoms/meta";
@import "./atoms/code";
@import "./atoms/primsjs";
@import "./atoms/buttons";
@import "./atoms/forms";
@import "./atoms/tables";
Expand Down

0 comments on commit c4e6f36

Please sign in to comment.