Graphic design

The principles of graphic design

The five principles of graphic design are not laws, they are explanations: explanations of how the eye groups things and what it sees first. Hierarchy, contrast, alignment, whitespace and repetition, and all five can be applied to a design you already have so you can see the difference.

  • Lesson 2 of 12
  • Beginner
  • Free, no signup

The five pillars that hold a design up

The first pillar steers the rest. Until the ranks are settled, decisions about size, colour and spacing have nothing to stand on.

A design that worksthe message arrives without the reader working for it
  • Hierarchy

    If the reader sees only one thing, what should it be. Something has to get smaller for something else to look large.

  • Contrast

    If two things are not meant to be identical, make them very different. For text on a screen, at least 4.5 to 1.

  • Alignment

    Every element sits on one shared edge. In Persian the strong edge is the right one.

  • Whitespace

    The gap inside a group smaller than the gap to the next group. Emptiness is what shows the grouping.

  • Repetition

    One limited scale for sizes and gaps, across the whole document. This is the thing people call professionalism.

Honouring all five pillars does not guarantee the design works. If the message is wrong, a flawless page only delivers the wrong message more clearly.

Last checked: Facts and tool names in this lesson are re-checked against their sources on this date.

Where do these five principles come from?

From the eye, not from taste. Design principles are explanations of how the visual system tidies a page: it sees things that are closer together as one group, it sees whatever differs from the rest first, and it follows repeating edges. A designer does not change that behaviour; they only learn to work with it, or at least not against it.

The list of these principles differs from book to book, four in some, seven in others. We picked five because all five genuinely produce decisions in daily work: hierarchy, contrast, alignment, whitespace and repetition. Hierarchy comes first because it steers the rest; once it is settled what holds first rank, decisions about size, colour and spacing get easier on their own.

The method of this lesson is a choice as well. This site deliberately carries no images and its figures are the visuals, so each principle is described as a before and after: one specific state, one specific change, and what is different afterwards. The advantage of that over looking at two pictures is that you are forced to put the change into words, and those words are what serve you later in a meeting with a client.

One poster, before and after five decisions

No element was added or deleted and no new colour arrived. Five decisions were simply made.

Before

  • Seven elements, all one size and one weight
  • Two typefaces that differ slightly
  • Title centred, text ranged right, image left
  • A five millimetre margin and everything out to the edge
  • Each section at slightly different sizes and gaps

After

  • The event name three times the rest, sponsor logo smallest
  • One typeface with a weight difference, or two obviously different ones
  • All four elements on one shared edge
  • The margin doubled, two low value elements removed
  • Four text sizes and one spacing scale in the whole document

The after column is not prettier than the before column, it is more legible. If the message on the poster is wrong, these five decisions only make the wrong message clearer.

What is wrong with a poster where everything is the same size?

The problem is that reading it has become the reader job, when it was yours. Picture a conference poster: the event name, the date, the time, the address, three speaker names and two sponsor logos, all at one size and one weight. The eye has nowhere to land, so it either reads from top to bottom or moves on, and on a pavement it picks the second.

Now the before and after. Before: seven elements, all one size. After: the event name three times the rest, date and time together in one medium block, the address small, the three speakers in a smaller row, and the sponsor logos the smallest thing on the poster. Nothing was deleted and no new colour was added; the ranks were simply settled.

And what settles rank? The reader question, not the importance the client attaches to the elements. The client thinks their own logo is the most important thing, and the reader walking past wants to know what is happening and when. When those two disagree, you have to explain that a large logo on a poster nobody stops to read delivers nothing to anybody. That is the sentence we said sets the price of the work.

One common mistake lives here too: enlarging everything important. If four things are big, none of them is big. Hierarchy means something has to get smaller so that something else can look large, and that is exactly why it is hard to apply.

Contrast is not only dark against light

Contrast means difference, and difference is built out of five things: size, weight, colour, direction and shape. The rule that pays off most is one sentence: if two things are not meant to be identical, make them very different. A small difference reads as a mistake rather than a decision.

The before and after here is the clearest of the five. Before: a heading in one typeface and the body in another that is slightly unlike it, both at a normal weight and close in size. The result is a page that looks as though somebody changed font mid job and forgot to change back. After: either both in one typeface with the difference carried by weight and size, or two typefaces that are obviously from different families. Both routes are correct; the middle position is the wrong one.

One part of contrast does have a number, and it is worth borrowing that number. The WCAG standard says the luminance ratio between text and its background should be at least 4.5 to 1, and 3 to 1 is enough for large text. That standard was written for web pages, yet the light grey on white that looks elegant in a portfolio does not pass there either, and it does not read in print.

For print there is no equivalent number at all, so the only way to check is to make a real proof and look at it in the light it will actually be seen in. A colour that is vivid on a calibrated screen is a different thing on matte paper under a shop light. Guessing does not make up for that.

The invisible line everything has to sit on

Alignment means every item on the page has a visual relationship with some other item, rather than merely being placed somewhere. The eye finds edges, including edges that were never drawn, and an element that sits slightly off one reads not as variety but as an error.

Before: the title centred, the body ranged right, the image flush to the left edge, and the caption centred again. None of those four decisions is wrong on its own, and together they make a page that feels busy for no reason. After: all four on one edge, say all ranged right, with the image edge lining up with the text edge. All you did was move three things a few millimetres, and the page suddenly reads as tidy.

In Persian the strong edge is the right one, and that single fact settles several decisions: text blocks start from the right, Latin words and numbers inside a sentence can have their punctuation appear displaced, and centring a text leaves both of its edges ragged, which then has to be deliberate and controlled.

Centring is not forbidden, but it has to be a decision rather than a default. Centred text works for a short symmetrical block such as the title of an invitation; it works badly for a paragraph of several lines, because on every line the eye has to hunt for the start again. The practical summary: choose one edge and put everything on it, and where you want to leave that edge, know that you are drawing attention and make sure that is what you wanted.

Whitespace and repetition, the two least applied principles

Whitespace looks wasted and is not. It does two things: it gives importance to an element that has emptiness around it without adding anything to that element, and it tells the eye which items form a group. The eye reads distance, so if the gap between a heading and its own text is larger than the gap between that text and the next heading, you have attached the heading to the wrong paragraph without meaning to.

Before: a five millimetre outer margin, elements filled out to the edge, and the same gap between blocks as inside each block. After: the outer margin doubled, two low value elements removed, and the gaps between groups clearly larger than the gaps inside them. The page got emptier and the message got stronger, and those two happened together rather than despite each other.

Repetition is the thing people are calling professionalism. Before: every page of a catalogue has a heading at a slightly different size, spacings that vary a little each time, and icons from two families. None of those differences is visible on its own, and their sum makes the catalogue look unprofessional. After: four text sizes in the whole document, one limited scale for every gap, one icon family. Nobody can say what changed, and everybody notices that it did.

A limited scale is what saves the most time. Instead of choosing a spacing for each case, choose four or five numbers and use only those. Its second benefit shows up when the work passes to somebody else, or when you come back to it six months later: the rule is written down and nothing has to be guessed.

Five minutes with this list before you hand over

None of these are matters of taste and every one of them can be answered by looking.

The five minute checkOn your own work

Check these

  • From three metres, or squinting, what is seen first
  • Which other element each element shares an edge with
  • The gap inside each group is smaller than the gap to the next group
  • How many text sizes are used in the whole document
  • With every colour turned to grey, is the hierarchy still there

Do not do these

  • Enlarging everything that is important
  • Two typefaces that differ only slightly
  • Centring a paragraph of several lines
  • Filling empty space because it looks wasted
  • Choosing a separate spacing for every case

This list checks form only. Whether the message is right is settled somewhere else, and no checklist answers it.

Which of these principles can be broken?

Any of them, once, on purpose. The condition is that the rest of the page is obedient. An element that hangs off the edge draws attention only when everything else is exactly on the edge; if everything is slightly out, that one is no longer a broken rule, it is only carelessness. The same logic holds for size, colour and spacing: breaking a rule takes its meaning from the rule.

Our position is that these five principles are written for a design that has a job to do. A poster that has to inform, packaging that has to be seen on a shelf, a catalogue that has to be read. For an art piece or an exhibition portfolio there is no job to interfere with in the first place, and there the five turn into matters of taste that can be set aside.

And one more boundary a lot of people cross: if the thing you are designing is going to be operated rather than only looked at, these five are not enough. There you have to add consistency, and contrast stops being taste and becomes a number. That discussion has its own place, and the principles of interface design is where it lives.

The fast path, with AI

Critiquing your own work with a multimodal model is the most useful thing AI does on this topic, provided the question is asked properly. Left to themselves models compliment, and compliments are exactly what is of no use. The whole trick is to forbid compliments and force a ranked list of problems. This takes judgement, so use a strong model, and our current pick lives in the AI section of this site.

  1. Export a full image of the whole surface, not a crop. Cropping steers the answer by itself, because alignment and whitespace only mean anything in the full frame.
  2. Before you ask, write down which of the five principles you think you have broken. If you read the model answer first, you no longer know what your own guess was.
  3. Run the recipe below. If the answer finds no problems, do not count that as a pass; it means the question failed and you ask again, leaning harder on the "problems only" clause.
  4. For each problem it names, ask what else breaks if you fix it. That second question is what turns the list from an opinion into a decision.
  5. Change one thing only and export again. Change five at once and you will not know which one worked, and next time you start from nothing again.

Copy-ready recipe

This image is a {job type: poster / packaging / catalogue page} that I designed. The job it has to do is: {goal}. Its reader is {reader} and it is seen from {distance}.

Your role is critic, not encourager. The rules:
a) Write nothing positive. Not one sentence. If something is good, move past it.
b) Speak only about these five principles: hierarchy, contrast, alignment, whitespace, repetition.
c) For each principle write at most two problems, and attribute each problem to a specific element.
d) Order all the problems from most severe to least, and state what your ordering criterion was.
e) Wherever stating a problem needs a number the image cannot give, write "this has to be measured" and do not invent a figure.
f) Finish with one paragraph: if I fix problem number one, what else breaks.

If you find no problems, instead of complimenting write "the question is not sufficient" and say what information you need.

Before you trust the output: Three things this recipe cannot give you. First numbers: a contrast ratio cannot be computed from a compressed image, so wherever the model states a figure, measure it yourself with a real tool. Second the brief: the model does not know what problem this design was meant to solve, so its word on whether the message is right carries no weight. And third, more important than either: even with these rules the model drifts towards agreeing with you, so if it changes its mind the second time you ask, that change is not evidence that you were right.

AI in this kind of work

On this topic AI does one thing genuinely well: looking at your work with an eye that is neither tired nor invested. Three hours into a design you can no longer see it the way you did the first time, and that is exactly where an instant outside look is worth having. But that look only helps once you have taken compliments away from it.

Tools that actually help

  • Gemini It reads images well and suits reviewing a Persian design, because it understands Persian itself and can talk about right to left alignment. Google own page says it works in over 230 countries and territories, and Iran is not on that list.
  • Claude It holds to the strict rules of the recipe above, such as the "write nothing positive" clause, and that is what makes it useful for critique. Iran is on neither of Anthropic two supported country lists; we read that off Anthropic own page.
  • ChatGPT The most common choice and acceptable for this job, given the same rules. We make no claim here about its availability or payment: OpenAI supported countries page answers our server with a 403.

Where it backfires

The main risk is that models are built to give satisfying answers, and satisfying is not the same as correct. This is not our claim: OpenAI own specification carries a clause called "avoid sycophancy" which says in as many words that the assistant exists to help the user, not to flatter them or agree with them all the time, and that sycophancy erodes trust. So the vendor treats this as a real problem and has written a rule for it. The practical consequence for you: the question "what do you think of this design" nearly always draws a positive answer, and that answer carries no information.
Our position: ask the model for problems only, ranked, and if it finds none do not count that as a pass. The second risk is smaller and easier to fall into: the model states with confidence things it has not measured. A contrast ratio does not come out of a compressed image, and the 4.5 to 1 figure in the WCAG standard is obtained with a measuring tool, not by looking. For how each tool can actually be paid for from Iran, see the buying guide.

Sources: OpenAI Model Spec: avoid sycophancy W3C: Understanding SC 1.4.3 Contrast (Minimum) Anthropic: supported countries and regions Google: where Gemini Apps are available

Where this advice stops

These five principles talk about form and say nothing about the message. A poster that honours all five still fails if what is written on it is of no use to the reader, and no checklist finds that. Second, they are written for a fixed surface with one reader; if the thing you are making is going to be operated, consistency is needed too and contrast turns from taste into a number, which is the subject of the principles of interface design. And third, for art or exhibition work these recommendations stop applying, because there is no job there to honour in the first place.

From our own work

You start taking repetition seriously when it stops depending on your memory, and we have applied that to the figures on this very site. No infographic on rgb.ir chooses its own colours. The colour of each item is computed from that item position in its own list: the ratio i divided by n minus one along a four stop ramp defined in main.css as --grad, whose stops are #ff4d6a, #b06bff, #4d9fff and #2ee6a8. The function rgb_dg_hue_vars() is called from 38 places across the four files of the library, and in all 38 it receives the item index and the item count and nothing else. The consequence is that any five item figure, on any page of this site, carries exactly the same five colours; we ran it today and it returned #ff4d6a, #c762d4, #8383ff, #46afec and #2ee6a8.
The cost is worth stating too, because this decision was not free: in a six node figure two neighbouring nodes can come out close in colour, and there is no way to fix that one figure without breaking the whole system. Alignment taught a lesson in the same place: the coloured ring around the orbit is a conic gradient built in PHP, because the nodes sit on an ellipse and the radial angle of a node on an ellipse is not the same as its own angle; with the plain number the ring colour landed a few degrees ahead of or behind its node, and those few degrees were visible.

Real follow-up questions

Other lists say four principles, why five here?

Because lists are conventions rather than facts, and each is assembled for its own purpose. We separated hierarchy out because in practice it is the first decision of any project and it steers the rest. If you read a list of four somewhere, that concept is probably folded in under contrast or proximity.

How do I tell whether my hierarchy is right?

Two tests, each of which takes seconds. First, squint until the detail blurs and see what is still visible; that thing is your first rank, whether you meant it or not. Second, make a greyscale version: if removing colour destroys the hierarchy, colour was doing the work that size and weight should have been doing.

How many colours does a design need?

Fewer than you think, and the exact number depends on the job rather than on taste. The problem with colours is not how many there are; it is that once there are many, none of them means anything specific any more and the accent colour stops being seen. The simple test: say one sentence for each colour in your design about what it does; any colour without a sentence is surplus.