🎨 CSS custom properties

🎨 CSS custom properties#

sc-videos defines CSS custom properties (variables) on :root that you can override in your project's theme to restyle the video player and widgets without modifying the add-on source.

🎬 Video player#

Variable

Default

Description

--video-player-fallback-bg

#1a1a1a

Background color shown when no preview image is available.

--video-player-icon-size

68px

Size of the play button icon overlay.

--video-player-play-bg

rgba(0, 0, 0, 0.45)

Background of the circular play button.

--video-player-play-bg-hover

rgba(0, 0, 0, 0.65)

Play button background on hover and focus.

🔧 Widgets#

Variable

Default

Description

--video-url-widget-cancel

#ff0010

Fill color of the clear (✕) button SVG icon in the VideoURLWidget.

📝 Usage#

Override these in your project's SCSS or CSS:

:root {
  --video-player-fallback-bg: #000;
  --video-player-play-bg: rgba(255, 255, 255, 0.3);
  --video-player-play-bg-hover: rgba(255, 255, 255, 0.5);
  --video-url-widget-cancel: #e40166;
}

Variables are defined in frontend/packages/volto-videos/src/theme/_root.scss.

See also