html[data-theme="dark"] {
  color-scheme: dark;
  background: #17181b;
}
html[data-theme="dark"] body {
  background: #17181b;
  color: #e2e2e6;
}
html[data-theme="dark"] .button,
html[data-theme="dark"] button {
  color: #c4c4ca;
  border-color: #4b4c52;
}
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .button:focus,
html[data-theme="dark"] button:hover,
html[data-theme="dark"] button:focus {
  color: #fff;
  border-color: #8c8d93;
}
html[data-theme="dark"] hr,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .docs-section,
html[data-theme="dark"] .footer {
  border-color: #2b2c31;
}
html[data-theme="dark"] code {
  background: #222327;
  border-color: #33343a;
}
html[data-theme="dark"] ul.tab-nav { border-bottom-color: #4b4c52; }
html[data-theme="dark"] ul.tab-nav li .active.button {
  border-bottom-color: #17181b;
  color: #fff;
}
html[data-theme="dark"] .title-subtitle h5 { color: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .project-image-container { border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .footer { color: rgba(255, 255, 255, .45); }
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .navbar-spacer {
  background: #17181b;
  border-color: #2b2c31;
}
html[data-theme="dark"] .navbar-link { color: #e2e2e6; }
html[data-theme="dark"] .navbar-link.active { color: #33C3F0; }
html[data-theme="dark"] .timeline { --surface: #17181b; --date: #33C3F0; }

button.theme-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 32px;
  letter-spacing: 0;
}
.theme-toggle .fa-sun,
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

@media (min-width: 750px) {
  button.theme-toggle {
    position: fixed;
    top: 15px;
    right: 18px;
  }
}
