Component

Music Card

Vibrant music player card with gradient background, album art, progress bar, and playback controls.

  • Component
  • Tailwind
  • HTML
  • MIT

What it does

Capabilities

  • Gradient background
  • Album art
  • Progress bar
  • Playback controls
  • Animated bars

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/cards/music-card/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Cards/music-card
registry path: Tailwind/Components/Cards/music-card

Source

Implementation

code.html
<div class="relative bg-gradient-to-br from-purple-600 via-pink-500 to-orange-400 rounded-2xl p-6 text-white overflow-hidden">
  <div class="absolute inset-0 bg-black/20"></div>
  <div class="absolute top-0 right-0 w-40 h-40 bg-white/10 rounded-full blur-2xl translate-x-1/2 -translate-y-1/2"></div>
  <div class="absolute bottom-0 left-0 w-32 h-32 bg-black/20 rounded-full blur-2xl -translate-x-1/2 translate-y-1/2"></div>
  
  <div class="relative">
    <div class="flex items-center justify-between mb-6">
      <span class="text-xs font-medium uppercase tracking-wider opacity-80">Now Playing</span>
      <div class="flex items-center gap-2">
        <div class="flex gap-0.5">
          <div class="w-1 h-3 bg-white rounded-full animate-pulse"></div>
          <div class="w-1 h-4 bg-white/60 rounded-full animate-pulse" style="animation-delay: 0.1s"></div>
          <div class="w-1 h-2 bg-white/40 rounded-full animate-pulse" style="animation-delay: 0.2s"></div>
        </div>
      </div>
    </div>
    
    <div class="flex items-center gap-5 mb-6">
      <div class="w-24 h-24 rounded-xl bg-gradient-to-br from-white/20 to-white/10 backdrop-blur-sm flex items-center justify-center shadow-2xl">
        <svg class="w-12 h-12" fill="currentColor" viewBox="0 0 24 24">
          <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/>
        </svg>
      </div>
      <div class="flex-1">
        <h3 class="text-xl font-bold mb-1">Blinding Lights</h3>
        <p class="text-white/80 text-sm">The Weeknd</p>
        <p class="text-white/60 text-xs mt-1">After Hours • 3:20</p>
      </div>
    </div>
    
    <div class="mb-5">
      <div class="flex justify-between text-xs text-white/60 mb-2">
        <span>1:24</span>
        <span>3:20</span>
      </div>
      <div class="h-1 bg-white/20 rounded-full overflow-hidden">
        <div class="h-full w-2/5 bg-white rounded-full"></div>
      </div>
    </div>
    
    <div class="flex items-center justify-center gap-6">
      <button class="p-2 hover:bg-white/10 rounded-full transition-colors">
        <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
          <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
        </svg>
      </button>
      <button class="p-4 bg-white text-purple-600 rounded-full hover:scale-105 transition-transform shadow-lg">
        <svg class="w-8 h-8" fill="currentColor" viewBox="0 0 24 24">
          <path d="M8 5v14l11-7z"/>
        </svg>
      </button>
      <button class="p-2 hover:bg-white/10 rounded-full transition-colors">
        <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
          <path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/>
        </svg>
      </button>
    </div>
  </div>
</div>
59 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/cards/music-card
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/cards/music-card/

Install: npx devsnips add
Tailwind/Components/Cards/music-card

This is the Music Card — Vibrant music player card with gradient background, album art, progress bar, and playback controls.

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

Resource URI
devsnips://components/cards/music-card