← back to examples list

CPU-Audio Style example : Styling background

Perhaps you wish to put a non-solid background to the player ? Simply define background variables in any alpha-transparency accepted format.

Do not forget to redefine also --cpu-playing-color and --cpu-playing-background of the playing interface.

Redefining --cpu-color, --cpu-focus-color, and --cpu-focus-background may be really useful, for resolving accessibility issues you may encounter, as I wrote about some actual CSS limitations (in French).

You can also use a background image. But you should also provide a solid color fallback, in case of slow/failed loading.