Component
Neumorphism Button
Soft UI buttons with neumorphism (soft UI) shadow effects
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/buttons/neumorphism-button/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/neumorphism-button Tailwind/Components/Buttons/neumorphism-button <!-- Neumorphism Bordered Button Styles -->
<style>
.neu-bordered {
background: linear-gradient(145deg, #f0f4f8, #d1d9e6);
box-shadow: 6px 6px 12px #b8bec5, -6px -6px 12px #ffffff;
border: 1px solid rgba(255, 255, 255, 0.5);
}
.neu-bordered:hover {
box-shadow: 3px 3px 6px #b8bec5, -3px -3px 6px #ffffff;
}
</style>
<!-- Neumorphism Bordered Button - Blue -->
<button class="px-8 py-3 neu-bordered text-blue-600 font-semibold rounded-xl focus:outline-none focus:ring-2 focus:ring-blue-400 transition-all">
Bordered Blue
</button>
<!-- Neumorphism Bordered Button - Purple -->
<button class="px-8 py-3 neu-bordered text-purple-600 font-semibold rounded-xl focus:outline-none focus:ring-2 focus:ring-purple-400 transition-all">
Bordered Purple
</button>
<!-- Neumorphism Bordered Button - Pill -->
<button class="px-8 py-3 neu-bordered text-gray-600 font-semibold rounded-full focus:outline-none focus:ring-2 focus:ring-gray-400 transition-all">
Bordered Pill
</button> # Neumorphism Button
Soft UI buttons with neumorphism (soft UI) shadow effects.
## Variants
| Variant | Description |
|---------|-------------|
| [Soft](./soft/) | Convex neumorphism with outer shadows |
| [Bordered](./bordered/) | Bordered neumorphism with gradient backgrounds |
## Quick Start
```html
<style>
.neu-button {
background: #e0e5ec;
box-shadow: 8px 8px 16px #b8bec5, -8px -8px 16px #ffffff;
}
.neu-button:hover {
box-shadow: 4px 4px 8px #b8bec5, -4px -4px 8px #ffffff;
}
</style>
<button class="px-8 py-3 neu-button text-gray-600 font-semibold rounded-xl">
Neumorphism
</button>
```
## Browser Support
Works in all modern browsers.
## Related
- [Glass Button](../glass-button/) - Glass morphism style
- [Basic Button](../basic-button/) - Core button styles 26 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/neumorphism-button I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/buttons/neumorphism-button/ Install: npx devsnips add Tailwind/Components/Buttons/neumorphism-button This is the Neumorphism Button — Soft UI buttons with neumorphism (soft UI) shadow effects 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/neumorphism-button