Skip to main content
Skip table of contents

CSS customisation

To test this feature and view the example code, please see the  Browsers SDK 1 Example Code Quick Start guide.

CSS customisation provides the ability to personalise your player.

Modifying colours

The CSS style uses custom properties to define the elements' colours. These can be modified in the given CSS file to give your player a personalised colour scheme. Each property and its effect is described in the table below.

Variable NameAffected Element
--bpb-colorBig play button colour
--bpb-color-hoverBig play button colour on hover
--spinner-colorLoading Spinner colour
--control-bar-colorControl bar colour
--control-bar-icons-colorControl bar icon colour
--volume-colorVolume slider colour
--progress-colorProgress bar colour
--menu-colorMenu background colour
--menu-selected-colorSelected element text colour
--menu-selected-background-colorSelected element background colour
--pip-control-bar-colorControl bar colour while in pip mode
--chapter-title-colorChapters title colour
--chapter-marker-colorChapter marker colour
--chapter-highlight-colorChapter highlight colour

Advanced customisation

To change more than the player colours, by examining the CSS in standalone-style.css, you will see the additional CSS class opy-standalone which increases the CSS specificity for the customisation. Use this as a guide to further customise your player.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.