Component
3D Button Colored
Colored 3D buttons with gradients
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/3d-button/colored/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/3d-button/colored Tailwind/Components/Buttons/3d-button/colored <!-- 3D Pink Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-pink-500 to-pink-600 text-white font-bold rounded-lg shadow-[0_6px_0_#be185d] hover:from-pink-600 hover:to-pink-700 active:translate-y-[4px] active:shadow-[0_2px_0_#be185d] focus:outline-none focus:ring-2 focus:ring-pink-400 transition-all">
Pink 3D
</button>
<!-- 3D Purple Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-purple-500 to-purple-600 text-white font-bold rounded-lg shadow-[0_6px_0_#7c3aed] hover:from-purple-600 hover:to-purple-700 active:translate-y-[4px] active:shadow-[0_2px_0_#7c3aed] focus:outline-none focus:ring-2 focus:ring-purple-400 transition-all">
Purple 3D
</button>
<!-- 3D Orange Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-orange-400 to-orange-500 text-white font-bold rounded-lg shadow-[0_6px_0_#c2410c] hover:from-orange-500 hover:to-orange-600 active:translate-y-[4px] active:shadow-[0_2px_0_#c2410c] focus:outline-none focus:ring-2 focus:ring-orange-300 transition-all">
Orange 3D
</button> # 3D Button Colored
Colored 3D buttons with gradients and a pressable depth effect.
## Preview
Open `preview.html` for a standalone demonstration of this variant.
## Features
- 3D depth / press animation
- Gradient color treatments
- Visible focus states
- Native `<button>` element
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/3d-button/colored
```
Copy the markup from `code.html` into a Tailwind project. No JavaScript required for the core presentation.
## Customization
- Gradient stops and background colors
- Shadow / offset values that create the 3D effect
- Padding, radius, typography
- Focus ring utilities
## Accessibility
- Native `<button>`
- Focus-visible styles present in the markup
## Responsive Behavior
Fluid; works at all common viewport sizes.
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` — copy/paste snippet
- `preview.html` — standalone demo
- `metadata.json` — metadata
- `README.md` — this file 14 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/3d-button/colored I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/3d-button/colored/ Install: npx devsnips add Tailwind/Components/Buttons/3d-button/colored This is the 3D Button Colored — Colored 3D buttons with gradients 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/3d-button/colored