Neumorphic Search Bar Design with HTML and CSS

In this tutorial we will see how to make a Neumorphic Search Bar Design with HTML and CSS. Simple CSS is used for this purpose, HTML code and CSS code is given.

HTML Code

HTML Code is given below.

<div class="search-box">
    <p>Search for your solution</p>
    <div class="box">
        <input type="search" class="search">
        <span class="search-icon">🔍</span>
    </div>
</div>  

CSS Code

CSS Code is given below.

<style>
body
{
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Barlow Condensed',sans-serif;
    background-color: #B1A0EB;
}
.search-box
{
    width: 100%;
    max-width: 300px;
    background-color: #B1A0EB;
    padding: 5px 20px;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    transition: 0.1s;
}
.search-box:hover
{
    box-shadow: 2px 2px 5px 0px #9A8AD4;
    border-bottom: 3px solid #9A8AD4;
    border-right: 3px solid #9A8AD4;
    border-left: 1px solid #C8B8FC;
    border-top: 1px solid #C8B8FC;
}
.search-box p
{
    color: #555;
    margin: 5px 0px;
}
.box
{
    display: flex;
    margin: 10px 0px;
}
.search
{
    width: 80%;
    max-width: 300px;
    background-color: #B1A0EB;
    outline: none;
    border: 0px;
    padding: 15px 10px;
    border-radius: 8px;
    margin-right: 10px;
    color: #555;
    box-shadow: inset 0px 0px 10px #9A8AD4;
}
.search-icon
{
    width: 20%;
    max-width: 50px;
    padding: 10px 0px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 1px 1px 5px 0px #9A8AD4;
    border-bottom: 2px solid #9A8AD4;
    border-right: 2px solid #9A8AD4;
    border-left: 1px solid #C8B8FC;
    border-top: 1px solid #C8B8FC;
    box-sizing: border-box;
    transition: 0.1s;
}
</style>

Demo

Video Tutorial

Watch our video tutorial on Neumorphic Search Bar Design with HTML and CSS.

Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Simple Price Range Slider With HTML CSS and JavaScript Circle With Two Colors using CSS Card With Ribbon using HTML and CSS Simple Loading Screen using HTML and CSS Disable Textarea Resizable Property using CSS Button like Links using CSS Simple Dropdown Menu Using HTML and CSS Background Color Transition using CSS Highlight Required Input Fields using CSS Disable HTML Link using CSS Difference Between Descendant Selector and Child Selector How To Change Color and Size of Hr Tag Using CSS How To Center Align HTML Table Convert Checkbox To Toggle Button Using CSS Drawing Stars using HTML and CSS Button Bounce Effect using CSS Image as Text Background using CSS background-clip Property Vertically Rotate HTML Element using CSS Vertical Align Middle using CSS Text Over Image Hover Effect - Css Hover Simple CSS Button Hover Effect using Before Selector