Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit bbd1849

Browse files
amcdnljelbourn
authored andcommitted
Update syntax highlighting styles (#301)
1 parent fd7d5d4 commit bbd1849

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

src/highlightjs/material-dark.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Orginal Style from https://github.com/Kelbster/highlightjs-material-dark-theme
77
padding: 1em;
88
background: #2B2B2D;
99
color: #CDD3D8;
10-
font-family: "Roboto Mono", monospace;
11-
font-size: 1em;
10+
-webkit-font-smoothing: antialiased;
11+
text-size-adjust: 100%;
12+
font: 300 100%/1 Roboto Mono,monospace;
13+
font-size: 14px;
1214
}
1315

1416
.hljs > *::selection {
@@ -26,7 +28,7 @@ Orginal Style from https://github.com/Kelbster/highlightjs-material-dark-theme
2628

2729
.hljs-string,
2830
.hljs-subst {
29-
color: #C3E88D;
31+
color: #9ccc65;
3032
}
3133

3234
.hljs-number,
@@ -43,10 +45,10 @@ Orginal Style from https://github.com/Kelbster/highlightjs-material-dark-theme
4345
color: #75A5FF;
4446
}
4547
.hljs-tag {
46-
color: #abb2bf;
48+
color: #ce93d8;
4749
}
4850
.hljs-name {
49-
color: #e06c75;
51+
color: #4dd0e1;
5052
}
5153
.hljs-type {
5254
color: #da4939;

src/highlightjs/material-light.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
overflow-x: auto;
55
padding: 1em;
66
background: #FAFAFA;
7-
color: #607D8B;
8-
font-family: "Roboto Mono", monospace;
9-
font-size: 1em;
7+
color: #37474f;
8+
-webkit-font-smoothing: antialiased;
9+
text-size-adjust: 100%;
10+
font: 300 100%/1 Roboto Mono,monospace;
11+
font-size: 14px;
1012
}
1113

1214
.hljs > *::selection,
@@ -23,12 +25,12 @@
2325
.hljs-selector-tag,
2426
.hljs-regexp,
2527
.hljs-meta {
26-
color: #39ADB5;
28+
color: #9c27b0;
2729
}
2830

2931
.hljs-string,
3032
.hljs-subst {
31-
color: #91B859;
33+
color: #0d904f;
3234
}
3335

3436
.hljs-number,
@@ -41,7 +43,7 @@
4143
.hljs-keyword,
4244
.hljs-type,
4345
.hljs-attribute {
44-
color: #7C4DFF;
46+
color: #3b78e7;
4547
}
4648

4749
.hljs-title,
@@ -55,11 +57,11 @@
5557
}
5658

5759
.hljs-params {
58-
color: #F76D47;
60+
color: #d81b60;
5961
}
6062

6163
.hljs-addition {
62-
color: #7C4DFF;
64+
color: #3b78e7;
6365
display: inline-block;
6466
width: 100%;
6567
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
sizes="192x192">
1717
<link rel="manifest" href="assets/img/favicons/manifest.json">
1818
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
19-
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono" rel="stylesheet">
19+
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono:300" rel="stylesheet">
2020
</head>
2121

2222
<body class="docs-app-background">

src/styles/_general.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ code {
3434
font-size: 90%;
3535
}
3636

37+
.docs-markdown-pre code {
38+
font-size: 100%;
39+
}
40+
3741
// These styles are for controlling SVGs without using the /deep/ selector
3842

3943
.docs-component-category-list-card-image svg {

0 commit comments

Comments
 (0)