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,
228 details.rustdoc-toggle > summary.hideme > span,
229 details.rustdoc-toggle > summary::before,
230 details.undocumented > summary::before {
236 background-color: #141920;
237 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
238 border-color: #424c57;
243 background-color: #141920;
244 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
245 transition: box-shadow 150ms ease-in-out;
248 #crate-search+.search-input:focus {
249 box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
252 .search-focus:disabled {
265 background: #314559 !important;
266 border-style: none !important;
268 padding: 3px 6px 3px 6px;
271 .stab.portability > code {
278 box-shadow: 0px 6px 20px 0px black;
284 border-bottom-color: #5c6773;
291 tr.result span.primitive::after, tr.result span.keyword::after {
295 .line-numbers :target { background-color: transparent; }
297 /* Code highlighting */
298 pre.rust .number, pre.rust .string { color: #b8cc52; }
299 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
300 pre.rust .bool-val, pre.rust .prelude-val,
301 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
302 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
303 pre.rust .question-mark {
310 pre.rust .attribute {
313 pre.rust .attribute .ident, pre.rust .attribute .op {
317 .example-wrap > pre.line-number {
326 background-color: rgba(57, 175, 215, 0.09);
330 background-color: rgba(57, 175, 215, 0.368);
339 :target > code, :target > .in-band {
340 background: rgba(255, 236, 164, 0.06);
341 border-right: 3px solid rgba(255, 180, 76, 0.85);
345 border-left: 2px solid rgba(255,0,0,.4);
348 pre.compile_fail:hover, .information:hover + pre.compile_fail {
349 border-left: 2px solid #f00;
353 border-left: 2px solid rgba(255,0,0,.4);
356 pre.should_panic:hover, .information:hover + pre.should_panic {
357 border-left: 2px solid #f00;
361 border-left: 2px solid rgba(255,142,0,.6);
364 pre.ignore:hover, .information:hover + pre.ignore {
365 border-left: 2px solid #ff9200;
368 .tooltip.compile_fail {
369 color: rgba(255,0,0,.5);
372 .information > .compile_fail:hover {
376 .tooltip.should_panic {
377 color: rgba(255,0,0,.5);
380 .information > .should_panic:hover {
385 color: rgba(255,142,0,.6);
388 .information > .ignore:hover {
397 background-color: #314559;
399 border: 1px solid #5c6773;
403 border-color: transparent #314559 transparent transparent;
406 .notable-traits-tooltiptext {
407 background-color: #314559;
408 border-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 .content .highlighted.mod, .content .highlighted.externcrate {}
437 .search-input:focus {}
438 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
439 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
440 .content .highlighted.trait {}
441 .content span.struct,.content a.struct,.block a.current.struct {}
442 #titles>button:hover,#titles>button.selected {}
443 .content .highlighted.traitalias {}
444 .content span.type,.content a.type,.block a.current.type {}
445 .content span.union,.content a.union,.block a.current.union {}
446 .content .highlighted.foreigntype {}
447 pre.rust .lifetime {}
448 .content .highlighted.primitive {}
449 .content .highlighted.constant,.content .highlighted.static {}
451 .content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod {}
452 h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
453 .content span.enum,.content a.enum,.block a.current.enum {}
454 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
455 .content a.static,.block a.current.static {}
456 .content span.keyword,.content a.keyword,.block a.current.keyword {}
458 .content .highlighted.enum {}
459 .content .highlighted.struct {}
460 .content .highlighted.keyword {}
461 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
462 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
463 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
466 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
467 pre.rust .attribute .ident {}
468 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
469 pre.rust .doccomment {}
471 .content .highlighted.attr,.content .highlighted.derive,.content .highlighted.macro {}
473 .content .highlighted.union {}
474 .content span.primitive,.content a.primitive,.block a.current.primitive {}
475 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
476 .content .highlighted.type {}
477 pre.rust .kw-2,pre.rust .prelude-ty {}
478 .content span.trait,.content a.trait,.block a.current.trait {}
480 @media (max-width: 700px) {
482 background-color: #14191f;
483 border-bottom-color: #5c6773;
484 border-right-color: #5c6773;
488 background-color: #14191f;
489 border-right-color: #5c6773;
493 background-color: #14191f;
494 border-bottom-color: #5c6773;
500 background-color: #314559;
501 border-color: #5c6773;
502 border-bottom-color: #5c6773;
503 box-shadow-color: #c6cbd1;
506 #theme-picker, #settings-menu, #help-button, #copy-path {
507 border-color: #5c6773;
508 background-color: #0f1419;
512 #theme-picker > img, #settings-menu > img, #copy-path > img {
516 #theme-picker:hover, #theme-picker:focus,
517 #settings-menu:hover, #settings-menu:focus,
518 #help-button:hover, #help-button:focus,
519 #copy-path:hover, #copy-path:focus {
520 border-color: #e0e0e0;
524 border-color: #5c6773;
525 background-color: #0f1419;
528 #theme-choices > button:not(:first-child) {
529 border-top-color: #5c6773;
532 #theme-choices > button:hover, #theme-choices > button:focus {
533 background-color: rgba(110, 110, 110, 0.33);
536 @media (max-width: 700px) {
543 background-color: #14191f;
546 background-color: rgba(70, 70, 70, 0.33);
549 .search-results td span.alias {
552 .search-results td span.grey {
557 background-color: #14191f;
559 #sidebar-toggle:hover {
560 background-color: rgba(70, 70, 70, 0.33);
563 background-color: #14191f;
565 #source-sidebar > .title {
567 border-bottom-color: #5c6773;
569 div.files > a:hover, div.name:hover {
570 background-color: #14191f;
573 div.files > .selected {
574 background-color: #14191f;
577 .setting-line > .title {
578 border-bottom-color: #5c6773;
580 input:checked + .slider {
581 background-color: #ffb454 !important;