FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Neumorphism Is Just Two Box Shadows and a Flat Background
How-ToWeb Development

Neumorphism Is Just Two Box Shadows and a Flat Background

via Dev.to TutorialMichael Lip3h ago

The neumorphic design trend that swept Dribbble in 2020 looks complex but reduces to a simple CSS pattern. Two box shadows on a colored background that matches the element create the illusion of extruded or inset surfaces. The CSS pattern .neumorphic { background : #e0e0e0 ; border-radius : 20px ; box-shadow : 8px 8px 16px #bebebe , -8px -8px 16px #ffffff ; } That is the entire technique. A light shadow on one side (simulating a light source) and a dark shadow on the opposite side (simulating a shadow). The background color must match the parent container's background. Why the background match matters Neumorphism only works when the element's background is the same color as its container. The illusion is that the element is extruded from the surface, like pushing clay up from a flat sheet. If the element has a different background color, the extrusion illusion breaks and it just looks like a card with two shadows. body { background : #e0e0e0 ; } .neumorphic-raised { background : #e0e0e

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

Tutorials Are Lying to You Here’s What Actually Works ?
How-To

Tutorials Are Lying to You Here’s What Actually Works ?

Medium Programming • 49m ago

Flutter Mistakes That Make Apps Slow ⚡
How-To

Flutter Mistakes That Make Apps Slow ⚡

Medium Programming • 1h ago

Welcome Thread - v370
How-To

Welcome Thread - v370

Dev.to • 1h ago

How to Calculate Your Final Grade When the Syllabus Uses Weighted Categories
How-To

How to Calculate Your Final Grade When the Syllabus Uses Weighted Categories

Dev.to Beginners • 1h ago

How Word Scramble Solvers Use the Same Algorithm as Spell Checkers
How-To

How Word Scramble Solvers Use the Same Algorithm as Spell Checkers

Dev.to Beginners • 1h ago

Discover More Articles