-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility contrast tweaks (#3026)
- Make the light code theme have accessible contrast. - Docsearch placeholder contrast tweak Also minor tweak to the prismjs tokenizer to fix optional property highlighting
- Loading branch information
1 parent
9e655a9
commit 814e518
Showing
6 changed files
with
186 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ dictionaries: | |
- node | ||
- typescript | ||
words: | ||
- atrule | ||
- autorest | ||
- azsdk | ||
- azsdkengsys | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,6 @@ | |
} | ||
|
||
.output { | ||
opacity: 90%; | ||
font-size: 90%; | ||
} | ||
|
||
|
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,101 @@ | ||
import { PrismTheme } from "prism-react-renderer"; | ||
|
||
/** | ||
* Fork from atom one light theme that is accessible AA compliant. | ||
*/ | ||
export const LightTheme: PrismTheme = { | ||
plain: { | ||
backgroundColor: "hsl(230, 1%, 98%)", | ||
color: "hsl(230, 8%, 24%)", | ||
}, | ||
styles: [ | ||
{ | ||
types: ["comment", "prolog", "cdata"], | ||
style: { | ||
color: "#737378", | ||
}, | ||
}, | ||
{ | ||
types: ["doctype", "punctuation", "entity"], | ||
style: { | ||
color: "hsl(230, 8%, 24%)", | ||
}, | ||
}, | ||
{ | ||
types: ["attr-name", "class-name", "boolean", "constant", "number", "atrule"], | ||
style: { | ||
color: "#c2483d", | ||
}, | ||
}, | ||
{ | ||
types: ["keyword"], | ||
style: { | ||
color: "hsl(301, 63%, 40%)", | ||
}, | ||
}, | ||
|
||
{ | ||
types: ["property", "tag", "symbol", "deleted", "important"], | ||
style: { | ||
color: "#c2483d", | ||
}, | ||
}, | ||
{ | ||
types: [ | ||
"selector", | ||
"string", | ||
"char", | ||
"builtin", | ||
"inserted", | ||
"regex", | ||
"attr-value", | ||
"punctuation", | ||
], | ||
style: { | ||
color: "#40813f", | ||
}, | ||
}, | ||
{ | ||
types: ["variable", "operator", "function"], | ||
style: { | ||
color: "#3e6ed7", | ||
}, | ||
}, | ||
{ | ||
types: ["url"], | ||
style: { | ||
color: "hsl(198, 99%, 37%)", | ||
}, | ||
}, | ||
{ | ||
types: ["deleted"], | ||
style: { | ||
textDecorationLine: "line-through", | ||
}, | ||
}, | ||
{ | ||
types: ["inserted"], | ||
style: { | ||
textDecorationLine: "underline", | ||
}, | ||
}, | ||
{ | ||
types: ["italic"], | ||
style: { | ||
fontStyle: "italic", | ||
}, | ||
}, | ||
{ | ||
types: ["important", "bold"], | ||
style: { | ||
fontWeight: "bold", | ||
}, | ||
}, | ||
{ | ||
types: ["important"], | ||
style: { | ||
color: "hsl(230, 8%, 24%)", | ||
}, | ||
}, | ||
], | ||
}; |