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.dev/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

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/input/neumorphism

Continue browsing

View all