Skip to content

Commit aae6dc4

Browse files
tweak colors on dark theme
1 parent 9aee164 commit aae6dc4

File tree

1 file changed

+27
-26
lines changed
  • src/librustdoc/html/static/themes

1 file changed

+27
-26
lines changed

src/librustdoc/html/static/themes/dark.css

+27-26
Original file line numberDiff line numberDiff line change
@@ -113,38 +113,38 @@ pre {
113113
.content .highlighted a, .content .highlighted span { color: #eee !important; }
114114
.content .highlighted.trait { background-color: #013191; }
115115
.content .highlighted.mod { background-color: #803a1b; }
116-
.content .highlighted.externcrate { background-color: #afc6e4; }
116+
.content .highlighted.externcrate { background-color: #396bac; }
117117
.content .highlighted.enum { background-color: #5b4e68; }
118118
.content .highlighted.struct { background-color: #194e9f; }
119119
.content .highlighted.fn,
120120
.content .highlighted.method,
121121
.content .highlighted.tymethod { background-color: #4950ed; }
122122
.content .highlighted.type { background-color: #38902c; }
123-
.content .highlighted.foreigntype { background-color: #f5c4ff; }
124-
.content .highlighted.macro { background-color: #8ce488; }
123+
.content .highlighted.foreigntype { background-color: #b200d6; }
124+
.content .highlighted.macro { background-color: #217d1c; }
125125
.content .highlighted.constant,
126-
.content .highlighted.static { background-color: #c3e0ff; }
127-
.content .highlighted.primitive { background-color: #9aecff; }
128-
129-
.content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
130-
.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
131-
.content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
132-
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
133-
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
134-
.content span.union, .content a.union, .block a.current.union { color: #767b27; }
126+
.content .highlighted.static { background-color: #0063cc; }
127+
.content .highlighted.primitive { background-color: #00708a; }
128+
129+
.content span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
130+
.content span.struct, .content a.struct, .block a.current.struct { color: #ff794d; }
131+
.content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
132+
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
133+
.content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
134+
.content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
135135
.content span.constant, .content a.constant, .block a.current.constant,
136-
.content span.static, .content a.static, .block a.current.static { color: #546e8a; }
137-
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
136+
.content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
137+
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
138138
.content span.externcrate,
139-
.content span.mod, .content a.mod, .block a.current.mod { color: #967F00; }
140-
.content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
139+
.content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
140+
.content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
141141
.content span.fn, .content a.fn, .block a.current.fn,
142142
.content span.method, .content a.method, .block a.current.method,
143143
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,
144144
.content .fnname{ color: #2BAB63; }
145145

146-
pre.rust .comment { color: #4D4D4C; }
147-
pre.rust .doccomment { color: #8E908C; }
146+
pre.rust .comment { color: #8d8d8b; }
147+
pre.rust .doccomment { color: #8ca375; }
148148

149149
nav {
150150
border-bottom-color: #4e4e4e;
@@ -191,33 +191,34 @@ a.test-arrow {
191191
}
192192

193193
#help > div {
194-
background: #e9e9e9;
194+
background: #4d4d4d;
195195
border-color: #bfbfbf;
196196
}
197197

198198
#help dt {
199199
border-color: #bfbfbf;
200200
background: #fff;
201+
color: black;
201202
}
202203

203204
.since {
204205
color: grey;
205206
}
206207

207208
tr.result span.primitive::after {
208-
color: black;
209+
color: #ddd;
209210
}
210211

211212
.line-numbers :target { background-color: transparent; }
212213

213214
/* Code highlighting */
214-
pre.rust .kw { color: #8959A8; }
215-
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
216-
pre.rust .number, pre.rust .string { color: #718C00; }
215+
pre.rust .kw { color: #ab8ac1; }
216+
pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
217+
pre.rust .number, pre.rust .string { color: #83a300; }
217218
pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
218-
pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
219+
pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
219220
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
220-
pre.rust .lifetime { color: #B76514; }
221+
pre.rust .lifetime { color: #d97f26; }
221222
pre.rust .question-mark {
222223
color: #ff9011;
223224
}
@@ -379,4 +380,4 @@ kbd {
379380
#theme-picker {
380381
background: #353535;
381382
}
382-
}
383+
}

0 commit comments

Comments
 (0)