Appearance configuration
Firework video player allows limited appearance configuration.
Theme
Player color theme can be set by using theme
attribute. Each theme can be additionally customized by CSS variables.
Currently available themes are:
light
dark
(default)preferred
(alternates between light and dark based on user's OS preference)
Example:
Custom UI icons
Certain UI elements can be configured from external sources by providing their public url location. This includes button icons and reaction animation (Firework uses Lottie player).
SVG images will be injected into player DOM so they have access to currentColor
variable and are properly colored based on theme. SVG images location has to comply with CORS policy against your origin. Other image types are rendered as background images, can't use theme color and don't require special treatment.
List of supported custom UI assets:
Example of configuration:
Last updated