Themes

Picobel comes with a few pre-made themes (for times when you don't want to style an entire audio player from scratch). To use a theme, make sure you've downloaded the correct stylesheet from the Picobel CSS library and then reference the chosen theme name as an option when you initialize Picobel in your JS.

<!-- Load the theme's stylesheet -->
<link
    rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/picobel@3/build/picobel.default.css"
>

<!-- Initialise Picobel with a theme -->
<script>
    picobel( { theme: "default" } );
</script>

You can find the CSS files for each theme in the /packages/picobel/src/css directory of the GitHub repo, along with minified production-ready versions here. The filename convention is picobel.THEME_NAME.css.

Themes currently supported by Picobel v3:

You can see them all in action in the Picobel.js CodePen Collection, and see screenshots of each featured theme on this page:

Default

Default theme

View this theme on CodePen

The default theme. The highlight colour can be altered by overriding the --highlight CSS custom property:

.picobel {
    --highlight: "red";
}

Skeleton

Skeleton theme

View this theme on CodePen

Use this as a jumping-off point for your own styles.

BBC

BBC iPlayer theme

View this theme on CodePen

A theme in the style of BBC iPlayer ~2013.

iTunes

iTunes theme

View this theme on CodePen

A theme in the style of the iTunes interface ~2013.

Soundcloud

Soundcloud theme Soundcloud-esque theme. View this theme on CodePen

Pitchfork

Pitchfork theme Pitchfork-esque theme. View this theme on CodePen

Eaten by Monsters

Eaten by Monsters theme Eaten by Monsters theme. View this theme on CodePen