Neumorphism is a trendy UI style nowadays. It is worth noting that neumorphism is not a replacement for flat design style, but an addition to app user interface design
Let's create a neumorphic form using few simple CSS steps
A thread 🧵
Neumorphic design is another UI design that has become popular these days.
Making neumorphic effect is actually pretty easy using only just CSS box-shadow
We'll be creating a neumorphic form in steps 🔽
STEP 1:
Place a light source(virtually) on screen. In this example I'm considering that my light source is placed top left corner of the screen
STEP 2:
Create a container div and set background color slightly darker than white. I picked #ecf0f3
Make sure that the color of body and container should be same
As we placed our light source on top-left corner, make sure left and top border of container should be brighter than right and bottom border.
This will make the element looks like it has the light source illuminating from the top left corner of the screen.
STEP 3:
Create a brand logo using same technique. Since brand going to protrude from the container, use same color i.e, #ecf0f3
Add bright color shadow at the top left side and dark color shadow at the bottom right side
STEP 4:
The input fields going to have a sunken effect. And to achieve this we will use inset box-shadow. As light is coming from top-left corner, hence right and bottom border will be bright in this case because input fields have sunken effect.
STEP 5:
Create a button preferably of same color as logo because this will give you a more fascinating look to your design
Add hover selector and apply box-shadow none when you mouse over it
That's it!
Neumorphic design is all based on box-shadow property.
You just need to remember two thingsDown pointing backhand index
- Protrude effect in outer element (normal box-shadow)
- Sunken effect in inner elements (Inset box-shadow)
You can create neumorphic design using any color scheme you just need to remember that shades should not differ much.
For example: check out this dark and light theme calculator
This is the end of this thread but not our creativity. Give a go to this awesome design and drop the link below ❤️
Are you planning to learn CSS for adding some cool styling in your website?
In this thread, I'm covering all the basics and proper plan you need to know in order to getting started with CSS.
🧵 👇🏻
We need to know the importance of CSS first. Why CSS?
Well I guess CSS is the only language that add some visuals in website. Without CSS, Without it, websites would still be plain text on white backgrounds.
Explore and create accessible color palettes using color wheel, in variety of color variations and contrast levels. It will tell you automatically if two colors are not accessible
Everything on a website is a box. Therefore it is quite important to understand the box model concept in web development but it is confusing. Let's see some hidden facts about it in this thread
🧵 👇🏻
When laying out a document, the browser's rendering engine represents each element as a rectangular box. You can visualize it by adding some solid in any element.
You can manipulate this box using the basic standards of CSS like color, border, background etc.
{ 02 / 17 }
Every box comprised of four parts
- content dimensions
- padding
- border
- margin
Although outline is not considered as the part of box model but we can talk little bit about it later on this thread.
Creating CSS arts is a good way to master CSS. Here are some resources and tips that will take your CSS skills to the next level 🚀
🧵👇🏻
Trust me, CSS art looks hard but they are not so tough they seem.
First things first, good color contrast is the number characterstic of a good website. Similarly color combinations makes your art good.
People with visual impairment preceive colors in different way. For example, here is how the dark red color is seen by people with monochromacy, dichromacy, and trichromacy
Hence picking up right color combinations is the most important part