Skip to content

Commit 520cbae

Browse files
committed
addresses comments: updates dark theme colors, color names. slightly increases error-message text size.
1 parent 89d1129 commit 520cbae

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

message-index/css/default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ details > summary {
3535
}
3636

3737
#error-message {
38-
font-size: small;
38+
font-size: medium;
3939
}
4040

4141
.example {

message-index/css/theme.css

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
body {
1+
:root {
22
--bg-color: #FFFFFF;
33
--text-color: #333;
44
--outline-color: #DB83ED;
55
--header-color: #6D28D9;
6-
--bg-nav: transparent;
7-
--code-color: #FAFAFA;
6+
--anchor-color: initial;
7+
--anchor-visited-color: initial;
8+
--code-bg-color: #FAFAFA;
89
--filename-bg: #EAEAEA;
910
}
1011

1112
@media (prefers-color-scheme: dark) {
12-
body {
13+
:root {
1314
--bg-color: #333;
1415
--text-color: #C9D1D9;
15-
--header-color: #8946C8;
16-
--bg-nav: #393939;
17-
--code-color: transparent;
16+
--header-color: #BBA1FF;
17+
--anchor-color: #EB82DC;
18+
--anchor-visited-color: #D5C5FF;
19+
--code-bg-color: transparent;
1820
--filename-bg: #2C2C2C;
1921
}
2022

21-
a {
22-
color: #EB82DC;
23-
}
24-
25-
a:visited {
26-
color: #D5C5FF;
27-
}
28-
23+
/* TODO: this is a stopgap until there's custom highlighting for dark mode */
2924
code.hljs {
3025
background-color: transparent;
3126
filter: invert(1);
@@ -39,9 +34,14 @@ body {
3934
body {
4035
color: var(--text-color);
4136
background-color: var(--bg-color);
42-
text-rendering: optimizeLegibility;
43-
-webkit-font-smoothing: antialiased;
44-
-moz-osx-font-smoothing: grayscale;
37+
}
38+
39+
a {
40+
color: var(--anchor-color);
41+
}
42+
43+
a:visited {
44+
color: var(--anchor-visited-color);
4545
}
4646

4747
h1, h2, h3, h4, h5, h6 {
@@ -58,7 +58,7 @@ details {
5858
}
5959

6060
main code, main pre, main pre code, .example pre {
61-
background-color: var(--code-color);
61+
background-color: var(--code-bg-color);
6262
}
6363

6464
.filename {

0 commit comments

Comments
 (0)