Neumorphism is a trendy UI style nowadays. So let's create a neumorphic form using few simple steps

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👇🏼

2.
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

3.
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

CONTINUE...

4.
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.

5.
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

6.
STEP 4:

The input fields going to have a sunken effect. And to achieve this we will use inset box-shadow

CONTINUE...

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

8.
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

9.
Wasn't it easy?

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)

10.
Source code: @CodePen

11.
https://t.co/HEiFRU3abH

More from Pratham 👨‍💻🚀

5 great code snippet websites for every web developer and designer

🧵👇🏻


1️⃣ 30 Seconds of Code

- Short code snippets for all your development needs

🔗
https://t.co/91L4bAxkgF


2️⃣ Free Frontend

- Free hand-picked HTML, CSS and JavaScript (jQuery, React, Vue) code examples, tutorials and articles

🔗 https://t.co/2sIAm73EdZ


3️⃣ Little Snippets

- A free collection of HTML and CSS code snippets

🔗 https://t.co/qxAyA2wA6U


4️⃣ CSS Deck

- Collection of Awesome CSS and JS Creations to help out frontend developers and designers.

🔗 https://t.co/LcZYnipvCy
JavaScript is powerful.

But sometimes, you can do great things using CSS.

A long thread of CSS tips and tricks:

1. Smooth


2. Change marker styling


3. Add styling to video


4. Change input caret

More from Design

I've been thinking about the "reframing of powerlessness as righteousness" with regards to design education, and I want to jot down some loose thoughts...


Around 2012, while on summer break from what I felt was a lackluster school year, I was kind of at a breaking point. A prominent designer was peddling this self-help program, a $6000 weeklong workshop that centered around dinner with him and his influential friends.

His response to a fan who was deeply inspired by him and wanted to be a better designer, who asked "what if I can't afford the $6000?" was "You simply don't *want* to afford it." It's not a priority for you. I remember seeing it on Facebook and getting up from my chair.

It was gross, and it felt like the latest incident in what seemed like a long generational road of manipulating impressionable young people into thinking that the only thing stopping them from having the lives of these visible figures was passion

It felt wrong. Absolutely wrong. I thought about my best friend from high school. Someone just as—if not more—talented than me in art. Both of us dreamed of going to the same art school. Only one of us did. His familial socioeconomics as his undocumented status made it impossible

You May Also Like

The UN just voted to condemn Israel 9 times, and the rest of the world 0.

View the resolutions and voting results here:

The resolution titled "The occupied Syrian Golan," which condemns Israel for "repressive measures" against Syrian citizens in the Golan Heights, was adopted by a vote of 151 - 2 - 14.

Israel and the U.S. voted 'No'
https://t.co/HoO7oz0dwr


The resolution titled "Israeli practices affecting the human rights of the Palestinian people..." was adopted by a vote of 153 - 6 - 9.

Australia, Canada, Israel, Marshall Islands, Micronesia, and the U.S. voted 'No' https://t.co/1Ntpi7Vqab


The resolution titled "Israeli settlements in the Occupied Palestinian Territory, including East Jerusalem, and the occupied Syrian Golan" was adopted by a vote of 153 – 5 – 10.

Canada, Israel, Marshall Islands, Micronesia, and the U.S. voted 'No'
https://t.co/REumYgyRuF


The resolution titled "Applicability of the Geneva Convention... to the
Occupied Palestinian Territory..." was adopted by a vote of 154 - 5 - 8.

Canada, Israel, Marshall Islands, Micronesia, and the U.S. voted 'No'
https://t.co/xDAeS9K1kW