• AI Search
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise Here
  • Contact Us
TechBooky
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
TechBooky
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Home General

Top Ten Front-End Design Rules For Developers

by
March 28, 2016
in General, Research/How to do it
Share on FacebookShare on Twitter

As front-end developers, our job is, essentially, to turn designs into reality via code. Understanding, and being competent in, design is an important component of that. Unfortunately, truly understanding front-end design is easier said than done. Coding and aesthetic design require some pretty different skill sets. Because of that, some front-end devs arenโ€™t as proficient in the design aspect as they should be, and as a result, their work suffers.

My goal is to give you some easy-to-follow rules and concepts, from oneย front-end devย to another, that will help you go from start to finish of a project without messing up what your designers worked so hard on (or possibly even allowing you to design your own projects with decent results).

Of course, these rules wonโ€™t take you from bad to magnificent in the time it takes to read one article, but if you apply them to your work, they should make a big difference.

Do Stuff In A Graphics Program

Itโ€™s truly rare that you complete a project, and go from start to finish while maintaining every single aesthetic mutation in the design files. And, unfortunately, designers arenโ€™t always around to run to for a quick fix.

Therefore, there always comes a point in any front-end job where you end up having to make some aesthetic-related tweaks. Whether itโ€™s making the checkmark that shows when you check the checkbox, or making a page layout that the PSD missed, front-enders often end up handling these seemingly minor tasks. Naturally, in a perfect world this wouldnโ€™t be the case, but I have yet to find a perfect world, hence we need to be flexible.

A good front-end developer has to use professional graphics tools. Accept no substitute.

A good front-end developer has to use professional graphics tools. Accept no substitute.
ย 

For these situations, you should always use a graphics program for mockups. I donโ€™t care which tool you choose: Photoshop, Illustrator, Fireworks,ย GIMP, whatever. Just donโ€™t just attempt to design from your code. Spend a minute launching a real graphics program and figuring out how it should look, then go to the code and make it happen. You may not be an expert designer, but youโ€™ll still end up with better results.

Match the Design, Donโ€™t Try To Beat It

Your job is not to impress with how unique your checkmark is; your job is to match it to the rest of the design.

Those without a lot of design experience can easily be tempted to leave their mark on the project with seemingly minor details. Please leave that to the designers.

Developers have to match the original front-end design as closely as possible.

Developers have to match the original front-end design as closely as possible.
ย 

Instead of asking โ€œDoes my checkmark look amazing?โ€ you should be asking, โ€œHow well does my checkmark match the design?โ€

Your focus should always be on working with the design, not on trying to outdo it.

Typography Makes All the Difference

Youโ€™d be surprised to know how much of the end look of a design is influenced by typography. Youโ€™d be just as surprised to learn how much time designers spend on it. This is not a โ€œpick-it-and-goโ€ endeavor, some serious time and effort goes into it.

If you end up in a situation where you actually have to choose typography, you should spend a decent amount of time doing so. Go online and research goodย font pairings. Spend a few hours trying those pairings and making sure you end up with the best typography for the project.

Is this font right for your project? When in doubt, consult a designer.

Is this font right for your project? When in doubt, consult a designer.
ย 

If youโ€™re working with a design, then make sure you follow the designerโ€™s typography choices. This doesnโ€™t just mean choosing the font, either. Pay attention to the line spacing, letter spacing, and so on. Donโ€™t overlook how important it is to match the typography of the design.

Also, make sure you use the right fonts in the correct spot. If the designer uses Georgia for headers only and Open Sans for body, then you shouldnโ€™t be using Georgia for body and Open Sans for headers. Typography can make or break aesthetics easily. Spend enough time making sure you are matching your designerโ€™s typography. It will be time well spent.

Front-end Design Doesnโ€™t Tolerate Tunnel Vision

Youโ€™ll probably be making small parts of the overall design.

Tunnel vision is a common pitfall for front-end developers. Donโ€™t focus on a single detail, always look at the big picture.

Tunnel vision is a common pitfall for front-end developers. Donโ€™t focus on a single detail, always look at the big picture.
ย 

An example Iโ€™ve been going with is making the checkmark for a design that includes custom checkboxes, without showing them checked. Itโ€™s important to remember that the parts you are making are small parts of an overall design. Make your checks as important as a checkmark on a page should look, no more, no less. Donโ€™t get tunnel vision about your one little part and make it something it shouldnโ€™t be.

In fact, a good technique for doing this is to take a screenshot of the program so far, or of the design files, and design within it, in the context in which it will be used. That way, you really see how it affects other design elements on the page, and whether it fits its role properly.

Relationships And Hierarchy

Pay special attention to how the design works withย hierarchy. How close are the titles to the body of text? How far are they from the text above them? How does the designer seem to be indicating which elements/titles/text bodies are related and which arenโ€™t? Theyโ€™ll commonly do these things by boxing related content together, using varying white space to indicate relationships, using similar or contrasting colors to indicate related/unrelated content, and so on.

A good front-end developer will respect design relationships and hierarchy. A great developer will understand them.

A good front-end developer will respect design relationships and hierarchy. A great developer will understand them.
ย 

Itโ€™s your job to make sure that you recognize the ways in which the design accomplishes relationships and hierarchy and to make sure those concepts are reflected in the end product (including for content that was not specifically designed, and/or dynamic content). This is another area (like typography) where it pays to take extra time to make sure youโ€™re doing a good job.

Be Picky About Whitespace And Alignment

This is a great tip for improving your designs and/or better implementing the designs of others: If the design seems to be using spacings of 20 units, 40 units, etc., then make sure every spacing is a multiple of 20 units.

This is a really drop-dead simple way for someone with no eye for aesthetics to make a significant improvement quickly. Make sure your elements are aligned down to the pixel, and that the spacing around every edge of every element is as uniform as possible. Where you canโ€™t do that (such as places where you need extra space to indicate hierarchy), make them exact multiples of the spacing youโ€™re using elsewhere, for example two times your default to create some separation, three times to create more, and so on.

Do your best to understand how the designer used whitespace and follow those concepts in your front-end build.

Do your best to understand how the designer used whitespace and follow those concepts in your front-end build.
ย 

A lot of devs achieve this for specific content in the design files, but when it comes to adding/editing content, or implementing dynamic content, the spacing can go all over the place because they didnโ€™t truly understand what they were implementing.

Do your best to understand how the designer used whitespace and follow those concepts in your build. And yes, spend time on this. Once you think your work is done, go back and measure the spacing to ensure you haveย aligned and uniformly spacedย everything as much as possible, then try out the code with lots of varying content to make sureย itโ€™s flexible.

Like what you’re reading?
Get the latest updates first.
ย 
ย 
ย 
No spam. Just great engineering and design posts.
ย 

If You Donโ€™t Know What Youโ€™re Doing, Do Less

Iโ€™m not one of those people that thinks every project should use minimalist design, but if youโ€™re not confident in your design chops and you need to add something, then less is more.

Less is more. If your designer did a good job to begin with, you should refrain from injecting your own design ideas.

Less is more. If your designer did a good job to begin with, you should refrain from injecting your own design ideas.
ย 

The designer took care of the main stuff; you only need to do minor fillers. If youโ€™re not very good at design, then a good bet is to do as minimal amount as you can to make that element work. That way, youโ€™re injecting less of your own design into the designerโ€™s work, and affecting it as little as possible.

Let the designerโ€™s work take center stage and let your work take the back seat.

Time Makes Fools Of Us All

Iโ€™ll tell you a secret about designers: 90 percent (or more) of what they actually put down on paper, or a Photoshop canvas, isnโ€™t that great.

They discard far more than you ever see. It often takes many revisions and fiddling with a design to get it to the point where theyโ€™d even let the guy in the next cubicle see their work, never mind the actual client. You usually donโ€™t go from a blank canvas to good design in one step; thereโ€™s a bunch iterations in between. People rarely make good work until they understand that and allow for it in their process.

If you think the design can be improved upon, consult your designer. Itโ€™s possible they already tried a similar approach and decided against it.

If you think the design can be improved upon, consult your designer. Itโ€™s possible they already tried a similar approach and decided against it.
ย 

So how do you implement this? One important method is taking time between versions. Work until it looks like something you like then put it away. Give it a few hours (leaving it overnight is even better), then open it up again and take a look. Youโ€™ll be amazed at how different it looks with fresh eyes. Youโ€™ll quickly pick out areas for improvement. Theyโ€™ll be so clear youโ€™ll wonder how you possibly missed them in the first place.

In fact, one of the better designers Iโ€™ve known takes this idea a lot further. He would start by making three different designs. Then, heโ€™d wait at least 24 hours, look at them again and throw them all out and start from scratch on a fourth. Next, heโ€™d allow a day between each iteration as it got better and better. Only when he opened it up one morning, and was totally happy, or at least, as close as a designer ever gets to totally happy, would he send it to the client. This was the process he used for every design he made, and it served him very well.

I donโ€™t expect you to take itย thatย far, but it does highlight how helpful time without โ€œeyes on the designโ€ can be. Itโ€™s an integral part of the design process and can make improvements in leaps and bounds.

Pixels Matter

You should do everything in your power to match the original design in your finished program, down to the last pixel.

Front-end developers should try to match the original design down to the last pixel.

Front-end developers should try to match the original design down to the last pixel.
ย 

In some areas you canโ€™t be perfect. For example, your control over letter-spacing might not be quite as precise as that of the designerโ€™s, and a CSS shadow might not exactly match a Photoshop one, but you should still attempt to get as close as possible. For many aspects of the design, you really can get pixel-perfect precision. Doing so can make a big difference in the end result. A pixel off here and there doesnโ€™t seem like much, but it adds up and affects the overall aesthetic much more than youโ€™d think. So keep an eye on it.

There are a number of [tools] that help you compare original designs to end results, or you can just take screenshots and paste them into the design file to compare each element as closely as possible. Just lay the screenshot over the design and make it semi-transparent so that you can see the differences. Then you know how much adjustment you have to make to get it spot on.

Get Feedback

Itโ€™s hard to gain an โ€œeye for design.โ€ Itโ€™s even harder to do it on your own. You should seek theย input of othersto really see how you can make improvements.

I am not suggesting you grab your neighbor and ask for advice, I mean you should consult real designers and let them critique your work and offer suggestions.

Let designers critique your work. Put their criticism to good use and donโ€™t antagonize them.

Let designers critique your work. Put their criticism to good use and donโ€™t antagonize them.
ย 

It takes some bravery to do so, but in the end it is one of the most powerful things you can do to improve the project in the short-term, and to improve your skill level in the long run.

Even if all you have to fine tune is a simple checkmark, there are plenty of people willing to help you. Whether itโ€™s a designer friend, or an online forum, seek out qualified people and get their feedback.

Build a long-lasting, productive relationship with your designers. Itโ€™s vital for useful feedback, quality, and execution.

Build a long-lasting, productive relationship with your designers. Itโ€™s vital for useful feedback, quality, and execution.
ย 

It may sound time consuming, and may cause friction between you and your designers, but in the big scheme of things, itโ€™s worth it. Good front-end developers rely on valuable input from designers, even when itโ€™s not something they like to hear.

Therefore, itโ€™s vital to build and maintain a constructive relationship with your designers. Youโ€™re all in the same boat, so to get the best possible results you have to collaborate and communicate every step of the way. The investment in building bonds with your designers is well worth it, as it will help everyone do a better job and execute everything on time.

Conclusion

To summarize, here is a short list of design tips for front-end developers:

  • Design in a graphics program. Donโ€™t design from code, not even the small stuff.
  • Match the design. Be conscious of the original design and donโ€™t try to improve it, just match it.
  • Typography is huge. The time you spend making sure itโ€™s right should reflect its importance.
  • Avoid tunnel vision. Make sure your additions stand out only as much as they should. Theyโ€™re not more important just because you designed them.
  • Relationships and hierarchy: Understandย howย they work in the design so that you can implement them properly.
  • Whitespace and alignment are important. Make them accurate to the pixel and make them evenly throughout anything you add.
  • If youโ€™re not confident in your skills, then make your additions as minimally styled as you can.
  • Take time between revisions. Come back later to see your design work with fresh eyes.
  • Pixel-perfect implementation is important wherever possible.
  • Be brave. Seek out experienced designers to critique your work.

Not every front-end developer is going to be a fantastic designer, but every front-end dev should at least beย competentย in terms of design.

You need to understand enough about design concepts to identify whatโ€™s going on, and to properly apply the design to your end product. Sometimes, you can get away with blind copying if youโ€™ve got a thorough designer (and if youโ€™re detail oriented enough to truly copy it pixel for pixel).

However, in order to make large projects shine across many variations of content, you need some understanding of whatโ€™s going through the designerโ€™s head. You donโ€™t merely need to see what the design looks like, you need to knowย why it looks the way it does, and that way you can be mindful of technical and aesthetic limitations that will affect your job.

So, even as a front-end developer, part of your regular self-improvement should always include learning more about design.

Author: Bryan Grezeszak

Via:ย Toptal

This was sent in to TechBooky via Toptal

Toptal wasย created by engineers.ย We are entrepreneurs, all passionate about working with top tech talent and exciting companies from all over the world. T=Read more about them on theirย website

Related Posts:

  • Cursor-AI-Editor-Logo-Teaser
    Cursor Introduces An AI Coding Tool For Designers
  • Canva vs. Figma
    Canva vs Figma: Which Design Tool Should You Use in 2025?
  • Media
    Microsoft Reveals Rejected Start Menu Redesigns
  • wp-speculative-loading-plugin-page-speed-e1712935040275
    WordPress Launches Speculative Loading Plugin To…
  • a2f18284-4603-4f50-8197-7a8106132402_3840x2160
    ChatGPT Adds Free Photo and PDF Editing via Adobe
  • anthropic
    Anthropicโ€™s Claude Opus 4.6 Debuts 1M-Token Context
  • Why-Code-Review-Needs-Its-Own-AI-with-Stupendous-Precisionโ€“Recall
    Qodo 2.1 Tackles Coding Agentsโ€™ โ€˜Amnesiaโ€™ Issue
  • Content Architect
    Content Architect vs Content Strategist: Key…

Discover more from TechBooky

Subscribe to get the latest posts sent to your email.

Tags: developers

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Amazonโ€™s Zoox Expands Robotaxi Testing to Dallas and Phoenix March 9, 2026
  • Samsung Expands Glasses-Free 3D Gaming for Odyssey Monitors March 9, 2026
  • OpenAI Moves to Bolster AI Security With Promptfoo Acquisition March 9, 2026
  • Microsoft adds Anthropic AI Models to Copilot Workplace Tools March 9, 2026
  • Anthropic Sues U.S. Defense Department Over โ€˜Supply Chain Riskโ€™ Label March 9, 2026
  • Indonesia Moves to Ban Social Media for Users Under 16 March 8, 2026
  • Stablecoin Companies Target AI Agent Payment Market March 7, 2026
  • Anthropic unveils Claude Marketplace to centralize enterprise AI spend March 7, 2026
  • First In Africa: MTN Zambia Tests Starlink Direct-To-Cell March 7, 2026
  • Samsung Drops “Internet”, Renames Browser To “Browser” March 7, 2026
  • Claude Beats ChatGPT On Google Play, Reaching 1M Daily Users March 7, 2026
  • Microsoft Authenticator Blocks Rooted and Jailbroken Devices March 6, 2026

Browse Archives

March 2026
MTWTFSS
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
« Feb    

Quick Links

  • About TechBooky
  • Advertise Here
  • Contact us
  • Submit Article
  • Privacy Policy
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • Artificial Intelligence
  • Gadgets
  • Metaverse
  • Tips
  • AI Search
  • About TechBooky
  • Advertise Here
  • Submit Article
  • Contact us

ยฉ 2025 Designed By TechBooky Elite

Discover more from TechBooky

Subscribe now to keep reading and get access to the full archive.

Continue reading

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.