Making neumorphic effect is actually pretty easy using only just CSS box-shadow.
We'll be creating a neumorphic form in steps.
We'll be creating a neumorphic form in steps.
Step 2:
Create a container div and set the background color slightly darker than white. I picked #ecf0f3. Make sure that the color of the body and container should be the same.
Create a container div and set the background color slightly darker than white. I picked #ecf0f3. Make sure that the color of the body and container should be the same.
STEP 3:
Create a brand logo using the same technique.
Since the brand will protrude from the container, use the same color, i.e., #ecf0f3.
Add bright color shadow at the top left side and dark color shadow at the bottom right side.
Create a brand logo using the same technique.
Since the brand will protrude from the container, use the same color, i.e., #ecf0f3.
Add bright color shadow at the top left side and dark color shadow at the bottom right side.
That's it!
Neumorphic design is all based on box-shadow property.
You just need to remember two things.
- Protrude effect in outer element (normal box-shadow)
- Sunken effect in inner elements (inset box-shadow)
Neumorphic design is all based on box-shadow property.
You just need to remember two things.
- Protrude effect in outer element (normal box-shadow)
- Sunken effect in inner elements (inset box-shadow)
With that being said, follow @Prathkum for more excellent content. ๐
Check out the full source code here.
codepen.io
codepen.io
Loading suggestions...