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;
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;
105 background-color: #0f1419;
109 .sidebar-elems .location {
113 .sidebar-elems .location a {
118 border-bottom-color: #424c57;
122 border-top-color: #5c6773;
123 border-bottom-color: #5c6773;
127 background: transparent;
131 .line-numbers span { color: #5c6773; }
132 .line-numbers .line-highlighted {
134 background-color: rgba(255, 236, 164, 0.06);
136 border-right: 1px solid #ffb44c;
139 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
140 border-bottom-color: #5c6773;
143 .docblock table td, .docblock table th {
144 border-color: #5c6773;
147 .content .method .where,
149 .content .where.fmt-newline {
153 .search-results a:hover {
154 background-color: #777;
157 .search-results a:focus {
158 color: #000 !important;
159 background-color: #c6afb3;
164 .search-results a div.desc {
168 .content .item-info::before { color: #ccc; }
170 .content span.foreigntype, .content a.foreigntype { color: #ef57ff; }
171 .content span.union, .content a.union { color: #98a01c; }
172 .content span.constant, .content a.constant,
173 .content span.static, .content a.static { color: #6380a0; }
174 .content span.primitive, .content a.primitive { color: #32889b; }
175 .content span.traitalias, .content a.traitalias { color: #57d399; }
176 .content span.keyword, .content a.keyword { color: #de5249; }
178 .content span.externcrate, .content span.mod, .content a.mod {
181 .content span.struct, .content a.struct {
184 .content span.enum, .content a.enum {
187 .content span.trait, .content a.trait {
190 .content span.type, .content a.type {
193 .content span.fn, .content a.fn, .content span.method,
194 .content a.method, .content span.tymethod,
195 .content a.tymethod, .content .fnname {
198 .content span.attr, .content a.attr, .content span.derive,
199 .content a.derive, .content span.macro, .content a.macro {
203 pre.rust .comment { color: #788797; }
204 pre.rust .doccomment { color: #a1ac88; }
207 border-bottom-color: #424c57;
210 border-top-color: #5c6773;
211 border-bottom-color: #5c6773;
213 nav.main .separator {
214 border: 1px solid #5c6773;
222 .small-section-header a,
232 body.source .example-wrap pre.rust a {
236 details.rustdoc-toggle > summary.hideme > span,
237 details.rustdoc-toggle > summary::before,
238 details.undocumented > summary::before {
242 details.rustdoc-toggle > summary::before,
243 details.undocumented > summary::before {
244 filter: invert(100%);
249 background-color: #141920;
250 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
251 border-color: #424c57;
256 background-color: #141920;
257 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
258 transition: box-shadow 150ms ease-in-out;
261 #crate-search+.search-input:focus {
262 box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
274 background: #314559 !important;
275 border-style: none !important;
277 padding: 3px 6px 3px 6px;
280 .stab.portability > code {
287 box-shadow: 0px 6px 20px 0px black;
292 #help span.bottom, #help span.top {
293 border-color: #5c6773;
300 .result-name .primitive > i, .result-name .keyword > i {
304 .line-numbers :target { background-color: transparent; }
306 /* Code highlighting */
307 pre.rust .number, pre.rust .string { color: #b8cc52; }
308 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
309 pre.rust .bool-val, pre.rust .prelude-val,
310 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
311 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
312 pre.rust .question-mark {
319 pre.rust .attribute {
322 pre.rust .attribute .ident, pre.rust .attribute .op {
326 .example-wrap > pre.line-number {
335 background-color: rgba(57, 175, 215, 0.09);
339 background-color: rgba(57, 175, 215, 0.368);
348 :target, :target > * {
349 background: rgba(255, 236, 164, 0.06);
353 border-right: 3px solid rgba(255, 180, 76, 0.85);
357 border-left: 2px solid rgba(255,0,0,.4);
360 pre.compile_fail:hover, .information:hover + pre.compile_fail {
361 border-left: 2px solid #f00;
365 border-left: 2px solid rgba(255,0,0,.4);
368 pre.should_panic:hover, .information:hover + pre.should_panic {
369 border-left: 2px solid #f00;
373 border-left: 2px solid rgba(255,142,0,.6);
376 pre.ignore:hover, .information:hover + pre.ignore {
377 border-left: 2px solid #ff9200;
380 .tooltip.compile_fail {
381 color: rgba(255,0,0,.5);
384 .information > .compile_fail:hover {
388 .tooltip.should_panic {
389 color: rgba(255,0,0,.5);
392 .information > .should_panic:hover {
397 color: rgba(255,142,0,.6);
400 .information > .ignore:hover {
409 background-color: #314559;
411 border: 1px solid #5c6773;
415 border-color: transparent #314559 transparent transparent;
418 .notable-traits-tooltiptext {
419 background-color: #314559;
420 border-color: #5c6773;
423 .notable-traits-tooltiptext .notable {
424 border-bottom-color: #5c6773;
427 #titles > button.selected {
428 background-color: #141920 !important;
429 border-bottom: 1px solid #ffb44c !important;
433 #titles > button:not(.selected) {
434 background-color: transparent !important;
438 #titles > button:hover {
439 border-bottom: 1px solid rgba(242, 151, 24, 0.3);
442 #titles > button > div.count {
446 /* rules that this theme does not need to set, here to satisfy the rule checker */
447 /* note that a lot of these are partially set in some way (meaning they are set
448 individually rather than as a group) */
449 /* FIXME: these rules should be at the bottom of the file but currently must be
450 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
451 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
452 .search-input:focus {}
453 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
454 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
455 .content span.struct,.content a.struct,.block a.current.struct {}
456 #titles>button:hover,#titles>button.selected {}
457 .content span.type,.content a.type,.block a.current.type {}
458 .content span.union,.content a.union,.block a.current.union {}
459 pre.rust .lifetime {}
461 h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
462 .content span.enum,.content a.enum,.block a.current.enum {}
463 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
464 .content a.static, .block a.current.static {}
465 .content span.keyword,.content a.keyword,.block a.current.keyword {}
467 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
468 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
469 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
472 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
473 pre.rust .attribute .ident {}
474 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
475 pre.rust .doccomment {}
477 .content a.attr,.content a.derive,.content a.macro {}
479 .content span.primitive,.content a.primitive,.block a.current.primitive {}
480 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
481 pre.rust .kw-2,pre.rust .prelude-ty {}
482 .content span.trait,.content a.trait,.block a.current.trait {}
484 .search-results a:focus span {}
485 a.result-trait:focus {}
486 a.result-traitalias:focus {}
488 a.result-externcrate:focus {}
489 a.result-mod:focus {}
490 a.result-externcrate:focus {}
491 a.result-enum:focus {}
492 a.result-struct:focus {}
493 a.result-union:focus {}
495 a.result-method:focus,
496 a.result-tymethod:focus {}
497 a.result-type:focus {}
498 a.result-foreigntype:focus {}
500 a.result-derive:focus,
501 a.result-macro:focus {}
502 a.result-constant:focus,
503 a.result-static:focus {}
504 a.result-primitive:focus {}
505 a.result-keyword:focus {}
507 @media (max-width: 700px) {
509 background-color: #14191f;
510 border-bottom-color: #5c6773;
511 border-right-color: #5c6773;
515 background-color: #14191f;
516 border-right-color: #5c6773;
520 background-color: #14191f;
521 border-bottom-color: #5c6773;
527 background-color: #314559;
528 border-color: #5c6773;
529 border-bottom-color: #5c6773;
530 box-shadow-color: #c6cbd1;
533 #theme-picker, #settings-menu, #help-button {
534 border-color: #5c6773;
535 background-color: #0f1419;
539 #theme-picker > img, #settings-menu > img {
549 #copy-path:hover > img {
550 filter: invert(100%);
553 #theme-picker:hover, #theme-picker:focus,
554 #settings-menu:hover, #settings-menu:focus,
555 #help-button:hover, #help-button:focus {
556 border-color: #e0e0e0;
560 border-color: #5c6773;
561 background-color: #0f1419;
564 #theme-choices > button:not(:first-child) {
565 border-top-color: #5c6773;
568 #theme-choices > button:hover, #theme-choices > button:focus {
569 background-color: rgba(110, 110, 110, 0.33);
572 @media (max-width: 700px) {
579 background-color: #14191f;
582 background-color: rgba(70, 70, 70, 0.33);
585 .search-results .result-name span.alias {
588 .search-results .result-name span.grey {
593 background-color: #14191f;
595 #sidebar-toggle:hover {
596 background-color: rgba(70, 70, 70, 0.33);
599 background-color: #14191f;
601 #source-sidebar > .title {
603 border-bottom-color: #5c6773;
605 div.files > a:hover, div.name:hover {
606 background-color: #14191f;
609 div.files > .selected {
610 background-color: #14191f;
613 .setting-line > .title {
614 border-bottom-color: #5c6773;
616 input:checked + .slider {
617 background-color: #ffb454 !important;
620 .scraped-example .example-wrap .rust span.highlight {
621 background: rgb(91, 59, 1);
623 .scraped-example .example-wrap .rust span.highlight.focus {
624 background: rgb(124, 75, 15);
626 .scraped-example:not(.expanded) .code-wrapper:before {
627 background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
629 .scraped-example:not(.expanded) .code-wrapper:after {
630 background: linear-gradient(to top, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
635 .toggle-line:hover .toggle-line-inner {
636 background: ##898989;