How to Create Neumorphic-form With
HTML & CSS
Video Tutorial of Neumorphic-form
Neumorphic-form [Source Codes]
To Create a Neumorphic-form Lamp with HTML and CSS, follow the given steps line by line:
Create a folder. You can name this folder whatever you want, and inside this folder, create the mentioned files.
Create an index.html file. The file name must be index and its extension .html
Create a style.css file. The file name must be style and its extension .css
Once you create these files, paste the given codes into the specified files. If you don’t want to do these then scroll down and download the source code by clicking download button.
First, paste the following codes into your index.html file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Neumorphic form in Html CSS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>sign up form</h1>
<div class="inputs">
<input type="email" placeholder="Enter Your Email" required>
<input type="password" placeholder="Enter Your password" required>
<input type="password" placeholder="Confirm Password" required>
<button type="submit">login</button>
</div>
</div>
</body>
</html>
Now paste the following codes into your style.css file
body {
margin: 0;
width: 100vw;
height: 100vh;
background: #ecf0f3;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
place-items: center;
overflow: hidden;
font-family: 'Open Sans', 'Open Sans Regular', sans-serif;
}
.container {
position: relative;
width: 450px;
height: 500px;
border-radius: 20px;
padding: 40px;
box-sizing: border-box;
background: #ecf0f3;
box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px #fff;
}
.inputs {
text-align: left;
margin-top: 30px;
}
input, button {
display: block;
width: 100%;
padding: 0;
border: none;
outline: none;
box-sizing: border-box;
}
input::placeholder {
color: #606060;
}
input {
background: #ecf0f3;
padding: 30px;
padding-left: 20px;
height: 55px;
margin-bottom: 35px;
font-size: 18px;
border-radius: 50px;
box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px #fff;
}
input:hover{
background: #1B91D6;
color: azure;
box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px #fff;
}
button {
color: white;
margin-top: 20px;
background: #1EA2EE;
height: 40px;
border-radius: 20px;
cursor: pointer;
font-size: 20px;
font-weight: 600;
box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px #fff;
transition: 0.3s;
}
button:hover {
background: #ecf0f3;
color: #606060;
box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px #fff;
}
If you face any difficulties while creating your Neumorphic-form or your code is not working as expected, you can download the source code files by clicking on the download button.