Styling

Styling

Some styling can be performed in the designer by creating specific variables.

Part
Variable
Default

Button

Play/Pause Icon Color [1]

cc-audio-wavesurfer-icon

#333333

Button Size w x h [1]

cc-audio-wavesurfer-button-size

80px

Unplayed Waveform

Waveform Top Color [2]

cc-audio-wavesurfer-top

#656666

Waveform Separator Line Color [3]

cc-audio-wavesurfer-separator

#ffffff

Waveform Bottom Color [4]

cc-audio-wavesurfer-bottom

#B1B1B1

Played Waveform

Played Waveform Top Color [5]

cc-audio-wavesurfer-progress-top

#EE772F

Played Waveform Mid Color [6]

cc-audio-wavesurfer-progress-mid

#EB4926

Played Waveform Bottom Color [7]

cc-audio-wavesurfer-progress-bottom

#F6B094

Examples

Future

Styling;

  • Separator position

  • Numbers

    • Font family

    • Font style

    • Background

    • Border + corners

  • Icon overrides

https://codepen.io/memetican/pen/raOxgRv/1027467ab9b088408226a8f18d1b64b0

Technical Notes

  • Uses Wavesurfer library for rendering

Code Components ( React )

https://wavesurfer.xyz/examples/?react.js

Last updated