DevTools Logo
All posts

Modern CSS Shadows and Rounded Corners: Box-Shadow and Border-Radius Guide

August 15, 2026 · DevTools

css
ui-design
shadows
borders

Modern CSS Shadows and Rounded Corners: Box-Shadow and Border-Radius Guide

Elevation shadows and subtle corner radii are the foundation of modern interface depth. Single-layer dark shadows often look harsh; layered multi-stop shadows simulate realistic ambient lighting.

Build these styles visually with:

Layered Elevation Shadows

Rather than a single box-shadow: 0 10px 20px rgba(0,0,0,0.4), modern design systems layer multiple low-opacity shadows:

/* Smooth layered elevation */
.elevation-high {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

Advanced 8-Value Border Radius

CSS border-radius supports separate horizontal and vertical radii separated by a slash (/):

/* 8-value organic corner curve */
.organic-shape {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

Try generating custom curves with the Border Radius Generator.

Tools mentioned in this post