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;
17 border-bottom-color: #5c6773;
23 border-bottom-color: #5c6773;
30 background-color: #0f1419;
34 background: rgba(0, 0, 0, 0);
43 .docblock pre > code, pre > code {
50 color: #39AFD7 !important;
52 .docblock code, .docblock-short code {
53 background-color: #191f26;
55 pre, .rustdoc.source .example-wrap {
57 background-color: #191f26;
60 .sidebar, .mobile-topbar, .sidebar-menu-toggle {
61 background-color: #14191f;
65 filter: drop-shadow(1px 0 0px #fff)
66 drop-shadow(0 1px 0 #fff)
67 drop-shadow(-1px 0 0 #fff)
68 drop-shadow(0 -1px 0 #fff);
71 /* Improve the scrollbar display on firefox */
73 scrollbar-color: #5c6773 #24292f;
77 scrollbar-color: #5c6773 #24292f;
80 /* Improve the scrollbar display on webkit-based browsers */
81 ::-webkit-scrollbar-track {
82 background-color: transparent;
84 ::-webkit-scrollbar-thumb {
85 background-color: #5c6773;
87 .sidebar::-webkit-scrollbar-track {
88 background-color: transparent;
90 .sidebar::-webkit-scrollbar-thumb {
91 background-color: #5c6773;
95 background-color: transparent;
100 background-color: #14191f;
103 .sidebar-elems .location {
107 .sidebar-elems .location a {
112 background: transparent;
116 .line-numbers span { color: #5c6773; }
117 .line-numbers .line-highlighted {
119 background-color: rgba(255, 236, 164, 0.06);
121 border-right: 1px solid #ffb44c;
124 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
125 border-bottom-color: #5c6773;
128 .docblock table td, .docblock table th {
129 border-color: #5c6773;
132 .content .method .where,
134 .content .where.fmt-newline {
138 .search-results a:hover {
139 background-color: #777;
142 .search-results a:focus {
143 color: #000 !important;
144 background-color: #c6afb3;
149 .search-results a div.desc {
153 .content .item-info::before { color: #ccc; }
155 .content span.foreigntype, .content a.foreigntype { color: #ffa0a5; }
156 .content span.union, .content a.union { color: #ffa0a5; }
157 .content span.constant, .content a.constant,
158 .content span.static, .content a.static { color: #39AFD7; }
159 .content span.primitive, .content a.primitive { color: #ffa0a5; }
160 .content span.traitalias, .content a.traitalias { color: #39AFD7; }
161 .content span.keyword, .content a.keyword { color: #39AFD7; }
163 .content span.externcrate, .content span.mod, .content a.mod {
166 .content span.struct, .content a.struct {
169 .content span.enum, .content a.enum {
172 .content span.trait, .content a.trait {
175 .content span.type, .content a.type {
180 .block a.current.type { color: #39AFD7; }
181 .content span.associatedtype,
182 .content a.associatedtype,
183 .block a.current.associatedtype { color: #39AFD7; }
184 .content span.fn, .content a.fn, .content span.method,
185 .content a.method, .content span.tymethod,
186 .content a.tymethod, .content .fnname {
189 .content span.attr, .content a.attr, .content span.derive,
190 .content a.derive, .content span.macro, .content a.macro {
194 .sidebar a { color: #53b1db; }
195 .sidebar a.current.type { color: #53b1db; }
196 .sidebar a.current.associatedtype { color: #53b1db; }
198 pre.rust .comment { color: #788797; }
199 pre.rust .doccomment { color: #a1ac88; }
202 border-top-color: #5c6773;
203 border-bottom-color: #5c6773;
205 nav.main .separator {
206 border: 1px solid #5c6773;
214 .small-section-header a,
226 body.source .example-wrap pre.rust a {
230 details.rustdoc-toggle > summary.hideme > span,
231 details.rustdoc-toggle > summary::before,
232 details.undocumented > summary::before {
236 details.rustdoc-toggle > summary::before,
237 details.undocumented > summary::before {
238 filter: invert(100%);
241 #crate-search, .search-input {
242 background-color: #141920;
243 border-color: #424c57;
260 background: #314559 !important;
261 border-style: none !important;
263 padding: 3px 6px 3px 6px;
266 .stab.portability > code {
273 box-shadow: 0px 6px 20px 0px black;
278 #help span.bottom, #help span.top {
279 border-color: #5c6773;
287 .result-name .primitive > i, .result-name .keyword > i {
291 .line-numbers :target { background-color: transparent; }
293 /* Code highlighting */
294 pre.rust .number, pre.rust .string { color: #b8cc52; }
295 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
296 pre.rust .bool-val, pre.rust .prelude-val,
297 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
298 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
299 pre.rust .question-mark {
306 pre.rust .attribute {
309 pre.rust .attribute .ident, pre.rust .attribute .op {
313 .example-wrap > pre.line-number {
322 background-color: rgba(57, 175, 215, 0.09);
326 background-color: rgba(57, 175, 215, 0.368);
336 background: rgba(255, 236, 164, 0.06);
337 border-right: 3px solid rgba(255, 180, 76, 0.85);
341 border-left: 2px solid rgba(255,0,0,.4);
344 pre.compile_fail:hover, .information:hover + pre.compile_fail {
345 border-left: 2px solid #f00;
349 border-left: 2px solid rgba(255,0,0,.4);
352 pre.should_panic:hover, .information:hover + pre.should_panic {
353 border-left: 2px solid #f00;
357 border-left: 2px solid rgba(255,142,0,.6);
360 pre.ignore:hover, .information:hover + pre.ignore {
361 border-left: 2px solid #ff9200;
364 .tooltip.compile_fail {
365 color: rgba(255,0,0,.5);
368 .information > .compile_fail:hover {
372 .tooltip.should_panic {
373 color: rgba(255,0,0,.5);
376 .information > .should_panic:hover {
381 color: rgba(255,142,0,.6);
384 .information > .ignore:hover {
393 background-color: #314559;
395 border: 1px solid #5c6773;
399 border-color: transparent #314559 transparent transparent;
402 .notable-traits-tooltiptext {
403 background-color: #314559;
404 border-color: #5c6773;
407 .notable-traits-tooltiptext .notable {
408 border-bottom-color: #5c6773;
411 #titles > button.selected {
412 background-color: #141920 !important;
413 border-bottom: 1px solid #ffb44c !important;
417 #titles > button:not(.selected) {
418 background-color: transparent !important;
422 #titles > button:hover {
423 border-bottom: 1px solid rgba(242, 151, 24, 0.3);
426 #titles > button > div.count {
430 /* rules that this theme does not need to set, here to satisfy the rule checker */
431 /* note that a lot of these are partially set in some way (meaning they are set
432 individually rather than as a group) */
433 /* FIXME: these rules should be at the bottom of the file but currently must be
434 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
435 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
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 span.struct,.content a.struct,.block a.current.struct {}
440 #titles>button:hover,#titles>button.selected {}
441 .content span.typedef,.content a.typedef,.block a.current.typedef {}
442 .content span.union,.content a.union,.block a.current.union {}
443 pre.rust .lifetime {}
446 h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {}
447 .content span.enum,.content a.enum,.block a.current.enum {}
448 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
449 .content a.static, .block a.current.static {}
450 .content span.keyword,.content a.keyword,.block a.current.keyword {}
452 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
453 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
454 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
457 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
458 pre.rust .attribute .ident {}
459 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
460 pre.rust .doccomment {}
462 .content a.attr,.content a.derive,.content a.macro {}
464 .content span.primitive,.content a.primitive,.block a.current.primitive {}
465 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
466 pre.rust .kw-2,pre.rust .prelude-ty {}
467 .content span.trait,.content a.trait,.block a.current.trait {}
469 .search-results a:focus span {}
470 a.result-trait:focus {}
471 a.result-traitalias:focus {}
473 a.result-externcrate:focus {}
474 a.result-mod:focus {}
475 a.result-externcrate:focus {}
476 a.result-enum:focus {}
477 a.result-struct:focus {}
478 a.result-union:focus {}
480 a.result-method:focus,
481 a.result-tymethod:focus {}
482 a.result-type:focus {}
483 a.result-associatedtype:focus {}
484 a.result-foreigntype:focus {}
486 a.result-derive:focus,
487 a.result-macro:focus {}
488 a.result-constant:focus,
489 a.result-static:focus {}
490 a.result-primitive:focus {}
491 a.result-keyword:focus {}
493 .sidebar a.current.enum {}
494 .sidebar a.current.struct {}
495 .sidebar a.current.foreigntype {}
496 .sidebar a.current.attr,
497 .sidebar a.current.derive,
498 .sidebar a.current.macro {}
499 .sidebar a.current.union {}
500 .sidebar a.current.constant
501 .sidebar a.current.static {}
502 .sidebar a.current.primitive {}
503 .sidebar a.current.externcrate
504 .sidebar a.current.mod {}
505 .sidebar a.current.trait {}
506 .sidebar a.current.traitalias {}
507 .sidebar a.current.fn,
508 .sidebar a.current.method,
509 .sidebar a.current.tymethod {}
510 .sidebar a.current.keyword {}
512 @media (max-width: 700px) {
514 background-color: #14191f;
515 border-bottom-color: #5c6773;
516 border-right-color: #5c6773;
520 background-color: #14191f;
521 border-right-color: #5c6773;
525 background-color: #14191f;
526 border-bottom-color: #5c6773;
532 background-color: #314559;
533 border-color: #5c6773;
534 border-bottom-color: #5c6773;
535 box-shadow: inset 0 -1px 0 #5c6773;
538 #theme-picker, #settings-menu, #help-button {
539 border-color: #5c6773;
540 background-color: #0f1419;
544 #theme-picker > img, #settings-menu > img {
554 #copy-path:hover > img {
555 filter: invert(100%);
558 #theme-picker:hover, #theme-picker:focus,
559 #settings-menu:hover, #settings-menu:focus,
560 #help-button:hover, #help-button:focus {
561 border-color: #e0e0e0;
565 border-color: #5c6773;
566 background-color: #0f1419;
569 #theme-choices > button:not(:first-child) {
570 border-top-color: #5c6773;
573 #theme-choices > button:hover, #theme-choices > button:focus {
574 background-color: rgba(110, 110, 110, 0.33);
577 @media (max-width: 700px) {
583 .search-results .result-name span.alias {
586 .search-results .result-name span.grey {
591 background-color: #14191f;
593 #sidebar-toggle:hover {
594 background-color: rgba(70, 70, 70, 0.33);
597 background-color: #14191f;
599 #source-sidebar > .title {
601 border-bottom-color: #5c6773;
603 div.files > a:hover, div.name:hover {
604 background-color: #14191f;
607 div.files > .selected {
608 background-color: #14191f;
611 .setting-line > .title {
612 border-bottom-color: #5c6773;
614 input:checked + .slider {
615 background-color: #ffb454 !important;
618 .scraped-example .example-wrap .rust span.highlight {
619 background: rgb(91, 59, 1);
621 .scraped-example .example-wrap .rust span.highlight.focus {
622 background: rgb(124, 75, 15);
624 .scraped-example:not(.expanded) .code-wrapper:before {
625 background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
627 .scraped-example:not(.expanded) .code-wrapper:after {
628 background: linear-gradient(to top, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
633 .toggle-line:hover .toggle-line-inner {