Skip to content

Commit 31bbd76

Browse files
committed
Improved contrast ratio of code blocks
1 parent a6463f2 commit 31bbd76

File tree

14 files changed

+35
-32
lines changed

14 files changed

+35
-32
lines changed

material/assets/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.d1f5a259.min.js.map",
66
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.fae956e7.min.js",
77
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.fae956e7.min.js.map",
8-
"assets/stylesheets/main.css": "assets/stylesheets/main.6fb40bf7.min.css",
9-
"assets/stylesheets/main.css.map": "assets/stylesheets/main.6fb40bf7.min.css.map",
8+
"assets/stylesheets/main.css": "assets/stylesheets/main.228d2bc1.min.css",
9+
"assets/stylesheets/main.css.map": "assets/stylesheets/main.228d2bc1.min.css.map",
1010
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.011ebae6.min.css",
1111
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.011ebae6.min.css.map",
12-
"assets/stylesheets/palette.css": "assets/stylesheets/palette.cef4c379.min.css",
13-
"assets/stylesheets/palette.css.map": "assets/stylesheets/palette.cef4c379.min.css.map"
12+
"assets/stylesheets/palette.css": "assets/stylesheets/palette.05036cbf.min.css",
13+
"assets/stylesheets/palette.css.map": "assets/stylesheets/palette.05036cbf.min.css.map"
1414
}

material/assets/stylesheets/main.228d2bc1.min.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.228d2bc1.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.6fb40bf7.min.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

material/assets/stylesheets/main.6fb40bf7.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/assets/stylesheets/palette.cef4c379.min.css renamed to material/assets/stylesheets/palette.05036cbf.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/palette.05036cbf.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/palette.cef4c379.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
{% endif %}
4242
{% endblock %}
4343
{% block styles %}
44-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.6fb40bf7.min.css' | url }}">
44+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.228d2bc1.min.css' | url }}">
4545
{% if palette.scheme or palette.primary or palette.accent %}
46-
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cef4c379.min.css' | url }}">
46+
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.05036cbf.min.css' | url }}">
4747
{% endif %}
4848
{% if palette.primary %}
4949
{% import "partials/palette.html" as map %}

src/assets/stylesheets/main/_colors.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@
5959

6060
// Code highlighting color shades
6161
--md-code-hl-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);
62-
--md-code-hl-number-color: hsla(6, 71%, 60%, 1);
63-
--md-code-hl-special-color: hsla(340, 83%, 66%, 1);
64-
--md-code-hl-function-color: hsla(291, 57%, 65%, 1);
65-
--md-code-hl-constant-color: hsla(250, 70%, 64%, 1);
66-
--md-code-hl-keyword-color: hsla(219, 71%, 60%, 1);
67-
--md-code-hl-string-color: hsla(150, 58%, 44%, 1);
62+
--md-code-hl-number-color: hsla(0, 65%, 54%, 1);
63+
--md-code-hl-special-color: hsla(340, 83%, 47%, 1);
64+
--md-code-hl-function-color: hsla(291, 45%, 50%, 1);
65+
--md-code-hl-constant-color: hsla(250, 63%, 61%, 1);
66+
--md-code-hl-keyword-color: hsla(219, 54%, 51%, 1);
67+
--md-code-hl-string-color: hsla(150, 63%, 31%, 1);
6868
--md-code-hl-name-color: var(--md-code-fg-color);
6969
--md-code-hl-operator-color: var(--md-default-fg-color--light);
70-
--md-code-hl-punctuation-color: var(--md-default-fg-color--lighter);
71-
--md-code-hl-comment-color: var(--md-default-fg-color--lighter);
72-
--md-code-hl-generic-color: var(--md-default-fg-color--lighter);
70+
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
71+
--md-code-hl-comment-color: var(--md-default-fg-color--light);
72+
--md-code-hl-generic-color: var(--md-default-fg-color--light);
7373
--md-code-hl-variable-color: var(--md-default-fg-color--light);
7474

7575
// Typeset color shades

0 commit comments

Comments
 (0)