Skip to main content

Styles

You can customise the WebPlayer color & roundness with CSS Variables

CSS VariableDescriptionDefault Value
--cc-webplayer-backgroundBackground color (contrast texts)0 0% 100%
--cc-webplayer-foregroundForeground color (text color)240 10% 3.9%
--cc-webplayer-primaryPrimary color (buttons)216 100% 52%
--cc-webplayer-primary-foregroundForeground color for primary items--cc-background
--cc-webplayer-primary-lightAlternative to primary if too dark--cc-primary
--cc-webplayer-neutralNeutral color0 0% 39%
--cc-webplayer-neutral-foregroundForeground color for neutral items--cc-foreground
--cc-webplayer-radius-uiUI element Border radius (buttons)1rem
--cc-webplayer-radius-carrouselCarrousel border radius0
--cc-webplayer-radius-galleryGallery medias border radius0

Examples

You can insert CSS variables in your style files

index.css
:root {
--cc-webplayer-primary: 262 88% 58%;
--cc-webplayer-radius-ui: 0.8rem;
}

Or directly in your HTML

index.html
<style>
cc-webplayer {
--cc-webplayer-primary: 262 88% 58%;
--cc-webplayer-radius-ui: 0.8rem;
}
</style>