Component

Neumorphism Input

Soft UI neumorphic input fields with subtle shadows and depth

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/input/neumorphism/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Input/neumorphism
registry path: Tailwind/Components/Input/neumorphism

Source

Implementation

code.html
<!-- Neumorphism - Light -->
<div class="p-8 bg-gray-200 rounded-2xl">
  <div class="relative">
    <input type="text" placeholder="Username" class="w-full px-5 py-4 bg-gray-200 rounded-xl text-gray-700 placeholder-gray-400 shadow-inner focus:outline-none focus:ring-2 focus:ring-blue-400/50 transition-all" />
  </div>
</div>

<!-- Neumorphism - Raised -->
<div class="p-8 bg-gray-200 rounded-2xl">
  <div class="relative mt-4">
    <input type="email" placeholder="Email address" class="w-full px-5 py-4 bg-gray-200 rounded-xl text-gray-700 placeholder-gray-400 shadow-[inset_2px_2px_5px_rgba(0,0,0,0.1),inset_-2px_-2px_5px_rgba(255,255,255,0.8)] focus:outline-none focus:ring-2 focus:ring-purple-400/50 transition-all" />
  </div>
</div>

<!-- Neumorphism - Convex -->
<div class="p-8 bg-gray-200 rounded-2xl">
  <div class="relative mt-4">
    <input type="password" placeholder="Password" class="w-full px-5 py-4 bg-gray-200 rounded-xl text-gray-700 placeholder-gray-400 shadow-[5px_5px_10px_rgba(0,0,0,0.1),-5px_-5px_10px_rgba(255,255,255,0.8)] focus:outline-none focus:ring-2 focus:ring-green-400/50 transition-all" />
  </div>
</div>

<!-- Neumorphism - Dark -->
<div class="p-8 mt-4 bg-slate-800 rounded-2xl">
  <div class="relative">
    <input type="text" placeholder="Search..." class="w-full px-5 py-4 bg-slate-700 rounded-xl text-gray-200 placeholder-gray-500 shadow-[inset_2px_2px_5px_rgba(0,0,0,0.3),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] focus:outline-none focus:ring-2 focus:ring-blue-400/50 transition-all" />
  </div>
</div>
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/input/neumorphism
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/input/neumorphism/

Install: npx devsnips add
Tailwind/Components/Input/neumorphism

This is the Neumorphism Input — Soft UI neumorphic input fields with subtle shadows and depth

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/input/neumorphism