Skip to main content

Theme Types

This document outlines the types related to player theming.

Theme

The Theme interface defines the styling tokens for the video player, allowing for consistent and customizable designs.

colors

PropertyTypeRequiredDefaultDescription
primarystringYesMain action color.
secondarystringYesSecondary UI color.
accentstringYesHighlight or progress color.
backgroundstringYesMain background color.
overlaystringYesSemi-transparent overlay color.
textstringYesPrimary text color.
errorstringYesColor for error states.
successstringYesColor for success states.
borderstringYesBorder or outline color.

sizing

PropertyTypeRequiredDefaultDescription
xsnumberYes4Extra small spacing (4px).
smnumberYes8Small spacing (8px).
mdnumberYes16Medium spacing (16px).
lgnumberYes24Large spacing (24px).
xlnumberYes32Extra large spacing (32px).

iconSizes

PropertyTypeRequiredDefaultDescription
smnumberYesSmall icons.
mdnumberYesMedium icons.
lgnumberYesLarge icons.

borderRadius

PropertyTypeRequiredDefaultDescription
borderRadiusnumberYes8Global border radius (8px).

fonts

PropertyTypeRequiredDefaultDescription
regularstringYesRegular font family.
mediumstringYesMedium weight font family.
boldstringYesBold font family.

fontSizes

PropertyTypeRequiredDefaultDescription
smnumberYesSmall text size.
mdnumberYesMedium text size.
lgnumberYesLarge text size.

animations

PropertyTypeRequiredDefaultDescription
fastnumberYes100Fast animation duration (100ms).
normalnumberYes200Normal animation duration (200ms).
slownumberYes300Slow animation duration (300ms).