Component
Neumorphism Bordered Button
Bordered neumorphism buttons with gradient backgrounds
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/buttons/neumorphism-button/bordered/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/neumorphism-button/bordered Tailwind/Components/Buttons/neumorphism-button/bordered <!-- 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 Bordered
Neumorphic button with a bordered soft-UI treatment.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Neumorphism / soft-UI shadows
- Bordered variant
- Focus-visible states
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/neumorphism-button/bordered
```
Copy from `code.html`.
## Customization
- Shadow values, surface color, border
## Accessibility
- Native `<button>`
- Ensure contrast remains acceptable on the soft surface
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 26 lines UTF-8 · LF · Spaces: 2
Continue browsing