Component

Gradient Shadow Button

Gradient buttons with colored shadow effects that match the gradient

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/buttons/gradient-button/shadow/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Buttons/gradient-button/shadow
registry path: Tailwind/Components/Buttons/gradient-button/shadow

Source

Implementation

code.html
<!-- Gradient Shadow Button - Blue -->
<button class="px-6 py-3 bg-gradient-to-r from-blue-500 to-purple-500 text-white font-medium rounded-lg shadow-lg shadow-blue-500/30 hover:shadow-xl hover:shadow-blue-500/40 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2 transition-shadow">
  Blue Shadow
</button>

<!-- Gradient Shadow Button - Pink -->
<button class="px-6 py-3 bg-gradient-to-r from-pink-500 to-rose-500 text-white font-medium rounded-lg shadow-lg shadow-pink-500/30 hover:shadow-xl hover:shadow-pink-500/40 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 transition-shadow">
  Pink Shadow
</button>

<!-- Gradient Shadow Button - Amber -->
<button class="px-6 py-3 bg-gradient-to-r from-amber-400 to-orange-500 text-white font-medium rounded-lg shadow-lg shadow-amber-500/30 hover:shadow-xl hover:shadow-amber-500/40 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 transition-shadow">
  Amber Shadow
</button>

<!-- Sizes -->
<button class="px-4 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white text-sm font-medium rounded-lg shadow-lg shadow-purple-500/30 hover:shadow-xl hover:shadow-purple-500/40 focus:outline-none focus:ring-2 focus:ring-purple-500 transition-shadow">
  Small
</button>

<button class="px-6 py-3 bg-gradient-to-r from-blue-500 to-purple-500 text-white text-base font-medium rounded-lg shadow-lg shadow-purple-500/30 hover:shadow-xl hover:shadow-purple-500/40 focus:outline-none focus:ring-2 focus:ring-purple-500 transition-shadow">
  Default
</button>

<button class="px-8 py-4 bg-gradient-to-r from-blue-500 to-purple-500 text-white text-lg font-medium rounded-lg shadow-lg shadow-purple-500/30 hover:shadow-xl hover:shadow-purple-500/40 focus:outline-none focus:ring-2 focus:ring-purple-500 transition-shadow">
  Large
</button>
27 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/buttons/gradient-button/shadow

Continue browsing

View all