Extensibility

Theming

CSS-variable theming for the built-in HUD and controls.

Override the CSS variables on any ancestor of the player - the player's own width cap, popup width and alignment, button colours, corner radius, accent:

.my-video-wrapper {
  --ml-video-btn-bg: #e11d48;
  --ml-video-btn-color: #fff;
  --ml-video-controls-width: min(600px, calc(100% - 32px));
  --ml-video-max-width: none; /* fill the container instead of capping at 800px */
}

Every control's own CSS uses :where() (zero specificity), so a single class of yours always wins - no !important, no forking (see styling). Popup show/hide and fullscreen behaviour are covered on the behaviour page.

munsonlabs · MIT licensed · © 2026