Chapterبەش 5 · Lectureوانە 5.1

Design Principles: Hierarchy, Alignment, Contrast and White Spaceبنەماکانی دیزاین: پلەبەندیی بینراو، ڕێکبوون، کۆنتراست و شوێنی بەتاڵ

How to make a page easy to scan and pleasant to use: visual hierarchy and the squint test, how people scan (F- and Z-patterns, mirrored on Kurdish pages), alignment and column grids, grouping with the Gestalt principles, contrast and repetition, white space with a spacing scale, balance, pictures that inform, and a worked redesign of a bakery page.

چۆن چاوخشاندن بە لاپەڕەیەکدا ئاسان بێت و بەکارهێنانی خۆش بێت: و تاقیکردنەوەی چاوقووچاندن، خەڵک چۆن چاو بە لاپەڕەدا دەخشێنن ( و ، کە لە لاپەڕەی کوردیدا ئاوێنەیی دەبنەوە)، ڕێکبوون و ستوونەکانی grid، گرووپکردن بە ، کۆنتراست و دووپاتەبوونەوە، بە ، ، وێنەی زانیاریبەخش، هەروەها دیزاینکردنەوەی لاپەڕەی نانەواخانەیەک هەنگاو بە هەنگاو.

18 min read18 خولەک خوێندنەوە · 16 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain what visual design is for and build a clear visual hierarchy with size, weight, colour, position and space.
  • Check a page with the squint test and plan for F- and Z-pattern scanning, mirrored on right-to-left pages.
  • Line things up on one start edge and a column grid, and group related things with the Gestalt principles.
  • Use contrast, repetition, white space (a spacing scale in custom properties) and balance on purpose.
  • Critique a page with a checklist and redesign it step by step.
  • ڕوون بکەیتەوە دیزاینی بینراو بۆ چییە و ڕوون بە قەبارە، ئەستووری، ڕەنگ، شوێن و بۆشایی دروست بکەیت.
  • لاپەڕەیەک بە تاقیکردنەوەی چاوقووچاندن بپشکنیت و بۆ و پلان دابنێیت، کە لە لاپەڕەی ئاوێنەیی دەبنەوە.
  • شتەکان لەسەر یەک لێواری سەرەتا و ستوونەکانی grid ڕیز بکەیت و شتە پەیوەندیدارەکان بە گرووپ بکەیت.
  • کۆنتراست، دووپاتەبوونەوە، ( لە ) و هاوسەنگی بە مەبەست بەکاربهێنیت.
  • لاپەڕەیەک بە لیستێکی پشکنین هەڵبسەنگێنیت و هەنگاو بە هەنگاو دیزاینی بکەیتەوە.

What visual design doesدیزاینی بینراو چی دەکات؟

A page is well designed when its look helps people find, read and act. Before anyone reads a word, the eye has already judged the page in a fraction of a second: is it calm or crowded, what is the main thing, where do I click? Good visual design answers these questions without words. It is not decoration — the look follows the purpose.

لاپەڕەیەک دیزاینێکی باشی هەیە کاتێک ڕووخسارەکەی یارمەتی خەڵک دەدات بدۆزنەوە، بخوێننەوە و کار بکەن. پێش ئەوەی کەس وشەیەک بخوێنێتەوە، چاو لە بەشێکی بچووکی چرکەیەکدا حوکمی لەسەر لاپەڕەکە داوە: ئارامە یان قەرەباڵغ، شتی سەرەکی چییە، لە کوێ کلیک بکەم؟ دیزاینی بینراوی باش بەبێ وشە وەڵامی ئەم پرسیارانە دەداتەوە. ڕازاندنەوە نییە — ڕووخسار بەدوای مەبەستدا دێت.

This lesson follows one example from start to end: the home page of Shilan's Bakery in Erbil. The picture marks six principles on the finished page; each one has its own screen below. They work on Kurdish pages exactly as on English ones — only the direction flips. (The words for judging a website are in What makes a good website?.)

ئەم وانەیە لە سەرەتاوە تا کۆتایی یەک نموونە پەیڕەو دەکات: نانەواخانەی شیلان لە هەولێر. وێنەکە شەش بنەما لەسەر لاپەڕە تەواوکراوەکە نیشانە دەکات؛ هەریەکەیان لە خوارەوە شاشەی خۆی هەیە. لە لاپەڕەی کوردیدا وەک لاپەڕەی ئینگلیزی کار دەکەن — تەنیا ئاڕاستەکە پێچەوانە دەبێتەوە. (بۆ وشەکانی هەڵسەنگاندنی بڕوانە چی تۆڕگەیەک باش دەکات؟.)

The finished home page of Shilan's Bakery with six numbered marks: 1 hierarchy at the big heading, 2 alignment at a dashed start line that every block touches, 3 proximity inside a card where the name sits close to the price, 4 contrast at the one blue main button, 5 repetition at three cards that look the same, 6 white space in the calm area beside the text. A legend below repeats the six names with short meanings.لاپەڕەی سەرەکیی تەواوکراوی نانەواخانەی شیلان بە شەش نیشانەی ژمارەدار: ١ پلەبەندیی بینراو لای سەردێڕە گەورەکە، ٢ ڕێکبوون لای هێڵێکی سەرەتای پچڕاو کە هەموو بلۆکێک لێیەوە دەست پێدەکات، ٣ نزیکی لە ناو کارتێکدا کە ناو لە نرخەوە نزیکە، ٤ کۆنتراست لای تاکە دوگمە شینە سەرەکییەکە، ٥ دووپاتەبوونەوە لای سێ کارت کە وەک یەکن، ٦ شوێنی بەتاڵ لە ناوچە ئارامەکەی تەنیشت دەقەکە. لە خوارەوە کلیلێک هەر شەش ناوەکە بە واتای کورتیانەوە دووپاتە دەکاتەوە.
Six principles on one page. Each has its own screen in this lesson.شەش بنەما لە یەک لاپەڕەدا. هەریەکەیان لەم وانەیەدا شاشەی خۆی هەیە.CêIT

Visual hierarchy: what to see firstپلەبەندیی بینراو: چی سەرەتا ببینرێت

Definitionپێناسە

Arranging the parts of a page so that people see the most important thing first and then the next, with size, weight, colour, contrast, position and space. A blurry “squint test” shows whether the hierarchy works.

ڕێکخستنی بەشەکانی لاپەڕەیە بە شێوەیەک کە خەڵک سەرەتا گرنگترین شت ببینن و پاشان ئەوەی دوای ئەو، بە قەبارە، ئەستووری، ڕەنگ، جیاوازی، شوێن و بۆشایی. «تاقیکردنەوەی چاوقووچاندن» — سەیرکردنی لاپەڕەکە بە چاوی نیوەداخراو — پیشان دەدات کە پلەبەندییەکە کار دەکات یان نا.

You build a hierarchy with five tools. Use few sizes — about three clear steps are enough (Nielsen Norman Group) — so that the differences are obvious:

بە پێنج ئامراز دروست دەکەیت. قەبارەی کەم بەکاربهێنە — نزیکەی سێ پلەی ڕوون بەسە ⁦(Nielsen Norman Group)⁩ — بۆ ئەوەی جیاوازییەکان ئاشکرا بن:

  • Size: bigger means more important — the heading, then subheadings, then text (A type scale).
  • Weight: bold pulls the eye, so keep it for a few words.
  • Colour and contrast: one strong colour stands out among calm ones.
  • Position: the top and the start side are seen first (the start is the left in English and the right in Kurdish).
  • Space: an element with empty space around it stands out.
  • قەبارە: گەورەتر واتە گرنگتر — ، پاشان لاوەکی، پاشان دەق (پەیژەی قەبارەی فۆنت).
  • ئەستووری: دەقی تۆخ چاو ڕادەکێشێت، بۆیە بۆ چەند وشەیەکی کەم بیهێڵەرەوە.
  • ڕەنگ و کۆنتراست: یەک ڕەنگی بەهێز لە نێو ڕەنگە ئارامەکاندا دیار دەبێت.
  • شوێن: سەرەوە و لای سەرەتا یەکەم جار دەبینرێن (سەرەتا لە ئینگلیزیدا چەپە و لە کوردیدا ڕاست).
  • بۆشایی: کە بۆشایی بەتاڵی لە دەوردایە دیار دەبێت.

Give each screen one main action — a such as “Order for tomorrow” — and make it the strongest button on the screen. If everything is big and bold, nothing stands out.

هەر شاشەیەک یەک کاری سەرەکی پێ بدە — وەک «بۆ سبەی داوا بکە» — و بیکە بە بەهێزترین لەسەر شاشەکە. ئەگەر هەموو شتێک گەورە و تۆخ بێت، هیچ شتێک دیار نابێت.

Two versions of the same bakery card. Without hierarchy: a small grey heading, grey text, grey opening hours and two equal grey buttons, all the same weight. With a clear hierarchy: a big bold heading (1), a strong blue main button with a quieter link beside it (2) and the details in calm grey text (3).دوو وەشانی هەمان کارتی نانەواخانە. بێ پلەبەندی: سەردێڕێکی خۆڵەمێشیی بچووک، دەقی خۆڵەمێشی، کاتی کارکردنی خۆڵەمێشی و دوو دوگمەی خۆڵەمێشیی یەکسان، هەموو بە یەک کێش. بە پلەبەندیی بینراوی ڕوون: سەردێڕێکی گەورە و تۆخ (١)، دوگمەیەکی سەرەکیی شینی بەهێز لەگەڵ بەستەرێکی ئارامتر لە تەنیشتی (٢) و وردەکارییەکان بە دەقی خۆڵەمێشیی ئارام (٣).
Size, weight, colour and space decide the reading order.قەبارە، ئەستووری، ڕەنگ و بۆشایی ڕیزبەندیی خوێندنەوە دیاری دەکەن.CêIT

Visual hierarchy: what to see firstپلەبەندیی بینراو: چی سەرەتا ببینرێت

The squint testتاقیکردنەوەی چاوقووچاندن

Step back, half-close your eyes or blur a screenshot. The details disappear and only the strong shapes remain. If you still see the heading and the main button, the hierarchy works; if the page turns into equal grey blocks, it does not. You can try it on any page in the browser's developer tools by adding filter: blur(4px) to the body (filters are explained in Effects).

دوور بکەوەرەوە، چاوەکانت نیوە دابخە یان لێڵ بکە. وردەکارییەکان ون دەبن و تەنیا شێوە بەهێزەکان دەمێننەوە. ئەگەر هێشتا و سەرەکییەکە ببینیت، کار دەکات؛ ئەگەر لاپەڕەکە ببێتە چەند بلۆکێکی خۆڵەمێشیی یەکسان، کار ناکات. دەتوانیت لە لەسەر هەر لاپەڕەیەک تاقی بکەیتەوە: filter: blur(4px) بۆ body زیاد بکە ( لە کاریگەرییەکان ڕوون کراونەتەوە).

The same two bakery cards, blurred. The flat card becomes three faint grey stripes with nothing to look at first. On the card with a clear hierarchy the big dark heading and the blue button still show through the blur.هەمان دوو کارتی نانەواخانە، بە لێڵی. کارتەکە بێ پلەبەندی دەبێتە سێ هێڵی خۆڵەمێشیی کاڵ و هیچ شتێک نییە کە یەکەم جار سەیری بکەیت. لە کارتەکەی تر سەردێڕە گەورە و تۆخەکە و دوگمە شینەکە هێشتا بە ناو لێڵییەکەدا دیارن.
What survives the blur is what readers see first.ئەوەی لە لێڵییەکەدا دەمێنێتەوە ئەوەیە کە خوێنەر یەکەم جار دەیبینێت.CêIT

How people scan: F, Z and the mirror for Kurdishخەڵک چۆن چاو بە لاپەڕەدا دەخشێنن: F، Z و ئاوێنەکەیان بۆ کوردی

Most visitors scan before they read. Eyetracking studies by the Nielsen Norman Group (2006, checked again in 2017) found the on pages of plain text: a line across the top, a shorter line lower down, then down the start edge. It happens when the text has no headings or bold words and the reader is in a hurry — and such readers miss what is on the far side. On right-to-left pages the F is mirrored: in Arabic, and so in Kurdish, the eyes run from the right and down the right-hand edge.

زۆربەی سەردانکەران پێش خوێندنەوە چاو بە لاپەڕەکەدا دەخشێنن. لێکۆڵینەوەکانی شوێنکەوتنی جووڵەی چاوی ⁦Nielsen Norman Group (2006⁩، لە ⁦2017⁩ دووپاتە پشکنرایەوە) ـیان لە لاپەڕەی دەقی سادەدا دۆزییەوە: هێڵێک بە درێژایی سەرەوە، هێڵێکی کورتتر لە خوارتر، پاشان بە لێواری سەرەتادا بەرەو خوارەوە. ئەمە ڕوودەدات کاتێک دەقەکە یان وشەی تۆخی تێدا نییە و خوێنەر پەلەیەتی — ئەم خوێنەرانە ئەوەی لە لای دوورەوەیە نایبینن. لە لاپەڕەی F ئاوێنەیی دەبێت: لە عەرەبیدا، بۆیە لە کوردیشدا، چاو لە ڕاستەوە دەڕوات و بە لێواری ڕاستدا دێتە خوارەوە.

Do not design for the F — design against it: headings and subheadings that start with the words that matter, short paragraphs, lists, bold key words and the most important point in the first lines. The is a rule of thumb for simple pages with little text, such as a landing page: logo → menu → down across the picture → the main button. It has much less research behind it than the F, so treat it as a starting idea only.

بۆ F دیزاین مەکە — دژی دیزاین بکە: و لاوەکی کە بە وشە گرنگەکان دەست پێدەکەن، بڕگەی کورت، لیست، وشەی سەرەکیی تۆخ و گرنگترین خاڵ لە یەکەم دێڕەکاندا. یاسایەکی ئەزموونییە بۆ لاپەڕەی سادە و کەمدەق، وەک لاپەڕەی ناساندنی بەرهەمێک: لۆگۆ ← ← بە سەر وێنەکەدا بەرەو خوارەوە ← سەرەکییەکە. لێکۆڵینەوەی زۆر کەمتری لە پشتە بە بەراورد لەگەڵ F، بۆیە تەنیا وەک بیرۆکەیەکی سەرەتایی سەیری بکە.

Four page sketches. Top row, the F-pattern on text pages: on the English page orange bands cover the top line, a shorter second line and the left edge; on the Kurdish page the same F is mirrored and covers the right edge. Bottom row, the Z-pattern on simple pages: on the English page numbered points go from the logo at top left (1) to the menu at top right (2), diagonally down to the bottom left (3) and across to the button at bottom right (4); on the Kurdish page the Z runs from top right to top left, diagonally down and across to the button at bottom left.چوار وێنەی لاپەڕە. ڕیزی سەرەوە، شێوازی F لە لاپەڕەی پڕدەقدا: لە لاپەڕە ئینگلیزییەکەدا شریتی پرتەقاڵی دێڕی سەرەوە، دێڕێکی دووەمی کورتتر و لێواری چەپ دادەپۆشن؛ لە لاپەڕە کوردییەکەدا هەمان F ئاوێنەیی بووەتەوە و لێواری ڕاست دادەپۆشێت. ڕیزی خوارەوە، شێوازی Z لە لاپەڕەی سادەدا: لە لاپەڕە ئینگلیزییەکەدا خاڵە ژمارەدارەکان لە لۆگۆی سەرەوەی چەپەوە (١) دەچن بۆ مێنیو لە سەرەوەی ڕاست (٢)، بە لاری بۆ خوارەوەی چەپ (٣) و پاشان بۆ دوگمە لە خوارەوەی ڕاست (٤)؛ لە لاپەڕە کوردییەکەدا Z لە سەرەوەی ڕاستەوە بۆ سەرەوەی چەپ دەڕوات، بە لاری دێتە خوارەوە و پاشان بۆ دوگمە لە خوارەوەی چەپ.
Scanning patterns run from the start side: left in English, right in Kurdish.شێوازەکانی پشکنین لە لای سەرەتاوە دەست پێدەکەن: چەپ لە ئینگلیزیدا، ڕاست لە کوردیدا.CêIT

Alignment: one start lineڕێکبوون: یەک هێڵی سەرەتا

Every element should line up with something else. Invisible lines tie the page together; a block that starts a few pixels off looks like a mistake. Use few alignment lines and keep long text aligned to the start — left in English, right in Kurdish (text-align: start, see Line length and alignment). Centre only short things such as a heading or a single button: centred paragraphs have a ragged start edge that is hard to read.

هەر دەبێت لەگەڵ شتێکی تردا لەسەر هێڵێک بێت. هێڵە نەبینراوەکان لاپەڕەکە پێکەوە دەبەستنەوە؛ بلۆکێک کە چەند لە شوێنی خۆی لای داوە وەک هەڵە دەردەکەوێت. هێڵی ڕێکبوونی کەم بەکاربهێنە و دەقی درێژ بەرەو سەرەتا ڕێک بخە — چەپ لە ئینگلیزیدا و ڕاست لە کوردیدا (text-align: start، بڕوانە درێژیی دێڕ و ڕێکخستن). تەنیا شتی کورت لە ناوەڕاست دابنێ، وەک یان تاکە : بڕگەی ناوەڕاستکراو لێواری سەرەتای ناڕێکە و خوێندنەوەی قورسە.

Two versions of a 'Our breads' section. In the first the heading is centred, the text lines start at different places, the picture is shifted and the button sits at the far end. In the second a dashed start line runs down the side: the heading, the text, the picture and the button all start on it. The Kurdish version has the start line on the right.دوو وەشانی بەشی «نانەکانمان». لە یەکەمدا سەردێڕەکە لە ناوەڕاستە، دێڕەکانی دەق لە شوێنی جیاواز دەست پێدەکەن، وێنەکە لای داوە و دوگمەکە لە کۆتایی دوورەوەیە. لە دووەمدا هێڵێکی سەرەتای پچڕاو بە لایەکدا دێتە خوارەوە: سەردێڕ، دەق، وێنە و دوگمە هەموویان لەسەری دەست پێدەکەن. لە وەشانی کوردیدا هێڵی سەرەتا لە لای ڕاستە.
One start line holds a section together.یەک هێڵی سەرەتا بەشێک پێکەوە دەبەستێتەوە.CêIT
The same edges for every blockهەمان لێوار بۆ هەموو بلۆکێکCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
.hero, .cards {
  max-width: 40rem;
  margin-inline: auto;        /* the same column edges for every block */
  padding-inline: 1.5rem;
}
.hero p { text-align: start; } /* left in English, right in Kurdish */

Alignment: one start lineڕێکبوون: یەک هێڵی سەرەتا

Column grids and guttersستوونەکانی grid و بۆشایی نێوان

Designers line up whole pages on a column grid: often 12 columns on a computer and 4 on a phone, with gaps called gutters. Each block spans a number of columns, so every edge falls on a column line. CSS Grid builds exactly this, and on a Kurdish page column 1 is on the right (CSS Grid, line 1 is on the right).

دیزاینەران هەموو لاپەڕەکە لەسەر ستوونەکانی grid ڕیز دەکەن: زۆرجار ١٢ ستوون لەسەر کۆمپیوتەر و ٤ ستوون لەسەر مۆبایل، لەگەڵ لە نێوان ستوونەکاندا. هەر بلۆکێک ژمارەیەک ستوون دەگرێتەوە، بۆیە هەموو لێوارێک دەکەوێتە سەر هێڵی ستوونێک. ڕێک ئەمە دروست دەکات و لە لاپەڕەی کوردیدا ستوونی ١ لە لای ڕاستە (CSS Grid، هێڵی ١ لە ڕاستە).

A 4-column grid on phones, 12 columns on wider screensgridـی ٤ ستوونی لەسەر مۆبایل، ١٢ ستوون لەسەر شاشەی پانترCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
.page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* phone: 4 columns */
  gap: 1rem;                               /* the gutter */
}
.page > * { grid-column: 1 / -1; }         /* every block spans all 4 */

@media (width >= 40rem) {
  .page { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
  .hero-text  { grid-column: span 7; }
  .hero-photo { grid-column: span 5; }
  .card       { grid-column: span 4; }
}
A desktop page on a 12-column grid with pink column stripes and gutters between them: a header spans 12 columns, a hero text spans 7 and a photo 5, and three cards span 4 columns each. Next to it a phone with 4 columns where every block spans the full width. In the Kurdish version the 7-column block is on the right.لاپەڕەیەکی کۆمپیوتەر لەسەر gridـی ١٢ ستوونی بە هێڵی ستوونی پەمەیی و بۆشایی نێوان لە نێوانیاندا: سەرپەڕە ١٢ ستوون دەگرێتەوە، دەقی سەرەکی ٧ و وێنەکە ٥، سێ کارت هەریەکە ٤ ستوون. لە تەنیشتیەوە مۆبایلێک بە ٤ ستوون کە هەموو بلۆکێک هەموو پانییەکە دەگرێتەوە. لە وەشانی کوردیدا بلۆکە ٧ ستوونییەکە لە لای ڕاستە.
Every edge falls on a column line.هەموو لێوارێک دەکەوێتە سەر هێڵی ستوونێک.CêIT

Proximity and the Gestalt principlesنزیکی و یاساکانی گێشتاڵت

Our eyes group things before we think. The — named after a school of German psychologists of the early 20th century — describe how. Four matter most on web pages:

چاومان پێش ئەوەی بیر بکەینەوە شتەکان گرووپ دەکات. — بە ناوی قوتابخانەیەکی دەروونناسانی ئەڵمانیی سەرەتای سەدەی بیستەم — وەسفی چۆنیەتییەکەی دەکەن. چواریان لە لاپەڕەی وێبدا گرنگترینن:

  • Proximity: things that are close together belong together.
  • Similarity: things that look alike (colour, shape, size) belong together — so all links should look alike.
  • Common region: a shared box or background makes a group — a card.
  • Continuation: the eye follows lines and curves, so a row of items is read as one line.
  • نزیکی: ئەو شتانەی لە یەکەوە نزیکن پێکەوەن.
  • لێکچوون: ئەو شتانەی لە یەک دەچن (ڕەنگ، شێوە، قەبارە) پێکەوەن — بۆیە هەموو دەبێت وەک یەک بن.
  • ناوچەی هاوبەش: چوارچێوە یان پاشبنەمایەکی هاوبەش گرووپێک دروست دەکات — وەک .
  • بەردەوامی: چاو بەدوای هێڵ و کەوانەدا دەڕوات، بۆیە ڕیزێک لە شتەکان وەک یەک هێڵ دەخوێنرێتەوە.

Nielsen Norman Group also lists closure, figure and ground, and symmetry and order. On a page the first rule is the most useful: put a heading closer to the text it introduces than to the text above it — more space above a heading than below it.

Nielsen Norman Group هەروەها تەواوکردن، شێوە و پاشبنەما، هەروەها هاوتایی و ڕیزبەندی لیست دەکات. لە لاپەڕەدا یاسای یەکەم بەسوودترینە: لەو دەقەوە نزیکتر دابنێ کە دەیناسێنێت وەک لە دەقی سەرەوەی — بۆشایی سەرەوەی زیاتر بێت لە بۆشایی خوارەوەی.

Four panels. Proximity: twelve blue dots form two groups because of a wider gap in the middle. Similarity: columns of blue circles and orange squares are seen as columns of alike shapes. Common region: the same dots inside two orange boxes form two groups. Continuation: a wavy line of blue dots crosses a straight row of orange squares, and the eye follows each line through the crossing.چوار پانێڵ. نزیکی: دوازدە خاڵی شین بەهۆی بۆشاییەکی پانتر لە ناوەڕاستدا دوو گرووپ پێکدێنن. لێکچوون: ستوونی بازنەی شین و چوارگۆشەی پرتەقاڵی وەک ستوونی شێوەی لێکچوو دەبینرێن. ناوچەی هاوبەش: هەمان خاڵەکان لە ناو دوو چوارچێوەی پرتەقاڵیدا دوو گرووپ پێکدێنن. بەردەوامی: هێڵێکی شەپۆلیی خاڵی شین ڕیزێکی ڕاستی چوارگۆشەی پرتەقاڵی دەبڕێت و چاو هەر هێڵێک بە ناو خاڵی بڕینەکەدا پەیڕەو دەکات.
Four Gestalt principles that web pages use every day.چوار لە کە لاپەڕەکانی وێب هەموو ڕۆژێک بەکاریان دەهێنن.CêIT

Proximity and the Gestalt principlesنزیکی و یاساکانی گێشتاڵت

Grouping in forms and cardsگرووپکردن لە فۆرم و کارتدا

Forms show proximity at its clearest. When the gap between a label and its own field is the same as the gap to the next label, readers have to guess which goes with which. Put each label right on its field and leave a bigger gap between the pairs; fields that belong together (street, city, postcode) can also share a <fieldset> box — common region. More in Form design.

نزیکی بە ڕوونترین شێوە پیشان دەدەن. کاتێک بۆشایی نێوان و خانەکەی خۆی بە قەد بۆشایی نێوان ئەو و دواتر بێت، خوێنەر ناچار دەبێت مەزەندە بکات کامیان هی کامیانە. هەر ڕاستەوخۆ لەسەر خانەکەی خۆی دابنێ و بۆشاییەکی گەورەتر لە نێوان جووتەکاندا بهێڵەرەوە؛ ئەو خانانەی پێکەوەن (شەقام، شار، کۆدی پۆستە) دەتوانن چوارچێوەیەکی <fieldset>ـی هاوبەشیان هەبێت — ناوچەی هاوبەش. زیاتر لە دیزاینی فۆرم.

Small gap inside a pair, big gap between pairsبۆشایی بچووک لە ناو جووتێکدا، بۆشایی گەورە لە نێوان جووتەکانداCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
.field { margin-block-end: 1.5rem; }        /* a big gap between pairs */
.field label {
  display: block;
  margin-block-end: 0.25rem;                /* a small gap to its own input */
  font-weight: 600;
}
Two forms with Name, Phone and Address. In the first every label is exactly halfway between two boxes, marked by equal green gap markers, so it is unclear which box a label belongs to. In the second each bold label sits right above its own box and there is a wide gap before the next pair.دوو فۆرم بە ناو، ژمارەی تەلەفۆن و ناونیشان. لە یەکەمدا هەر لەیبڵێک ڕێک لە نیوەی نێوان دوو خانەدایە، بە نیشانەی سەوزی بۆشایی یەکسان دیاری کراوە، بۆیە ڕوون نییە لەیبڵەکە هی کام خانەیە. لە دووەمدا هەر لەیبڵێکی تۆخ ڕاستەوخۆ لە سەرووی خانەکەی خۆیەتی و پێش جووتی دواتر بۆشاییەکی پان هەیە.
Close to its own field, far from the next one.نزیک لە خانەی خۆی، دوور لە خانەی دواتر.CêIT

Contrast and repetition: a small design systemکۆنتراست و دووپاتەبوونەوە: سیستەمێکی دیزاینی بچووک

Contrast: things with different jobs should look clearly different, not almost the same. A main button and a second button that differ only a little look like a mistake. Repetition: things with the same job should look exactly the same on every page — the same button style, the same heading sizes, the same link colour. Readers learn the pattern once and then trust it.

کۆنتراست: ئەو شتانەی ئەرکی جیاوازیان هەیە دەبێت بە ڕوونی جیاواز دەربکەون، نەک نزیکەی وەک یەک. سەرەکی و دووەم کە تەنیا کەمێک جیاوازن وەک هەڵە دەردەکەون. دووپاتەبوونەوە: ئەو شتانەی ئەرکی وەک یەکیان هەیە دەبێت لە هەموو لاپەڕەیەکدا ڕێک وەک یەک بن — هەمان شێوەی ، هەمان قەبارەی ، هەمان ڕەنگی . خوێنەر یەکجار فێری شێوەکە دەبێت و پاشان متمانەی پێ دەکات.

Write the repeated styles down once, as classes and : a primary button, a secondary button, a link. Such a set of shared rules and parts for a whole site is a . Contrast between text and background is a separate thing that you can measure (Colour for the web).

شێوە دووپاتەکان یەکجار بنووسە، وەک کلاس و : سەرەکی، دووەم، . کۆمەڵێکی وا لە ڕێسا و پارچەی هاوبەش بۆ تەواوی پێی دەوترێت . کۆنتراستی نێوان دەق و پاشبنەما شتێکی ترە کە دەتوانیت بیپێویت (ڕەنگ بۆ وێب).

Two product lists with the same two cards. Random: a flat green 'Buy' button, a round purple outlined 'Details' button, an orange 'more…' link, an orange 'ORDER NOW' block and a grey 'info' box — every button different. Consistent: on both cards a filled blue 'Buy' button, an outlined blue 'Details' button and an underlined blue 'More' link, in the same sizes and positions.دوو لیستی بەرهەم بە هەمان دوو کارت. هەڕەمەکی: دوگمەیەکی سەوزی ڕووتەختی «بیکڕە»، دوگمەیەکی مۆری خڕی بە چوارچێوەی «وردەکاری»، بەستەرێکی پرتەقاڵیی «زیاتر…»، بلۆکێکی پرتەقاڵیی «ئێستا داوا بکە» و چوارگۆشەیەکی خۆڵەمێشیی «زانیاری» — هەر دوگمەیەک جیاوازە. یەکگرتوو: لەسەر هەردوو کارت دوگمەیەکی شینی پڕکراوی «بیکڕە»، دوگمەیەکی شینی بە چوارچێوەی «وردەکاری» و بەستەرێکی شینی هێڵبەژێرکراوی «زیاتر»، بە هەمان قەبارە و هەمان شوێن.
Different jobs look different; the same job always looks the same.ئەرکی جیاواز شێوەی جیاوازە؛ ئەرکی وەک یەک هەمیشە هەمان شێوەیە.CêIT
Three styles, used everywhereسێ شێوە، لە هەموو شوێنێکCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
:root { --brand: #1f5f99; }
.btn {
  font: inherit; font-weight: 700;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--brand);
  border-radius: 0.5rem;
}
.btn-primary   { background: var(--brand); color: #fff; }   /* the main action */
.btn-secondary { background: transparent; color: var(--brand); }
a { color: var(--brand); text-decoration: underline; }      /* links look like links */

White space and a spacing scaleشوێنی بەتاڵ و پەیژەی بۆشایی

is the empty space between and around things: margins, padding, gaps and the space between lines. It does not have to be white. It rests the eye, makes text easier to read and — through proximity — shows what belongs together. A crowded page feels cheap and stressful; the same content with more room feels calm and trustworthy.

ئەو بۆشاییە بەتاڵەیە کە لە نێوان و دەوری شتەکاندایە: ، ، و ئەو بۆشاییەی لە نێوان دێڕەکاندایە. پێویست ناکات سپی بێت. پشوو بە چاو دەدات، خوێندنەوەی دەق ئاسانتر دەکات و — لە ڕێگەی نزیکییەوە — پیشان دەدات چی لەگەڵ چییە. لاپەڕەی قەرەباڵغ هەستی هەرزانی و فشار دەدات؛ هەمان ناوەڕۆک بە بۆشایی زیاترەوە ئارام و جێی متمانە دەردەکەوێت.

Choose a few sizes and use only those: a , for example 4, 8, 16, 24, 32 and 48 px, written in rem so that it grows with the reader's text size. Keep the steps in (explained in Colour for the web) next to your type scale (A type scale). Small steps go inside a group, big steps between groups; margin and padding themselves are in The box model.

چەند قەبارەیەک هەڵبژێرە و تەنیا ئەوانە بەکاربهێنە: ، بۆ نموونە ٤، ٨، ١٦، ٢٤، ٣٢ و ٤٨ ، بە rem نووسراو بۆ ئەوەی لەگەڵ قەبارەی دەقی خوێنەردا گەورە ببێت. پلەکان لە هەڵبگرە (لە ڕەنگ بۆ وێب ڕوون کراونەتەوە) لە تەنیشت (پەیژەی قەبارەی فۆنت). پلەی بچووک بۆ ناو گرووپێک، پلەی گەورە بۆ نێوان گرووپەکان؛ و خۆیان لە مۆدێلی سندووقـدان.

Left: six bars for --space-1 to --space-6, 0.25rem (4 px), 0.5rem (8 px), 1rem (16 px), 1.5rem (24 px), 2rem (32 px) and 3rem (48 px), each about 1.5 to 2 times the one before. Right: two cards that use the scale: 24 px padding inside each card, an 8 px gap between a card's title and its text, and a 32 px gap between the two cards.لای چەپ: شەش شریت بۆ --space-1 تا --space-6، 0.25rem (٤ پیکسڵ)، 0.5rem (٨)، 1rem (١٦)، 1.5rem (٢٤)، 2rem (٣٢) و 3rem (٤٨)، هەریەکە نزیکەی 1.5 تا 2 هێندەی پێشوو. لای ڕاست: دوو کارت کە پەیژەکە بەکاردەهێنن: ٢٤ پیکسڵ بۆشایی ناوەوە لە ناو هەر کارتێکدا، ٨ پیکسڵ بۆشایی لە نێوان ناونیشان و دەقی کارتەکە، هەروەها ٣٢ پیکسڵ بۆشایی لە نێوان هەردوو کارتەکەدا.
A few spacing steps, used everywhere, make a page look planned.چەند پلەیەکی بۆشایی، کە لە هەموو شوێنێک بەکاردێن، لاپەڕەکە پلاندار دەردەخەن.CêIT
A spacing scale in custom propertiesپەیژەی بۆشایی لە تایبەتمەندییە دڵخوازەکانداCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
:root {
  --space-1: 0.25rem;  /*  4 px */
  --space-2: 0.5rem;   /*  8 px */
  --space-3: 1rem;     /* 16 px */
  --space-4: 1.5rem;   /* 24 px */
  --space-5: 2rem;     /* 32 px */
  --space-6: 3rem;     /* 48 px */
}
.card          { padding: var(--space-4); }
.card h2       { margin-block: 0 var(--space-2); }    /* title close to its text */
.card + .card  { margin-block-start: var(--space-5); } /* cards far apart */

Balance and visual weightهاوسەنگیی بینراو و کێشی بینراو

Every element has visual weight: big, dark, strongly coloured, busy or isolated things feel heavy. is how that weight is spread around the middle of the page. A symmetric layout mirrors both halves — calm and formal, like an invitation card. An asymmetric layout puts different things on each side that still weigh about the same — for example a big, light photo against a short heading and one strong button. It feels more lively and is common on modern sites. Nielsen Norman Group also names radial balance, where things spread out from a centre.

هەموو کێشی بینراوی هەیە: شتی گەورە، تاریک، بە ڕەنگی بەهێز، قەرەباڵغ یان جیاکراوە قورس دەردەکەون. ئەوەیە کە ئەم کێشە چۆن بە دەوری ناوەڕاستی لاپەڕەکەدا دابەش دەبێت. هاوتا هەردوو نیوەکە وەک ئاوێنەی یەکتر دەکات — ئارام و فەرمی، وەک کارتی بانگهێشت. ناهاوتا شتی جیاواز لە هەر لایەک دادەنێت کە هێشتا نزیکەی هاوکێشن — بۆ نموونە وێنەیەکی گەورە و کاڵ بەرامبەر کورت و یەک بەهێز. زیندووتر دەردەکەوێت و لە نوێدا باوە. Nielsen Norman Group هەروەها هاوسەنگیی تیشکی ناو دەبات، کە شتەکان لە ناوەندێکەوە بڵاو دەبنەوە.

On a Kurdish page the whole layout is mirrored, so the balance stays the same — the photo simply changes sides (what flips by itself).

لە لاپەڕەی کوردیدا هەموو ئاوێنەیی دەبێتەوە، بۆیە هاوسەنگییەکە وەک خۆی دەمێنێتەوە — وێنەکە تەنیا لای خۆی دەگۆڕێت (چی خۆی پێچەوانە دەبێتەوە).

Two layouts standing on see-saws. Symmetric: the bakery name centred, two equal pictures and a centred button, mirrored around a dashed middle line; two equal grey weights keep the beam level. Asymmetric: a big bread photo on one side and a short 'Fresh today' heading, a little text and a red 'Order' button on the other; a big light block and a small heavy red block keep the beam level.دوو ڕێکخستنی لاپەڕە لەسەر تەرازوو. هاوتا: ناوی نانەواخانەکە لە ناوەڕاست، دوو وێنەی یەکسان و دوگمەیەک لە ناوەڕاست، بە دەوری هێڵێکی ناوەڕاستی پچڕاودا وەک ئاوێنە؛ دوو کێشی خۆڵەمێشیی یەکسان تەختەکە ڕاست دەهێڵنەوە. ناهاوتا: وێنەیەکی گەورەی نان لە لایەک و سەردێڕێکی کورتی «تازە، ئەمڕۆ»، کەمێک دەق و دوگمەیەکی سووری «داوا بکە» لە لایەکی تر؛ بلۆکێکی گەورەی سووک و بلۆکێکی سووری بچووکی قورس تەختەکە ڕاست دەهێڵنەوە.
Balance does not need two equal halves — only equal weight.هاوسەنگی پێویستی بە دوو نیوەی یەکسان نییە — تەنیا کێشی یەکسان.CêIT

Pictures that informوێنەی زانیاریبەخش

Pictures are the heaviest parts of a page, both in visual weight and in kilobytes, so each one should earn its place:

وێنەکان قورسترین بەشی لاپەڕەن، هەم لە کێشی بینراودا و هەم لە کیلۆبایتدا، بۆیە هەر وێنەیەک دەبێت شایەنی شوێنەکەی بێت:

  • Show the real thing — the actual bread, the real shop, a map — not stock photos of smiling strangers. Diagrams that explain beat decoration.
  • Give pictures in a row the same shape: aspect-ratio and object-fit: cover (pictures in boxes), so the grid stays calm.
  • Every picture that informs needs ; a decoration gets alt="" (alt text).
  • Keep text out of pictures: real text can be read aloud, translated, zoomed and found by search engines.
  • شتی ڕاستەقینە پیشان بدە — نانە ڕاستەقینەکە، دوکانە ڕاستەقینەکە، نەخشەیەک — نەک وێنەی ئامادەی خەڵکی نەناسراوی بزەدار. دایاگرامی ڕوونکەرەوە لە ڕازاندنەوە باشترە.
  • وێنەکانی یەک ڕیز هەمان شێوە بدە: aspect-ratio و object-fit: cover (وێنە لە ناو سندووقدا)، بۆ ئەوەی gridـەکە ئارام بمێنێتەوە.
  • هەر وێنەیەک کە زانیاری دەدات پێویستی بە هەیە؛ وێنەی ڕازاندنەوە alt="" وەردەگرێت (دەقی جێگرەوە).
  • دەق لە ناو وێنەدا دامەنێ: دەقی ڕاستەقینە دەتوانرێت بە دەنگی بەرز بخوێنرێتەوە، وەربگێڕدرێت، بکرێت و بیدۆزنەوە.

Worked example: redesigning a crowded pageنموونەی کارپێکراو: دیزاینکردنەوەی لاپەڕەیەکی قەرەباڵغ

The first version of Shilan's page had every mistake at once: things scattered, equal gaps everywhere, a heading no bigger than the text, five colours and three button shapes, and no room to breathe. The animation fixes it in five steps — the order in which designers usually work.

یەکەم وەشانی لاپەڕەکەی شیلان هەموو هەڵەکانی پێکەوە تێدا بوو: شتی بڵاو، بۆشایی یەکسان لە هەموو شوێنێک، کە لە دەقەکە گەورەتر نەبوو، پێنج ڕەنگ و سێ شێوەی ، هەروەها هیچ جێگەیەک بۆ هەناسەدان. لە پێنج هەنگاودا چاکی دەکات — بەو ڕیزبەندییەی دیزاینەران زۆرجار کار دەکەن.

Animation in six frames. Before: a crowded bakery page with a centred logo, a scattered menu, a small red heading, grey text, a green and a purple button and three cards of different sizes. Step 1, alignment: everything moves onto one start line. Step 2, proximity: the heading, text and buttons form one group and each card holds its name and price. Step 3, hierarchy: the heading becomes big and bold and one main button stands out. Step 4, contrast and repetition: two brand colours and one button style, with an underlined link. Step 5, white space: more room around and between the groups.
Animation in six frames. Before: a crowded bakery page with a centred logo, a scattered menu, a small red heading, grey text, a green and a purple button and three cards of different sizes. Step 1, alignment: everything moves onto one start line. Step 2, proximity: the heading, text and buttons form one group and each card holds its name and price. Step 3, hierarchy: the heading becomes big and bold and one main button stands out. Step 4, contrast and repetition: two brand colours and one button style, with an underlined link. Step 5, white space: more room around and between the groups.
The same content, five principles, one calm page.هەمان ناوەڕۆک، پێنج بنەما، یەک لاپەڕەی ئارام.CêIT
The five stepsپێنج هەنگاوەکە
  1. Alignmentڕێکبوون

    One start line and the same column edges for the header, the hero and the cards.

    یەک هێڵی سەرەتا و هەمان لێواری ستوون بۆ ، بەشی سەرەکی و .

  2. Proximityنزیکی

    Logo and menu in one row; heading, text and buttons as one group; each card holds its own name and price.

    لۆگۆ و لە یەک ڕیزدا؛ ، دەق و وەک یەک گرووپ؛ هەر ناو و نرخی خۆی لەخۆ دەگرێت.

  3. Hierarchyپلەبەندیی بینراو

    One big heading from the type scale and one main button: the call to action.

    یەک گەورە لە و یەک سەرەکی: .

  4. Contrast and repetitionکۆنتراست و دووپاتەبوونەوە

    Two brand colours plus neutrals, one button style, links underlined, every card alike.

    دوو ڕەنگی براند لەگەڵ ڕەنگی بێلایەن، یەک شێوەی ، هێڵبەژێرکراو، هەموو وەک یەک.

  5. White spaceشوێنی بەتاڵ

    Padding and gaps from the spacing scale: small inside groups, big between sections.

    و بۆشایی لە : بچووک لە ناو گرووپەکاندا، گەورە لە نێوان بەشەکاندا.

The finished pageلاپەڕە تەواوکراوەکەindex.htmlHTMLRuns in the browserلە ناو تۆڕگەڕ کار دەکات
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Shilan's Bakery</title>
<style>
:root {
  --ink: #2b2118; --muted: #6b5a4a; --brand: #7a4a21; --accent: #1f5f99; --bg: #fffaf3;
  --space-2: 0.5rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2rem; --space-6: 3rem;
}
body { margin: 0; font-family: system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
.wrap { max-width: 56rem; margin-inline: auto; padding: var(--space-5) var(--space-4); }
header { display: flex; align-items: baseline; gap: var(--space-4); margin-block-end: var(--space-6); }
.logo { color: var(--brand); font-weight: 700; font-size: 1.25rem; margin-inline-end: auto; }
nav a { color: var(--ink); margin-inline-start: var(--space-3); }
h1 { font-size: 2.441rem; line-height: 1.15; margin: 0 0 var(--space-3); }
.lead { color: var(--muted); max-width: 32rem; margin: 0 0 var(--space-4); }
.btn { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 0.5rem; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.more { color: var(--accent); margin-inline-start: var(--space-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-4); margin-block-start: var(--space-6); }
.card { background: #fff; border: 1px solid #e2d8ca; border-radius: 0.5rem; padding: var(--space-4); }
.card h2 { font-size: 1.25rem; margin: 0 0 var(--space-2); }
.card p { margin: 0; color: var(--brand); }
</style>
</head>
<body>
<div class="wrap">
  <header>
    <span class="logo">Shilan's Bakery</span>
    <nav><a href="#bread">Bread</a><a href="#cakes">Cakes</a><a href="#contact">Contact</a></nav>
  </header>
  <main>
    <h1>Fresh bread every morning</h1>
    <p class="lead">Tandoor bread, samoon and kulicha, baked before sunrise in Erbil.</p>
    <a class="btn" href="#order">Order for tomorrow</a><a class="more" href="#story">Our story</a>
    <div class="cards" id="bread">
      <article class="card"><h2>Tandoor bread</h2><p>500 IQD</p></article>
      <article class="card"><h2>Samoon</h2><p>250 IQD</p></article>
      <article class="card"><h2>Kulicha</h2><p>1,000 IQD</p></article>
    </div>
  </main>
</div>
</body>
</html>

Common mistakesهەڵە باوەکان

MistakeهەڵەFixچارەسەر
Many fonts and many sizesچەندین و چەندین قەبارەOne or two font families and a type scale (type scale)یەک یان دوو خێزانی و (پەیژەی قەبارەی فۆنت)
A rainbow of coloursپەلکەزێڕینەیەک ڕەنگA small palette: neutrals plus one accent (colour schemes) بچووک: ڕەنگی بێلایەن لەگەڵ یەک ڕەنگی سەرنجڕاکێش (پلانەکانی ڕەنگ)
Everything bold, big or redهەموو شت تۆخ، گەورە یان سوورOne main thing per screen; the rest calmerیەک شتی سەرەکی بۆ هەر شاشەیەک؛ ئەوانی تر ئارامتر
Long text centredدەقی درێژ لە ناوەڕاستAlign body text to the startدەقی ئاسایی بەرەو سەرەتا ڕێک بخە
The same gap everywhereهەمان بۆشایی لە هەموو شوێنێکSmall gaps inside groups, big gaps between themبۆشایی بچووک لە ناو گرووپدا، گەورە لە نێوانیاندا
Text pressed against edgesدەق بە لێوارەوە نووساوPadding from the spacing scale لە
A different style for every buttonشێوەیەکی جیاواز بۆ هەر A primary, a secondary and a link style, repeatedشێوەیەکی سەرەکی، دووەم و ، دووپاتەکراو
Text inside picturesدەق لە ناو وێنەداReal HTML text over or next to the pictureدەقی ڕاستەقینەی لەسەر یان لە تەنیشت وێنەکە
Walls of text without headingsدیواری دەق بەبێ Headings that start with the key words, short paragraphs, lists کە بە وشە سەرەکییەکان دەست پێدەکەن، بڕگەی کورت، لیست

Exercisesڕاهێنانەکان

ExerciseڕاهێنانCritique a page with a checklistهەڵسەنگاندنی لاپەڕەیەک بە لیستێکی پشکنین

Open the home page of a local shop, your faculty or a news site. Answer these eight questions in a few words each: (1) Squint: what do you see first? (2) Is there one main action? (3) How many start lines? (4) Are related things grouped? (5) How many text sizes? (6) How many colours? (7) Is the spacing even or random? (8) Do the pictures inform, and do they have alt text?

دوکانێکی ناوچەکەت، کۆلێژەکەت یان ماڵپەڕێکی هەواڵ بکەرەوە. بە چەند وشەیەک وەڵامی ئەم هەشت پرسیارە بدەرەوە: (١) چاوقووچاندن: یەکەم جار چی دەبینیت؟ (٢) یەک کاری سەرەکی هەیە؟ (٣) چەند هێڵی سەرەتا هەیە؟ (٤) شتە پەیوەندیدارەکان گرووپ کراون؟ (٥) چەند قەبارەی دەق هەیە؟ (٦) چەند ڕەنگ هەیە؟ (٧) بۆشاییەکان ڕێکن یان هەڕەمەکی؟ (٨) وێنەکان زانیاری دەدەن و بۆیان نووسراوە؟

Hintئاماژە

Start with the squint test; it shows the biggest problem first.

بە تاقیکردنەوەی چاوقووچاندن دەست پێبکە؛ گەورەترین کێشە یەکەم جار پیشان دەدات.

Show answerوەڵامەکە پیشان بدە

A sample critique of a phone-shop page: (1) a moving banner, three offers and a chat bubble all compete — nothing comes first; (2) four buttons of the same strength; (3) at least five start lines; (4) prices sit far from their phones; (5) seven text sizes; (6) red, orange, green, blue and purple; (7) random gaps; (8) the offers are pictures of text without alt text. Fixes: one main offer and button, one start line and a grid, prices inside the cards, a type scale with three sizes, neutrals plus one accent, a spacing scale, and real text with alt text for the photos.

هەڵسەنگاندنێکی نموونەیی بۆ لاپەڕەی دوکانێکی مۆبایل: (١) بانەرێکی جووڵاو، سێ ئۆفەر و بڵقێکی چات هەموویان کێبڕکێ دەکەن — هیچ شتێک یەکەم نییە؛ (٢) چوار بە هەمان هێز؛ (٣) لانیکەم پێنج هێڵی سەرەتا؛ (٤) نرخەکان لە مۆبایلەکانیانەوە دوورن؛ (٥) حەوت قەبارەی دەق؛ (٦) سوور، پرتەقاڵی، سەوز، شین و مۆر؛ (٧) بۆشایی هەڕەمەکی؛ (٨) ئۆفەرەکان وێنەی دەقن بەبێ . چارەسەر: یەک ئۆفەری سەرەکی و یەک ، یەک هێڵی سەرەتا و gridـێک، نرخەکان لە ناو ، بە سێ قەبارە، ڕەنگی بێلایەن لەگەڵ یەک ڕەنگی سەرنجڕاکێش، ، هەروەها دەقی ڕاستەقینە و بۆ وێنەکان.

ExerciseڕاهێنانRedesign a product cardدیزاینکردنەوەی کارتێکی بەرهەم

This card breaks five principles. Rewrite its CSS with alignment, proximity, hierarchy, contrast and repetition, and white space. Keep the HTML.

ئەم پێنج بنەما دەشکێنێت. بە ڕێکبوون، نزیکی، ، کۆنتراست و دووپاتەبوونەوە، هەروەها دووپاتە بنووسەوە. وەک خۆی بهێڵەرەوە.

The card to fixئەو کارتەی چاک دەکرێتCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
.product { width: 18rem; border: 3px dashed #8e44ad; padding: 4px; text-align: center; }
.product h2 { font-size: 1rem; color: #d0342c; margin: 12px; }
.product .price { font-size: 1rem; color: #16a085; margin: 12px; }
.product p { color: #aaaaaa; margin: 12px; }
.product button { background: #2ecc71; color: #fff; border: 0; border-radius: 0; margin: 12px; }
.product a { color: #e67e22; text-decoration: none; margin: 12px; }
Hintئاماژە

Fix one principle at a time, in the order of the redesign animation.

هەر جارێک یەک بنەما چاک بکە، بە ڕیزبەندیی دیزاینکردنەوەکە.

Show answerوەڵامەکە پیشان بدە
One possible answerوەڵامێکی گونجاوCSSRuns in the browserلە ناو تۆڕگەڕ کار دەکات
:root { --ink: #2b2118; --muted: #6b5a4a; --accent: #1f5f99;
        --space-2: 0.5rem; --space-3: 1rem; --space-4: 1.5rem; }
.product {
  width: 18rem; padding: var(--space-4);
  border: 1px solid #d8d0c4; border-radius: 0.75rem;
  text-align: start;                          /* alignment */
}
.product h2     { font-size: 1.5rem; color: var(--ink); margin: 0; }          /* hierarchy */
.product .price { font-weight: 700; color: var(--ink); margin: 0 0 var(--space-3); } /* proximity */
.product p      { color: var(--muted); margin: 0 0 var(--space-4); }           /* readable grey */
.product button {
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 0.5rem; padding: 0.6rem 1.2rem;                   /* one main action */
}
.product a { color: var(--accent); margin-inline-start: var(--space-3); }      /* underlined link */

What changed: one start edge instead of centring; the name and price close together, the description further away; a bigger name and one strong button; two colours plus neutrals and an underlined link; padding and gaps from the scale instead of 12 px everywhere. The pale grey text (#aaaaaa, 2.32 : 1) became #6b5a4a (6.59 : 1).

چی گۆڕا: یەک لێواری سەرەتا لە جیاتی ناوەڕاستکردن؛ ناو و نرخ لە یەکەوە نزیک، ڕوونکردنەوەکە دوورتر؛ ناوێکی گەورەتر و یەک بەهێز؛ دوو ڕەنگ لەگەڵ ڕەنگی بێلایەن و هێڵبەژێرکراو؛ و بۆشایی لە پەیژەکەوە لە جیاتی ١٢ لە هەموو شوێنێک. دەقە خۆڵەمێشییە کاڵەکە (⁦#aaaaaa⁩، ⁦2.32 : 1⁩) بوو بە ⁦#6b5a4a (6.59 : 1)⁩.

ExerciseڕاهێنانMirror testتاقیکردنەوەی ئاوێنە

Put your redesigned card into a Kurdish page (<html lang="ckb" dir="rtl">) and translate its text. What changes by itself, and what would you have to fix if you had used text-align: left and margin-left?

دیزاینکراوەکەت بخەرە ناو لاپەڕەیەکی کوردی (<html lang="ckb" dir="rtl">) و دەقەکەی وەربگێڕە. چی خۆی دەگۆڕێت و ئەگەر text-align: left و margin-leftـت بەکار هێنابا، چیت دەبوو چاک بکەیت؟

Show answerوەڵامەکە پیشان بدە

With text-align: start and margin-inline-start nothing needs fixing: the start edge, the link gap and the reading order all move to the right by themselves. With text-align: left the Kurdish text would stick to the wrong side, and margin-left would put the gap on the wrong side of the link. Logical properties are explained in Logical properties.

بە text-align: start و margin-inline-start هیچ شتێک پێویستی بە چاککردن نییە: لێواری سەرەتا، بۆشایی و ڕیزبەندیی خوێندنەوە هەموویان خۆیان دەچنە لای ڕاست. بە text-align: left دەقە کوردییەکە دەچێتە لای هەڵە و margin-left بۆشاییەکە دەخاتە لای هەڵەی . لە تایبەتمەندییە لۆجیکییەکان ڕوون کراونەتەوە.

Summaryپوختە

  • Design helps people find, read and act; the look follows the purpose.
  • Hierarchy: size, weight, colour, position and space decide what is seen first; one main action per screen; check it with the squint test.
  • People scan in an F on text pages and roughly a Z on simple pages — both mirrored on Kurdish pages; write headings that start with the key words.
  • Alignment: one start line and a column grid; centre only short things.
  • Proximity and the other Gestalt principles: close, alike or boxed things belong together.
  • Contrast and repetition: different jobs look different, the same job always looks the same — a small design system.
  • White space from a spacing scale in rem: small gaps inside groups, big gaps between them.
  • Balance: symmetric or asymmetric, the visual weight should feel even.
  • Pictures should inform, share one shape and have alt text.
  • دیزاین یارمەتی خەڵک دەدات بدۆزنەوە، بخوێننەوە و کار بکەن؛ ڕووخسار بەدوای مەبەستدا دێت.
  • : قەبارە، ئەستووری، ڕەنگ، شوێن و بۆشایی بڕیار دەدەن چی یەکەم جار ببینرێت؛ یەک کاری سەرەکی بۆ هەر شاشەیەک؛ بە تاقیکردنەوەی چاوقووچاندن بیپشکنە.
  • خەڵک لە لاپەڕەی پڕدەقدا بە شێوەی F و لە لاپەڕەی سادەدا نزیکەی بە شێوەی Z چاو بە لاپەڕەدا دەخشێنن — هەردووکیان لە لاپەڕەی کوردیدا ئاوێنەیی دەبنەوە؛ بە شێوەیەک بنووسە کە بە وشە سەرەکییەکان دەست پێبکەن.
  • ڕێکبوون: یەک هێڵی سەرەتا و ستوونەکانی grid؛ تەنیا شتی کورت لە ناوەڕاست دابنێ.
  • نزیکی و تر: شتی نزیک، لێکچوو یان لە یەک چوارچێوەدا پێکەوەن.
  • کۆنتراست و دووپاتەبوونەوە: ئەرکی جیاواز شێوەی جیاوازە، ئەرکی وەک یەک هەمیشە هەمان شێوەیە — بچووک.
  • بە بە rem: بۆشایی بچووک لە ناو گرووپدا، گەورە لە نێوانیاندا.
  • هاوسەنگی: هاوتا یان ناهاوتا، کێشی بینراو دەبێت یەکسان دەربکەوێت.
  • وێنەکان دەبێت زانیاری بدەن، هەمان شێوەیان هەبێت و بۆیان بنووسرێت.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Colour for the Web: Palettes, Contrast and Themesڕەنگ بۆ وێب: پالێتی ڕەنگ، کۆنتراست و تێمەکان

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.