Skip to content
← All writing
Bricks BuilderAugust 22, 2026

Keeping DOM depth low when converting complex Figma layouts

Flattening nested auto-layout frames into clean semantic HTML and CSS Grid inside Bricks for better Core Web Vitals.

EO
Eris OktafianaWeb Developer & Designer
Updated August 22, 2026

Figma auto-layout encourages extra wrapper frames for spacing and alignment. Translating those frames one-to-one into WordPress creates unnecessary DOM depth.

Use CSS Grid and gap instead of nested wrappers

In Bricks, a single container with display: grid and clean gap tokens often replaces three or four nested divs, improving both Lighthouse scores and builder readability.

.eo-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

Every div you omit is one less element for the browser to lay out.

NEWSLETTER · NEW POSTS ONLY

Get new articles in your inbox.

Occasional notes on WordPress, Bricks Builder, and web performance. Sent only when a new post goes live.

No spam, no weekly filler. Unsubscribe anytime.