<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jason Contento on Medium]]></title>
        <description><![CDATA[Stories by Jason Contento on Medium]]></description>
        <link>https://medium.com/@jason_contento?source=rss-6f310a1f0bc0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZVoXHc1QojynjHl6.</url>
            <title>Stories by Jason Contento on Medium</title>
            <link>https://medium.com/@jason_contento?source=rss-6f310a1f0bc0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:11:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jason_contento/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Interpreting Designs for the Web]]></title>
            <link>https://medium.com/@jason_contento/interpreting-designs-for-the-web-b519210b4acd?source=rss-6f310a1f0bc0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b519210b4acd</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Jason Contento]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 02:12:34 GMT</pubDate>
            <atom:updated>2019-03-29T21:01:25.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*ipdLXlr1XeAw33V5WoOz0g.jpeg" /></figure><p>The website design is completed in Photoshop. The design teams hands off their carefully constructed layouts to the development (dev) team. The dev team builds the site, and in the process, brutalizes the layout. After countless emails back-and-forth between dev lead and design lead, after dozens of tweaks — budge this here, inch that there — the design now somewhat resembles the approved layout. The design team thinks, “Why is this so hard?” The dev team thinks, “Why are they so picky?” If this sounds familiar, read on.</p><h3>The Missing Link</h3><p>There is a phase between design hand-off and writing code that is often neglected. This is what I call the Layout Analysis. The purpose of a Layout Analysis is to understand the invisible architecture of a design and to understand the designer’s intentions. Once the devs understand the methodology of the designer, they can layout faster with more accuracy. Also, designers aren’t perfect. Due to this human factor, many elements of a design may not be perfectly positioned. With the help of a thorough Layout Analysis, the dev team can course correct on the fly with confidence. And when all is complete, the website will look and feel more sound and intact because the underlying architectural rules lock each element in a predictable place. The user will be more relaxed because their mental map of the site is void of those annoying, subtle variations that make detail oriented designers lose hair.</p><h3>The Layout Analysis</h3><p>The Layout Analysis determines the coarse structural elements of a web design: header, nav, breadcrumbs, sidebar, body columns, &amp; footer. It also defines the fine structural spacing, i.e. the gutters between sections, components and elements.</p><h3>Common Mistakes</h3><p>Developers like to imagine the web canvas as a cartesian plane. Because frankly, it technically is. The coordinates start at the top-left and expand to the bottom-right. This means that they are perceiving everything in the design as an object that grows from left to right, top to bottom. Imagine a developer analyzing the space between a header and paragraph copy, concluding,</p><blockquote>“Look, the header has 30 pixels of space between itself and the &lt;P&gt; tag below it. I’ll make the padding-bottom of all &lt;H1&gt; tags 30px. Done.”</blockquote><p>Then on the next page they will see a header with a sub-header and body text and conclude,</p><blockquote>“When a header is above a sub-header, there is less space. Let’s make a sub-header have a negative margin-top. No, that’s crazy — I’ll just create a specific class on the &lt;H1&gt; to reduce the padding-bottom. Done.”</blockquote><p>Now the code is more complex. The machines are winning.</p><p>Let’s visualize this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*_lDL5JuQuftNIKlavn9mvg.png" /><figcaption>How might we interpret this layout?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*POXvmKYs1699rWnA07tFHg.png" /><figcaption>A simplistic approach. (We see this a lot)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*0M_Rjap7IGMP1AlYCbGClw.png" /><figcaption>Nested containers with consistent padding… now we’re cookin’.</figcaption></figure><h3>The Space Around, not Between.</h3><p>Many developers see space (padding) as the space <em>between </em>elements. This is often an unhelpful interpretation. Padding is the space <em>around</em> elements. And each of those elements reside in an invisible container with its own padding — creating another level of separation. In this way, if we want more padding between elements, we create a section to contain them. This ensures we will have alignment throughout the document. In this process, you will get some seemingly artificial structural elements, but they work well to keeps things locked up nicely.</p><p>There are 4 fundamental levels of separation:</p><p>Table &gt; Row &gt; Column &gt; Element</p><p>You can think of this in bootstrap terms but replace “Table” with “Container” or in Brad Frost’s “Atomic” system — a bit esoteric but you get the idea. The point is to enforce and maintain these layers so that changes in the design, additions or removals of elements, have a clear method of application.</p><p>The proposed interpretation is structurally more complex, but I would argue that it is also metrically simpler which makes composition easier. The more consistent we can apply padding, the more lego-like our layouts will become.</p><h3>Incongruencies in the Design</h3><p>Sometimes the design does not adhere to the Layout Analysis. In this case, ignore the literal design and apply the metrics from the Layout Analysis. This is the dev teams proverbial, “It’s better to ask for forgiveness than for permission.” Design teams are crunched. They don’t have time to check every pixel. Developers need to find the patterns, apply the logic and build beautiful sites. Give the designer and yourself a break. No one is using padding-left 17px while padding-right 19px. They likely want 18px everywhere. It’s a perfectly human mistake that needs to be corrected. Which brings me to…</p><h3>Paddern Recognition</h3><p>It’s a play on words. Chill out. There are 2 primary patterns for padding: Arithmetic and Geometric. Arithmetic systems have a constant of change in the values. For example:</p><p>5px, 10px, 15px, 20xp (+5 each step)</p><p>Geometric systems have a constant ratio or function to determine the sequence, such as:</p><p>4px, 8px, 16px, 32px (×2 each step)</p><p>Why use a system? Our brains consume patterns. We are pattern loving creatures. Just embrace it. When running the Layout Analysis, let the values fall into a pattern. If the spacing measures 6px, 10px, 24px, 48px — make that 10 a 12. I can’t stress enough that the point of this process is to understand the design better so every aspect of the project will be better.</p><h3>In Conclusion</h3><p>When we combine the good intentions of the design with a systematic method of development, we can work more efficiently with less ambiguity about how to take the next step. Developers (or better yet, hybrid Design Developers) can create a Layout Analysis, verify it with the design team, and implement with a clear methodology. Less questions and more answers. A strong pattern can be the glue that makes a design stick together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b519210b4acd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>