About this set
A dark now-playing card for a music or podcast player: gradient cover art with a Now playing tag, the track title, the artist and album, a seek bar with elapsed and total time, and previous, pause and next controls with a large pink pause button in the middle. The seek bar is a real input type=”range”, coloured with accent-color in the plain and Tailwind versions, so it keeps native keyboard control with the arrow keys, Home and End, and native touch dragging. A few lines of script update the elapsed time and the aria-valuetext as it moves, so a screen reader announces 1:34 of 3:48 rather than a raw number of seconds. The control buttons are 36px targets with labels. The card does not play audio by itself; wire the buttons and the range to an audio element. The Bootstrap version uses the stock .form-range, restyled so its track fills up to the thumb through a –pct variable the same script sets, plus .badge and .btn; the Tailwind version uses accent- utilities on the native range.
What’s included
- Seek bar is a native range input with keyboard support
- Elapsed time and aria-valuetext kept in sync by script
- Labelled previous, pause and next buttons
- Bootstrap .form-range with a filled track
- Cover art drawn with CSS gradients
Accessibility
The range has a label, Seek, and an aria-valuetext such as 1:34 of 3:48 that updates as it moves; the visible times are aria-hidden to avoid repeating it. The icon buttons are labelled Previous track, Pause and Next track, show a white focus outline, and the range shows a pink outline on keyboard focus. The button colour transition is removed under reduced motion.
Customise it
--accent sets the range and play button colour (a class value in Tailwind). Set max to the track length in seconds and value to the position; the script formats both. Replace the .art gradient with an img alt="" for real cover art.




















