2 Based off of the Ayu theme
3 Original by Dempfi (https://github.com/dempfi/ayu)
6 /* General structure and fonts */
9 background-color: #0f1419;
13 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14 h4:not(.method):not(.type):not(.tymethod) {
18 border-bottom-color: #5c6773;
23 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod) {
24 border-bottom-color: #5c6773;
26 h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
31 background-color: #0f1419;
35 background: rgba(0, 0, 0, 0);
41 h3 > code, h4 > code, h5 > code {
51 color: #39AFD7 !important;
53 .docblock code, .docblock-short code {
54 background-color: #191f26;
56 pre, .rustdoc.source .example-wrap {
58 background-color: #191f26;
62 background-color: #14191f;
65 .logo-container.rust-logo > img {
66 filter: drop-shadow(1px 0 0px #fff)
67 drop-shadow(0 1px 0 #fff)
68 drop-shadow(-1px 0 0 #fff)
69 drop-shadow(0 -1px 0 #fff);
72 /* Improve the scrollbar display on firefox */
74 scrollbar-color: #5c6773 transparent;
78 scrollbar-color: #5c6773 transparent;
81 /* Improve the scrollbar display on webkit-based browsers */
82 ::-webkit-scrollbar-track {
83 background-color: transparent;
85 ::-webkit-scrollbar-thumb {
86 background-color: #5c6773;
88 .sidebar::-webkit-scrollbar-track {
89 background-color: transparent;
91 .sidebar::-webkit-scrollbar-thumb {
92 background-color: #5c6773;
96 background-color: transparent;
101 background-color: #0f1419;
106 background-color: #0f1419;
110 .sidebar-elems .location {
114 .sidebar-elems .location a {
119 border-bottom-color: #424c57;
123 border-top-color: #5c6773;
124 border-bottom-color: #5c6773;
128 background: transparent;
132 .line-numbers span { color: #5c6773; }
133 .line-numbers .line-highlighted {
135 background-color: rgba(255, 236, 164, 0.06);
137 border-right: 1px solid #ffb44c;
140 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
141 border-bottom-color: #5c6773;
144 .docblock table, .docblock table td, .docblock table th {
145 border-color: #5c6773;
148 .content .method .where,
150 .content .where.fmt-newline {
154 .content .highlighted {
155 color: #000 !important;
156 background-color: #c6afb3;
158 .content .highlighted a, .content .highlighted span { color: #000 !important; }
159 .content .highlighted {
160 background-color: #c6afb3;
165 .search-results a span.desc {
169 .content .item-info::before { color: #ccc; }
171 .content span.foreigntype, .content a.foreigntype { color: #ef57ff; }
172 .content span.union, .content a.union { color: #98a01c; }
173 .content span.constant, .content a.constant,
174 .content span.static, .content a.static { color: #6380a0; }
175 .content span.primitive, .content a.primitive { color: #32889b; }
176 .content span.traitalias, .content a.traitalias { color: #57d399; }
177 .content span.keyword, .content a.keyword { color: #de5249; }
179 .content span.externcrate, .content span.mod, .content a.mod {
182 .content span.struct, .content a.struct {
185 .content span.enum, .content a.enum {
188 .content span.trait, .content a.trait {
191 .content span.type, .content a.type {
194 .content span.fn, .content a.fn, .content span.method,
195 .content a.method, .content span.tymethod,
196 .content a.tymethod, .content .fnname {
199 .content span.attr, .content a.attr, .content span.derive,
200 .content a.derive, .content span.macro, .content a.macro {
204 pre.rust .comment { color: #788797; }
205 pre.rust .doccomment { color: #a1ac88; }
208 border-bottom-color: #424c57;
211 border-top-color: #5c6773;
212 border-bottom-color: #5c6773;
214 nav.main .separator {
215 border: 1px solid #5c6773;
221 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
222 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
227 details.rustdoc-toggle > summary.hideme > span,
228 details.rustdoc-toggle > summary::before,
229 details.undocumented > summary::before {
235 background-color: #141920;
236 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
237 border-color: #424c57;
242 background-color: #141920;
243 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
244 transition: box-shadow 150ms ease-in-out;
247 #crate-search+.search-input:focus {
248 box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
251 .search-focus:disabled {
264 background: #314559 !important;
265 border-style: none !important;
267 padding: 3px 6px 3px 6px;
270 .stab.portability > code {
277 box-shadow: 0px 6px 20px 0px black;
283 border-bottom-color: #5c6773;
290 tr.result span.primitive::after, tr.result span.keyword::after {
294 .line-numbers :target { background-color: transparent; }
296 /* Code highlighting */
297 pre.rust .number, pre.rust .string { color: #b8cc52; }
298 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
299 pre.rust .bool-val, pre.rust .prelude-val,
300 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
301 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
302 pre.rust .question-mark {
309 pre.rust .attribute {
312 pre.rust .attribute .ident, pre.rust .attribute .op {
316 .example-wrap > pre.line-number {
325 background-color: rgba(57, 175, 215, 0.09);
329 background-color: rgba(57, 175, 215, 0.368);
338 :target > code, :target > .in-band {
339 background: rgba(255, 236, 164, 0.06);
340 border-right: 3px solid rgba(255, 180, 76, 0.85);
344 border-left: 2px solid rgba(255,0,0,.4);
347 pre.compile_fail:hover, .information:hover + pre.compile_fail {
348 border-left: 2px solid #f00;
352 border-left: 2px solid rgba(255,0,0,.4);
355 pre.should_panic:hover, .information:hover + pre.should_panic {
356 border-left: 2px solid #f00;
360 border-left: 2px solid rgba(255,142,0,.6);
363 pre.ignore:hover, .information:hover + pre.ignore {
364 border-left: 2px solid #ff9200;
367 .tooltip.compile_fail {
368 color: rgba(255,0,0,.5);
371 .information > .compile_fail:hover {
375 .tooltip.should_panic {
376 color: rgba(255,0,0,.5);
379 .information > .should_panic:hover {
384 color: rgba(255,142,0,.6);
387 .information > .ignore:hover {
396 background-color: #314559;
398 border: 1px solid #5c6773;
402 border-color: transparent #314559 transparent transparent;
405 .notable-traits-tooltiptext {
406 background-color: #314559;
407 border-color: #5c6773;
410 #titles > button.selected {
411 background-color: #141920 !important;
412 border-bottom: 1px solid #ffb44c !important;
416 #titles > button:not(.selected) {
417 background-color: transparent !important;
421 #titles > button:hover {
422 border-bottom: 1px solid rgba(242, 151, 24, 0.3);
425 #titles > button > div.count {
429 /* rules that this theme does not need to set, here to satisfy the rule checker */
430 /* note that a lot of these are partially set in some way (meaning they are set
431 individually rather than as a group) */
432 /* FIXME: these rules should be at the bottom of the file but currently must be
433 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
434 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
435 .content .highlighted.mod, .content .highlighted.externcrate {}
436 .search-input:focus {}
437 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
438 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
439 .content .highlighted.trait {}
440 .content span.struct,.content a.struct,.block a.current.struct {}
441 #titles>button:hover,#titles>button.selected {}
442 .content .highlighted.traitalias {}
443 .content span.type,.content a.type,.block a.current.type {}
444 .content span.union,.content a.union,.block a.current.union {}
445 .content .highlighted.foreigntype {}
446 pre.rust .lifetime {}
447 .content .highlighted.primitive {}
448 .content .highlighted.constant,.content .highlighted.static {}
450 .content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod {}
451 h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
452 .content span.enum,.content a.enum,.block a.current.enum {}
453 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
454 .content a.static,.block a.current.static {}
455 .content span.keyword,.content a.keyword,.block a.current.keyword {}
457 .content .highlighted.enum {}
458 .content .highlighted.struct {}
459 .content .highlighted.keyword {}
460 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
461 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
462 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
465 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
466 pre.rust .attribute .ident {}
467 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
468 pre.rust .doccomment {}
470 .content .highlighted.attr,.content .highlighted.derive,.content .highlighted.macro {}
472 .content .highlighted.union {}
473 .content span.primitive,.content a.primitive,.block a.current.primitive {}
474 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
475 .content .highlighted.type {}
476 pre.rust .kw-2,pre.rust .prelude-ty {}
477 .content span.trait,.content a.trait,.block a.current.trait {}
479 @media (max-width: 700px) {
481 background-color: #14191f;
482 border-bottom-color: #5c6773;
483 border-right-color: #5c6773;
487 background-color: #14191f;
488 border-right-color: #5c6773;
492 background-color: #14191f;
493 border-bottom-color: #5c6773;
499 background-color: #314559;
500 border-color: #5c6773;
501 border-bottom-color: #5c6773;
502 box-shadow-color: #c6cbd1;
505 #theme-picker, #settings-menu, #help-button, #copy-path {
506 border-color: #5c6773;
507 background-color: #0f1419;
511 #theme-picker > img, #settings-menu > img, #copy-path > img {
515 #theme-picker:hover, #theme-picker:focus,
516 #settings-menu:hover, #settings-menu:focus,
517 #help-button:hover, #help-button:focus,
518 #copy-path:hover, #copy-path:focus {
519 border-color: #e0e0e0;
523 border-color: #5c6773;
524 background-color: #0f1419;
527 #theme-choices > button:not(:first-child) {
528 border-top-color: #5c6773;
531 #theme-choices > button:hover, #theme-choices > button:focus {
532 background-color: rgba(110, 110, 110, 0.33);
535 @media (max-width: 700px) {
542 background-color: #14191f;
545 background-color: rgba(70, 70, 70, 0.33);
548 .search-results td span.alias {
551 .search-results td span.grey {
556 background-color: #14191f;
558 #sidebar-toggle:hover {
559 background-color: rgba(70, 70, 70, 0.33);
562 background-color: #14191f;
564 #source-sidebar > .title {
566 border-bottom-color: #5c6773;
568 div.files > a:hover, div.name:hover {
569 background-color: #14191f;
572 div.files > .selected {
573 background-color: #14191f;
576 .setting-line > .title {
577 border-bottom-color: #5c6773;
579 input:checked + .slider {
580 background-color: #ffb454 !important;