SonicFrame v1.3.2

CSS variables

Set any of these on an ancestor of your waves and players, and everything SonicFrame draws follows. A palette on a player sets them on the player itself.

The wave and its controls

Property Default Paints
--sonicframe-wave #c4cad4 Bars not yet played; the volume track.
--sonicframe-progress #2f6fdb Bars played; the plugins' tooltips; the volume level.
--sonicframe-knob the progress color The dot riding the position.
--sonicframe-button the progress color The play button and the volume icon.
--sonicframe-button-icon #fff The icon on a solid play button.
--sonicframe-on-progress #ffffff Text over the played color and on markers; the markers' and chapters' tooltips leave it for black or white with a11y.tooltip.readable.

The plugins

Property Default Paints
--sonicframe-marker #e5484d Markers.
--sonicframe-chapter #6b7280 Where chapters start, and the edges in their strip of titles.
--sonicframe-timeline #8a94a6 The timeline ruler.
--sonicframe-region rgba(47, 111, 219, 0.18) A region's band.
--sonicframe-dim rgba(0, 0, 0, 0.12) Dimmed silences.
--sonicframe-badge rgba(0, 0, 0, 0.08) A caption's badges.
--sonicframe-minimap-view the region color The minimap's box.
--sonicframe-minimap-edge the progress color The box's edges.

The player

Property Paints
--sonicframe-surface The player's background.
--sonicframe-text Its text, such as the time.
--sonicframe-muted Quieter text: labels, the time.
--sonicframe-border Its border and its buttons' outlines.

With the 'default' palette, the player sets none of them, so your page's values show.

What each palette color sets

A palette names colors by their role; the player turns each one into the properties of the places it paints.

Palette color Properties it sets
surface --sonicframe-surface
text --sonicframe-text
muted --sonicframe-muted, --sonicframe-timeline, --sonicframe-chapter
border --sonicframe-border
wave --sonicframe-wave
progress --sonicframe-progress, --sonicframe-knob
accent --sonicframe-button
onAccent --sonicframe-button-icon, --sonicframe-on-progress
marker --sonicframe-marker
region --sonicframe-region
dim --sonicframe-dim, --sonicframe-badge

paletteVariables(palette) gives the same list as pairs, for a page that sets them itself.