-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced contrast theme, for users with visual restrictions etc.
This adds a "contrast" theme, which (insofar as it can) makes mdBook's output compliant with the W3C's WCAG ("Web Content Accessibility Guidelines") https://www.w3.org/WAI/standards-guidelines/wcag/
- Loading branch information
Showing
6 changed files
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* An increased contrast highlighting scheme loosely based on the mdbook | ||
* "light" highlight scheme, itself a subset of Base16 Atelier Dune Light - | ||
* Theme by Bram de Haan | ||
* (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) | ||
* Original Base16 color scheme by Chris Kempson | ||
* (https://github.com/chriskempson/base16) | ||
*/ | ||
|
||
/* Comment */ | ||
.hljs-comment, | ||
.hljs-quote { | ||
color: #575757; | ||
} | ||
|
||
/* Red */ | ||
.hljs-variable, | ||
.hljs-template-variable, | ||
.hljs-attribute, | ||
.hljs-tag, | ||
.hljs-name, | ||
.hljs-regexp, | ||
.hljs-link, | ||
.hljs-name, | ||
.hljs-selector-id, | ||
.hljs-selector-class { | ||
color: #d70025; | ||
} | ||
|
||
/* Dark Orange */ | ||
.hljs-number, | ||
.hljs-meta, | ||
.hljs-built_in, | ||
.hljs-builtin-name, | ||
.hljs-literal, | ||
.hljs-type, | ||
.hljs-params { | ||
color: #a61900; | ||
} | ||
|
||
/* Green */ | ||
.hljs-string, | ||
.hljs-symbol, | ||
.hljs-bullet { | ||
color: #008200; | ||
} | ||
|
||
/* Blue */ | ||
.hljs-title, | ||
.hljs-section { | ||
color: #0030f2; | ||
} | ||
|
||
/* Purple */ | ||
.hljs-keyword, | ||
.hljs-selector-tag { | ||
color: #9d00ec; | ||
} | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
background: #f5f6f6; | ||
color: #000; | ||
padding: 0.5em; | ||
} | ||
|
||
.hljs-emphasis { | ||
font-style: italic; | ||
} | ||
|
||
.hljs-strong { | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-addition { | ||
color: #22863a; | ||
background-color: #f0fff4; | ||
} | ||
|
||
.hljs-deletion { | ||
color: #b31d28; | ||
background-color: #ffeef0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters