Component
Gradient Shadow Button
Gradient buttons with colored shadow effects that match the gradient
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/gradient-button/shadow/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/gradient-button/shadow Tailwind/Components/Buttons/gradient-button/shadow <!-- 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> # Gradient Button Shadow
Gradient button with colored shadow emphasis.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Gradient fill + colored shadow
- Focus-visible states
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/gradient-button/shadow
```
Copy from `code.html`.
## Customization
- Gradient stops and shadow color utilities
## Accessibility
- Native `<button>`
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 27 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/buttons/gradient-button/shadow I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/gradient-button/shadow/ Install: npx devsnips add Tailwind/Components/Buttons/gradient-button/shadow This is the Gradient Shadow Button — Gradient buttons with colored shadow effects that match the gradient 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/buttons/gradient-button/shadow