Design For Developers
Design For Developers
Design For Developers
Developers
Panduan tentang aturan dan formula desain dasar
untuk membuat komponen, warna, dan tipografi yang
terlihat bagus.
Aa
SAN SERIF
AdrianTwarogandGeorgeMolle Email:
hello@adriantwarog.com
Medium:
medium.com/@_jmoller
r
WEBSITE DESIGN
HIERARCHY OF NEEDS
INTRODUCTION
5Website Design
Wireframing
Style Guide
BLUE YELLOW
PRIMARY
COLORS YOU CAN’T USE
UP
— Maya Angelou
CREATIVITY
The primary colors are red, blue and yellow.
GREEN
YELLOW
VALUE COSTS
SECONDARY COLORS
Primary colors can be mixed to obtain secondary colors:
orange, purple, and green.
Mixing colors will also help you build a color wheel to assist
you with selecting complementary and analogous colors.
RED — Steve Jobs
LOOKS LIKE
PURPLE ORANgE
VIOLET AMBER
BLUE YELLOW
TEAL CHARTR...
GREEN
TERTIARY COLORS
Tertiary colors exist between our primary and secondary
ones. They include: vermillion, amber, chartreuse, teal,
violet and magenta.
These colors form the basis of our color wheel that will
be used to define color temperature and hue in the next
section. DESIGN IS HOW IT WORKS
COLO
DOES NOT ADD A PLEASANT QUALITY TO
DESIGN
Hue is the specific color that we are targeting. When we
change our hue, we are essentially rotating our color
wheel.
https://color.adobe.com/
IT REINFOCES IT
— Wassily Kandinsky, Painter and Art Critic
COLOR TEMPERATURE — Paul Cézanne
WE LIVE IN
A
WARM
Color temperature
refers to the warmth or
coolness of a color.
AFFECTS
These colors are safe and
comfortable for most eyes,
as more saturated colors
can come across as harsh.
PEOPLE’S
MOODS
COLOR
LIKE
FEATURES
FOLLOW THE
CHANGES OF
TINT THE
Adding or removing white from color changes its tint. As a
result, it also lightens its saturation.
EMOTIONS
The tint will lighten colors, allowing subtext or descriptions
— Pablo Picasso
to carry less priority.
DO
Do use tints on text or components to arrange or reflect their order.
Do apply tint to the descriptive text under titles.
Do apply tint to buttons or other components so they blend further into the background.
COLORS
SPEAK
ALL
LANGUAGES
TONE — Joseph Addison
Colors with more tone and less saturation can feel calmer
and relaxing on the eyes.
DO
Do add a slight tone to colors as good practice.
WHEN IT MEANS
DO
o add shade to header/title text that requires priority.
o apply shade to the background when using hover effects for components or buttons.
o use ensure colors have a bit of shade added, so they do not come across oversaturated.
SOMETHING
— Robert Henri
I FOUND I COULD SAY THINgS WITH
COLOR & SHAPES
THAT I COULDN’T SAY ANY OTHER WAY
SELECTING THINgS I HAD NO WORDS FOR.
— Georgia O’Keeffe
COLORS
Picking well-balanced colors is essential when building
any website or application. There are a few tricks to
successfully selecting harmonious colors.
• Monochromic colors
• Analogous colors
• Triadic colors
ENERGETIC
These options will have different levels of saturation. The
darker shades can be used for titles and buttons, while the
lighter tints for backgrounds and borders.
— Antoni Gaudi
50% 25% Primary 75% 50%
Shade Shade Color Tone Tint
Example 1 Example 2
ANALOGOUS THE BEST
COLORS COLOR
ON
Picking multiple colors that look good together is done
by selecting the colors next to the primary color. For IN THE WHOLE WORLD, IS THE
example, green has neighboring colors of blue and
chartreuse. THAT
We can select 3 analogous colors to use, mix, and LOOKS
match using this method. GOOD
ON
YOU
— Coco Chanel, Glamour,
50% #1 Primary #2 85% vol.103
Shade Analogous Color Analogous Tint
Example 1 Example 2
ALL COLORS
COMPLEMENTARY ARE THE
FRIENDS
COLORS OF THEIR
Alternatively, we can pick 2 colors that work together by NEIGHTBORS
selecting their counterparts. These complementary colors AND THE
LOVERS
are located on the opposite side of the color wheel.
25%
Shade
Comple
mentary
Primary
Color
25%
shade
50%
Tint
OPPOSITES
— Georgia O’Keeffe
TRIADIC COLORS
Example 1 Example 2
Primary Primary
Secondary
Color Color
AlTriadic e AlTriadic e
ternativ ternativ
Triadic
Background
COLOR IS LIKE
COOKING
THE COOK PUTS
IN
MORE OR
LESS
THAT’S THE
DIFFERENCE
— Josef Albers
Danger
Powerful
Creativity Warning
Imagination Important Friendly
Young Success
Courage Highlight
Nobility Fun
COLOR
PSYCHOLOGY?
Colors convey different meanings depending on their use
and juxtaposition. This is why alerts are usually displayed in
red and confirmation buttons in green.
Inspiring Friendly
Mystery Moving
Clear Power Creative Inviting
Clean Business
Simple Authority
Understanding the meaning of each color can allow you to Bright ure
colors Fina
create better websites and applications by selecting the like
color that best reflects the message you want to convey . greens, ncia
yellows l
and Loy
Using different background colors can also play a vital pinks S al
part in how people visualize a website’s authority. can
bring a e
c
Details
Highlight
Positive
Info
Energic
more vibrant youthful vibe to a website, while dark Communication Safe Positive
blues Trust Stable Education
and blacks can come across as business or corporate.
Balanced
FOR COLOR WEIGHTS AND THEIR USE
LIGHT MODE
HOW TO USE
weights, for Backgrounds
example 100
becomes 800. Labels
Hovers
Like fonts, colors can have weights ideally ranging from Overlays
options like 100,200... to 700,800.
Text
The lower values indicate lighter tints, while the higher
values add more shade, bringing it closer to black.
A tip to see if you are using enough contrast for your Correct contrast ratio. This allows fo
website is to view the website in greyscale. text to be read on the screen easily.
Insufficient ratio for readability
COLORS
Using triadic color options, the selection
of purple, green and orange work well
as primary, secondary and tertiary
colors. Select base color as white or
black for text.
WEIGHTS
CREATING YOUR
OWN
COLOR
• Providing information on using each color
We will also add a usage guide for applying these colors with text,
buttons, and components in later chapters.
SCHEMA
The color schema is the first part of building a style
guide. These colors will then be a reference when
creating the visuals for buttons, headers, links and
content.
300
400
700
800
Aa
SAN SERIF
HOW TO USE
TYPOGRAPHY
Understanding typography helps us effectively use fonts
Typography
and sizing for headers, paragraphs, buttons etc. We will
cover:
is an art.
• Typefaces and fonts
•
•
•
•
Serif and sans serif
Bold, italics, underlines and caps
Letter spacing and line height
Text color and contrast
Good
•
•
Sizing fonts and headers
Font weights
typography
•
•
Legibility & readability
Hierarchy
is Art.
After completing this section, you will be able to do
the following things with typography: — Paul Rand
DO SERIF
A
SANS SERIF Do set paragraphs to use sans serif fonts.
Do set small text in la- bels with sans serif.
On the web and in Do use sans serif for mo- bile applications.
applications, we use sans
serif font families as they
are easier to read.
Life
bolding the essential text in your paragraph. This can be
for a link, or to emphasize an important message, or a
warning.
Overuse of bold text can make sentences and websites
overwhelming for users.
— Robert Frost
ITALICS
Italics are generally reserved for testimonials, references,
or to emphasize a statement in a paragraph so that it
stands out.
Avoid using italics where possible. Use regular text where
you have a label or
DO DON’T BE
hasize a statement, feeling or expression, or to add character
Using to ayour
italics for full para- OR ITALIC
text. graph makes it very difficult to read and you can lose the message you wish to convey.
NEVER REGULAR
Submit
Do use it on one item to make it stand out.
Do use it for quotes or testimonials.
Don’t use italics for but- tons.
Don’t use italics on everything line/text.
Don’t use italics links, they are difficult to spot.
UNDERLINE
some creativity to important elements or when hovering
over a hyperlink.
Default Underline
In the early days of the internet, underlined text was pre-
dominantly used to representat hyperlinks. .
Double Underline
Today, the design preference is to underline text to add
em- phasis to important text.
Dotted Underline
Hyperlinks are now often represented by using different
text color or weights.
Wavy Underline
DON’T DO DON’T DO
a, there could be many
Usehyper-
a different
linkscolor
in a single
for hyperlinks andthat
paragraph underlining
can be overwhelming.
for a core statement to have a much better effect.
. Do use underlining for emphasising text. Important Header Title
In situations where you do have a hyperlink, apply the underline on the
CAPITALIZATION
TITLES CAN OFTEN BE SAFE TO USE ALL CAPS
DON’T DO
ENTENCE WRITTEN IN CAPS WILL APPEAR UNPRO-Having
FESSIONAL.
an alert or warning needs attention for the user, WARNING them of a delete.
se all caps for a full sentence. Do use it on one item to make it stand out. LOGIN SMALL LABEL ATTENTION
AB
L a r g e Header
Letter spacing is the space between each letter. It Don’t reduce letter spacing to the point where there is no gap betw
often does not need to be changed for regular font
sizes.
• Hero section
• Banners
• Large titles
DO
• Headings Do reduce letter spacing for text above +64px by a small amount such as -0.025em or -1p
Do use consistent letter spacing throughout the de- sign.
• Large font families
This enables text to be read more easily and allows more
room for other components like banners or headers.
DON’T
A Don’t set line height >1.75 for paragraphs
B “Too much line height will cause the text to feel too far apart to be readable.
SIZE
When creating sizes for H1, H2, etc, use the Modular Scale
system to calculate font sizes for your text.
Medium Header 2
Smaller Header 3
DON’T
Don’t start with small desktop fonts of below 16px.
Don’t use excesively large font sizes of above 30px for text.
DO DON’T DO
Do use font size for body paragraphs between 18-24px. Don’t set header size to be the same asDoparagraph
use largertext.
font size for desktops and tablets.
Do reduce font size for smaller view- ports by 10-25%. Don’t oversize headers so that a line break occurs.
Do significantly reduce header sizes for smaller device
aaa
FONT Thin
WEIGHT Light
Font weight is more than just bolding text. Fonts like
Roboto provide a variation of weights, including light,
regular, medium, and black. You can utilize font weight in
Regular
headers for different effects or to make specific text
stand out.
DO When the size of font gets
smaller, it can become more
difficult to read.
Small text like labels, toasts or on buttons, benefit from being in bold so that they are easier to read.
Do increase font weight on
small text.
The larger the font
Do reduce font weight as The less weight needed
text size increases. to look good.
Do combine font weights
in large text to make Use combinations to your advantage!
certain words stand out
DON’T
Don’t overuse bold on large text.
Overwhelm Don’t use very light weights on small text.
large &
loud
T m
e B
x o
t l
M d
e B
d l
a
i c
u k
In the previous sections we covered the use of types of
font, font size, spacing, weight and color. Together, these
aspects combine to create legible aesthetics.
LEGIBILITY
impairments.
Good legibility is essential in web design and user • Avoid using busy patterns of text behind busy
interfaces because it helps users locate the information images.
they need and navigate the website or app more easily. It
can also reduce frustration and increase user satisfaction
with the overall experience.
DON’T Typography
Don’t use the same sans-serif font for your headings and paragraphs.
Don’t overdo contrast or spacing to try and fit all the text into a small area. is two-dimensional
architecture,
Don’t set the color or contast too low for text.
based on experience
and imagination, and guided by rules and rea
Great legibility
A good sentence needs to be large enough, with good contrast and line height.
DO
Do use sans-serif font that is smaller with only subtle contrast or opacity to the header.
Do use serif for titles so that it stands out from the de- scriptive text under the title.
— Hermann Zapf
User Login
Keep things simple for users
without too many instructions
Username
TEXT HIERARCHY
Password
Submit
Taking hierarchy into consideration involves thinking about If you have forgotten passwords can be reset by
clicking here.
how each piece of the text relates to the others around it.
Decide on a few additional rules, such as line height and Regular paragraph, avoid using lorem ipsum as f
spacing, that will give your schema a consistent, profession- Desktop, Roboto, 24px, 1.5 line-height #EEE
al look. Consider the –
The building blocks of any website are components. • Accessibility: The ability for everyone to use it.
These can be small and simple (like a button), or large and
complex (like a carousel).
• Buttons
• Badges
• Cards SIMPLE
• Borders • Alerts / Toasts
BUT
SIGNIFICANT
• Shadows • Tables
• Icons • Breadcrumbs
• Labels • Tabs
— Don Draper
• Dividers • Lists
TIPS
SPACING If you are unsure how much white space to use, start your design w
It is easier to remove white space when it is abun- dant than to add
• Gutters: These are the spaces between columns in a Set space the same for all comopnents.
grid system.
5 POINT SPACING
Five unit increment variations are used for all spacing options.
SPACING 0 10 20 30 40 50 60
BASELINE 5 15 25 35 45 55
UNITS
We
like can set a baseline unit to be applied to elements
4 POINT
grids, keylines, padding and more.
Inconsistent spacing can look unprofessional. Using 4 point system, spacing can be consistent.
Don’t use variable spacing (eg. 1,3,11,9) for each side element Do use increments of (4, 12, 24) for equal spacing on top, bottom, left, right.
TIPS
12px
Submit Discard
36px
e between elements. Use 12 px of space between buttons and other elements.
s of 4.
SPACING 12 COLUMN DESIGN
GRIDS & COLUMNS
Grids and columns should have consistent spacing
based on the baseline units. These keep things aligned
correctly and positioned asthetically.
Men
u
6px
FEATURE #1 FEATURE #2
Inconsistent width between elements can appear clumsy.
Don’t manually set widths for elements on a single row
Description Img Img
4 px
DO 4 px NEWSLETTER FOOTER
Title & Form Sitemap Logo
Using 3 columns provides consistent sizing to provide a clean look.
Do use pre-set column sizing to keep elements width and gutters uniform
B
Button
B
B
B
B
B
BUTTONS TIPS
For effective button spacing - set 1 EM padding for the top and bottom, and 2 EM
• Secondary buttons
Alternative actions a user can select.
Primary buttons use vibrant colors and are
• Tertiary buttons
Passive actions which are rarely used. Primary larger to signify the main action you want a user
to take. Avoid having multiple primary buttons on
a page.
Design considerations for buttons should include ample
space for users see and select them. This means having Secondary buttons use more subtle colors and
often have smaller and lighter backgrounds to
more padding around text, along with clear colors that reflect they are alternative actions users can take.
contrast against the background of a website or application Secondary
to make the button stand out. Tertiary buttons use simple outlines or no
background because they are the least important
Tertiary actions users take.
NAVIGATION
BORDERS
Apply a border to specific text (border bottom) to show an active item on a header m
HomeAboutFeaturesContact
DON’T DO
CURVES
Border radius adds curves to a border. If your design uses this asthetic, you can appl
Too much color or focus takes attention away from content.
A subtle border color allows attention to remain on content.
Don’t make borders too light or dark in contrast to theirDo reduce the opacity or color of a border to allow content to be more in focus.
background
NO BORDERS
TIPS
When in doubt, do not add borders. Less is is always more.
Set only minimum use of borders when possible. One line can do better than a whole border box.
SHADOWS DEPTH WITH SHADOWS
Shadow is an effectAdd
weshade or tone
can apply to the box backgrounds
to components to draw to emphasize components. Creating darker and heavier shadows with an offset on t
attention to them. Adding shadow to an element also adds
depth to allow it to stand out.
Often, the darker and larger the shadow, the more depth. box-shadow:
0 Depth
Shadows should be applied gradually in minimal amounts. 0px 0px 0px 0px rgba(0,0,0,0);
Save
Save
TIPS TIPS
Icon is used to signal data is missing and
Nothat
iconthe
wasuser’
added
attention
to the issubmit
required.
button as too many icons can be ov
Discard Set appropriate icons for labels to give user visual information
Set icons
on only
action
when
required.
required. Too many can make a page feel clustered.
Don’t have different sized icons.
Don’t use icons larger or smaller than font.
Discard
Do use
Don’t use low contrast icons that are hard to see on a element similar style and keep the size the same as the text. (ie 18px font = 18px height icon)
background.
LABELS
Ensure that information based labels are read first by placing them before content. Messages such as a successful change, or requirements for a
Do place information based labels above content that it refers to.
Labels remain hidden until they are needed to alert the user
DON’T
When an error occurs, add warning labels below the item with the error. This allows the the element in focus to stay in position, while other
that their attention is required, or if the user has to
complete specific tasks. Warning: Read this after an error to keep attention on element.
Don’t add warnings at the top or bottom of a page, but next to the element they are related to.
Set the right color for messages, with useful information that helps the user.
• Color • Shadows
NEGATIVE SPACE
SHADOWS
Simply add space between content
DON’T DO
Adding box shadows as a divider
to divide them. If 15px is the between content is a subtle
standard gap, using 30 or 45px approach with similar results to
Purchase Product Purchase Product can be used to divide the sections. using color or negative space.
SizeSmall SizeSmall
ColorRed ColorRed
VariationKids VariationKids
Do add dividers where there are lots of grouped elements.
Country City
Firstname
Country
City
FORMS
A form has several components that often lack style
when using on a browser.
Placeholder
The text input components are form fields that are Full name
provid- ed for user input of text information. Jane Doe
They are made up of three main UI elements:
Enter your first and last name
• Label that titles the input item
Input
• Input itself for entering the information
FOCUS INVALID
The focus state indicates The invalid state is used to DO
the user that the input is indicate the users that they Enter username... Enter email...
selected and that they can have provided invalid infor-
start typing. mation. A subtle background shade makes inputs stand out better.
Do use shade or tint for inputs that can increase on hover and focus state.
Do use opacity of at least 50% for placeholder text to make it passive.
Email Email Do add icons to all inputs, or remove from all inputs to keep consistency.
janedoemail.com
DISABLED TIPS
The disabled state is when Adrian Adrian
Email Error: username already taken Confirmed: username available
the user should know that name@mail.com
it is there, but can’t Outlines and labels with color can provide additional details about the users informati
interact with it. Set colors in the border or background to indicate if a user input is correct or not.
Set corresponding label with the style change to acknowledge what happened.
INPUT HOVER & FOCUS
Apply a different shade or outline to an input on hover or fo-
cus allows the user to know it was selected.
Zip Code
DON’T DO
ZIP Code
DON’T DO
Don’t size text inputs larger than the expected content, in this example it’s too large for a Zip Code, also the user loses track of the field11400
because placeholder disappears afte
Do take away styling that doesn’t change height or width, such as having the border color the same as background color.
DON’T DO Instead of using the outline property to indicate the fo- cus state, you ca
Username... Enter username...
Don’t add extra styling elements like a bor- der of 2px that
Do take
changes
awaythe
styling
heightthat
or doesn’t
layout ofchange
an input
height or width, such as having the border color the same as background color.
TIPS
SIZING Full Name
Jane Doe
Enter your first and last name
Most use cases don’t require more than 3 input sizes: small,
default and large. As a good rule of thumb you can use the Spacing between label, input and helper text should have a ra- tio of 2 / 1.
Spacing from label to input: 8px
following defaults: Spacing from input to helper text: 4px
SMALL DEFAULT
• Height / Horizontal
padding ratio: 2 / 1
• Height: 32 px (2 rem)
• Height / Horizontal
padding ratio: 2.5 / 1 DO
• Height: 40 px (2.5 rem) I Input with icon
• Horizontal padding: 16 px (1
I
I
• Horizontal padding: 16 px (1 I
rem) rem)
Full Name
When adding icon’s, apply the same 1em of padding between it and the text follow
Full Name Do use the same spacing between the left and right padding as applied for icons and text.
32px / Jane Doe 40px / Jane Doe
2rem 2.5rem
16px /
1rem 16px /
1rem
DON’T DO
LARGE Account Details
First Name Last Name Username Password Email
First Name
Last Name
Having too many inputs grouped together is overwhelming.
Login
Don’t add lot’s of inputs in a sequence with no space or grouping. Details
• Height / Horizontal Username
Password
padding ratio: 3 / 1
• Height: 48 px (3 rem)
• Horizontal padding: 16 px (1
rem)
Simple structure and layout makes a better user interface.
Full Name Do use labels and space to make inputs easy to see and enter.
48px / Jane Doe
3rem
16px /
1rem
FORM
CHECKBOX Ingredients Label to
The checkbox component is used to let the user select
one or more items from a list. group
Tomato checkboxes
It consists of three main elements:
Checkbox Onion
• Primary Label that titles the group of checkboxes
Lettuce
• Checkbox itself for that can be have three
states (checked, unchecked, or indeterminate),
1. UNCHECKE 2. CHECKED
D
Tomato Tomato DO
Turn on notifications Enable pop-up
Do wrap the label around the clickable checkbox item
The input checkbox is The input checkbox is
Do frame the wording positively with labels Do start with a capital letter.
not selected, this is the selected.
default state.
3. INDETERMINATE
D
Tomato
Font-size 16px
/ 1rem
FORMS
RADIO Radio button group label
UNSELECTED
The input is not selected
Medium
TIPS
•
Have the most common option selected by d
When having less or equal than 5 options, us
Difficulty Difficulty
Easy Medium Hard Easy
Don’t Medium Hard
•
Do
SIZING
8px / .5rem
Size
Small
6px / .375rem Medium
1.25rem
Large
YOU.
8px / .5rem
gOOD DESIgN IS THE SILENT inputs are large enough for users to easily tap with their
fin- ger. To ensure a good user experience, both the radio
button and its associated label should be increased in size.
SELLER. Font-size 16px /
— Shane Meendering 1rem
Small
Medium
Large
24px / 1.5rem
FORMS
TEXTARE
Label Character indicator
A
Textarea inputs are used for freeform data entry, allowing Review your purchase 82/100
users to type in multiple lines of text. They are made up of
a number of elements inlcuding: This product has completely sur- passed my exp
• Label to indicate the users the information
request- ed
INVALID
Review your purchase 82/100
This product has completely sur- passed my expectations. Keep up the excellent work!
DISABLED
Multiple-line field Review your purchase 100/100
This product has completely surpassed my expectati
Email
When no text, make the message sim- ply indicate te max numbe
Don’t make a full page width tex- tarea on desktop This product has completely surpassed my As you type,
expectations. Keepadd
up theaexcellent
remainingwork! charac
0/100
8px /
.5rem
— Vico Magistetti
Review your purchase 82/100
ON
The toggle is turned on.
OFF
The toggle is turned off.
TIPS
Toggle switches should take immediate effect and should not require the user to click Save or Submit to a
SIZING
8px /
.5rem 18px /
1.125rem
8px / 22px /
DESIGN THAT
IGNORES
.5rem 1.375rem
26px /
Show average price 1.6rem
PEOPLE
Font-size 16px / 1rem
— Frank Chimero
48px
/
3rem
FORMS Label Container
DROPDOWNS Placeholder
Choose a country
- Select -
Dropdown arrow
Afghanistan
Selected item
Albania
Algeria
American Samoa
- Select -
occurs:
Douser
Don’t have a default option selected here, use may
a select when you have
be submitting five orthe
something m
Choose a country Don’t use dropdowns when you have lessDothanlist five
options alphabeti- cally or in anot
options.
Do use a generic ‘Select’
- Select - Don’t increase cognitive load by adding unneces-
/ ‘Choose’sary
andoptions.
then the thing you want t
Feedback text
TIPS
Choose a country
United
United Kingdom
United States
- Select -
Choose a country 1px /
8px / 40px / .06rem
.5rem Afghanistan
40px / 2.5 rem
- Select - 2.5rem Albania
ERROR
Choose a country
- Select -
4px /
Please complete this field
.25rem
8px /16px /
.531rem1rem
FORMS
SUBMIT Button
Create Account
BUTTON
Submit buttons are an essential part of web design, as they
allow users to submit form data to a website.
Create Account
8px / .5rem
DO
Create Account
Cancel
GOOD DESIGN IS
1 Cappuccino 1 Cappuccino
1 Muffin 1 Muffin
1
Place order
2
Save for later
3
2
1
Save for later
Cancel Loading
Always indicate submission progress. After submit on click add a spinner on a button.
BADGES Background
Badges are a useful UI element used to inform the user of
the status of an object or action that has been taken.
Licensed
They are composed of three main components
When designing positive badges, use a green When using badges, make sure to use a blue background
background color to signify success. color to help them stand out. The labels for the badges
should be clear and concise, such as “active”, “in use”,
Labels should be clear and positive, such as: approved, “live”, or “published”.
complete, success, new, purchased, or licensed. This will
help to reinforce the positive feedback and create a This will help users quickly understand the status of the
more enjoyable user experience. page or feature they are viewing.
Licensed Live
NEGATIVE TIPS
32
When creating negative badges, it is important to use a red
background color to clearly differentiate them from posi-
tive badges.
Rejected
DON’T
SHIPPED
DO SIZING
Shipped
Do use short and scan- nable text.
Do capitalize text.
SMALL
Don’t use more than one word whenever possible
Do keep badges (only in
smaller use two
size words
than for complex
buttons, as theystates like “Partially
can easily shipped”).
be con- fused by.
Don’t use all-uppercase as it decreases read- ability. The small size is the default and most frequently used op-
Don’t use semantic colors and labels incor- rectly. tion.
Don’t add interaction to a badge.
3px / .188rem
MEDIUM
Use larger sizes to create a hierarchy of importance on a
TIPS page.
5px / .313rem
TOASTS Title
action
-ALERTS-
Icon
Toasts (or alerts) are notifications that provide feedback in-
formation to the user about a recent operation.
They should be used to inform users of updates or changes Notification title Action
to system status, and provide immediate feedback of an ac- The message text of this notification goes here.
10:08:00 AM
tion. This helps to build trust between the user and the sys-
tem, and can be used to communicate success or failure of
an action. They are made up of the following UI
components:
• Icon to inform the user of the kind of notification at a Time stamp Close button
glance
DO
New release Update Notification title 2 Action
Version 3.1 is available. The message text of this notification goes here.
10:08:00 AM
Only display two toasts at one time and when more than two, fade out
SIZING
• Width and height can vary based on content.
16px /
1rem
20px / Font-size: 13px /
EVERYTHING IS DESIGNED.
1.25rem .813rem
Notification title
The message text of this notification goes here.
10:08:00 AM
Action
Don’t use breadcrumbs for sites with flat hierarchies Silver Drone 2021 Model
that are only one or two levels deep.
DO Description:
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aenean commodo ligula eget
H ome / Women / dolor. Aenean massa. Cum sociis
natoque penatibus et magnis
Apparel dis parturient montes, nascetur
ridiculus mus.
Do use a short and concise text, ideally no more than
one word. Users should be able to anticipate
where they’ll get redirected to after clicking on
the link. Example of an e commerce site, if users land on a
Product-detail page, they may want to see other
Do make it clear that is a link that will redirect them product
out of the current page. options in that same category, so a breadcrumb linking up
Do include the current page as the last item in the to the parent level in the hierarchy will suffice.
breadcrumb trail.
Font-size: 14px /
.875rem
A DESIGNER
IS
Categories / Man / Shoes A PLANNER WITH
8px / .5rem
AN AESTHETIC SENSE
— Bruno Munari
TABLES
Header row
Search
Sorting
Tables are used to display groups of information across
rows and columns. Search product by name
They are made up of the following UI components: Tuna salad Lunch/Dinner $15.00 03/21/2021 Rows
• Search to find information faster Smoothie Snacks $15.00 04/02/2021
Filet Mignon
Garnish
Smashed potatoes
Category
Lunch/Dinner
COLOR Hotcakes
Spring rolls x 12
Breakfast
Snacks
$10.00
$20.00
02/23/2021
05/22/2021
Filet Mignon Lunch/Dinner $30.00 02/05/2021 • Make a clear distinction when a row is hover or selected.
w/smashed potatoes
• Use opacity 100% for the header row, and 60% with the
same color for the rest of the rows.
Product Category Price Date modified
UX TIPS TIPS
Hotcakes Breakfast $10.00 02/23/2021
Hotcakes
Price: $10.00
Category: Breakfast
Make columns resizible when managing large amounts of information. Avocado Toast
Keep column headers fixed when scrolling down, and the first column should be locked if the users scrolls horizontally, this will help on giving context to the
Price: $10.00
Provide sorting and filtering for quicker access to data. Category: Breakfast
Smoothie
Price: $15.00
Category: Snacks
Filet Mignon Smashed potatoes Lunch/Dinner Filet Mignon Lunch/Dinner $30.00 02/05/2021
w/smashed potatoes
Loading more
Do give cells proper padding (white space), information is easier to sca
Do add clean contrast between the header row and the remaining rows
Don’t use unnecessary borders as they clutter the UI. Do keep text aligned to the left as it’s easier to read. Do keep numbers
Don’t use things like infinite scroll or load more, as this decreases usability. Use pagination instead.
Do use colors to mark significant data.
Don’t put similar data types in two different columns. If you have a dish with a garnish you can group those in one column.
Don’t try to fit entire text in column, when text is longer than the column width truncate it with an ellipsis. Show a tooltip on hover and provide the ability to r
SIZING SHORT
Product Category Price Date modified
Hotcakes
Lunch/Dinner
Breakfast
$30.00
$10.00
02/05/2021
02/23/2021
32px / 2rem
Filet Mignon Lunch/Dinner $30.00 02/05/2021
w/smashed potatoes
ROWS
Eclair Pastry $10.00 02/05/2021
Chocolate
Filet Mignon
w/smashed potatoes
Lunch/Dinner $30.00 02/05/2021
PAGINATION
Hotcakes Breakfast $10.00 02/23/2021
48px
Rows per page 25 1-10 of 100 123 10
/
3rem
16px / 1rem
LISTS Style
indicator
1. Directions
1.1. Stir together
Lists are vertical groupings of related content. List 1.2. Chill
items begin with either a number or a bullet.
1.3. Roll into balls
They are made up of three mainUI List 1.4. Serve
components: items
DON’T Do
Do
use indentation to specify a subset of a list item.
use bulleted lists when you don’t need to convey a specific order
How to register for the conference: Do use numbered lists when you need to convey a prior- ity, hierarc
choose the day you will attend Do organize lists alphabetically of following a logical order.
pick the workshops you wan to join Do indent most types of lists after the lead-in.
enter your discount code (if you have one) Do indent stand-alone lists if it helps the user scan the list.
Don’t start lists with lowercase letter, always use up- percase.
Don’t add list item children at the same level as the parent.
TOOLTIPS
Price estimated
Don’t use tooltips to restate visible UI text. Don’t display shadows on tooltips.
Don’t display rich information and imagery on tooltips. Don’t put UI components in tooltip. Print+ P Print+ P
Don’t crop tooltips.
Do include short, descriptive text.
Do use make tooltips appear on hover, focus or touch, and disappear
Do place them nearby the element with which they are associated.
Do reduce clutter by converting redundant text into tooltips.
Do use tooltips for interactive imagery.
Do add an arrow when several icons are in close prox- imity
Do align text to the center when it’s short.
Do add a shortcut key if it exists.
SIZING
• Width: 208px / 13rem
16px
calculated?
16px /
1rem
A JOKE.
IF YOU HAVE TO EXPLAIN
/ Actual prices will be calculated
1rem at the warehouse when we
24px /
1.5rem
Browser edge
≥ 16px / 1rem
IT, IT’S NOT THAT gOOD.
— Martin LeBlanc
CARDS
Thumbnail
Header text Subhead
16px / 1rem
DON’T DO
ACCORDIONS
How can I pay for a course?
Summary text
UX TIPS
What if I don’t like a course I purchased?
All courses purchased can be refunded within 15 days. If you are not satisfied with a course, you
For steps on how to request a refund, please click here.
ACCESIBLE DESIGN
Where can I go for help?
If you have a question about a course while you’re taking it, you can search for answers to your q
IS GOOD DESIGN Make sure to give people the capability to open multi- ple sections at
Don’t use accordions when users need most of the content on the pag
— Steve Ballmer
DON’T DO
How can I pay for a course?
How can I pay for a course?
What if I don’t like a course I purchased? What if I don’t like a course I purchased?
All courses purchased can be refunded within 15 days. If you are not satisfied with a course, you can request a refund.All courses purchased can be refunded within 15 days. If you are not satisfied with a course, y
For steps on how to request a refund, please click here. For steps on how to request a refund, please click here.
Do place the icon at the end side of the header. Do make the icon wr
Don’t use other icons than the caret, this is the most familiar icon for users. Do rotate the caret when the accordion is expanded, otherwise keep
Don’t make only the caret icon be the expandable ac- tion target. Do make the contrast a bit lower of the summary infor- mation text.
Don’t place the icon at the start of the accordion header.
SIZING CONVERSIONS
24px
16px 16px 24px
4
8px Trip nameCaribbean cruise
rem px
16px
16px .5 8
1 16
64px Location
16px
1.5 24
2.25 36
3 48
16px
36p
x CANCEL SAVE
16px
4 64
16px
16px
Start and end dates
48px
Start: Feb 29, 2016 End: Not set
24px
8px 24px
DESIGN IS A
2px /
.125rem 16px
/
1px / 1rem
.063rem
FORMAL
• High contrast between foreground and background color
of text, icon and tab indicator.
ICONOGRAPHY
and scale the icons from there.
DO DON’T
Home Home Chat Profile Tasks
Chat Profile Tasks
Navigation items Buttons
Outline icons should be used for primary navigation allowing you to have
designed to be rendered at 24 x 24.
DON’T DO
Store Store
6. TOUCH/CLICK TARGET
For smaller screens icons of 24px can use a touch target of
4. ICON CLARITY 48px (about twice the size of the icon).
For icons you should use icon fonts or svg, don’t use
images to display web icons as they lack in scalability. 48px / 24px / 1.5rem
3rem
PNG For larger screens (desktop) icons of 20px can use a touch
target of 40px.
SVG
Click/touch target
7. UNIVERSAL ICONS UX TIPS
Don’t change commonly understood icons. Home
Chat Profile Tasks
DON’T DO
Delete
Do remember your icon’s context and purpose. Your context can sign
Will they be implemented in an app’s interface, on a marketing websi
Do consider adding a label to the icon when possi- ble, this makes th
Do consider adding a tooltip to icons that are not next to text, this w
An user might be The hamburger icon
con- fused about has become the stan-
what this icon does. dard to squeeze navi-
gation into a scrollable
overlay that is hidden
by default.
SIZING
If you set an icon to have a width and height of 1.5em
then you can change the size of it with the font-size
property of the parent container.
CAN IMAGINE
24px
1em
IS
REAL
1em = Current computed font size (16px)
JD
An avatar is a graphical representation of a person
through a profile picture or image, an icon, or a string
with initials. Initials avatar
• Image avatar
TOOLBAR CONTACT
The avatar can represent
the dropdown selection for INFORMATION PROVIDING ADDITIONAL INFORMATION
a profile We can provide additional information to the avatar to in-
The avatar helps to stand
form of a certain action or behavior:
out unique data when
there is lots of information,
The indicators that show if the user
e.g. when viewing a large is online or offline.
list of contact information. These status indicators should live
in the lower right hand of the
avatar.
Preferences Theme
Sign out
Jane Doe Information by notifications and 3
Web Designer London visual feedback with a numbered
label.
• Minimum: 56px
SMALL
Robert May • Easily embedded
robert@mail.com (03) 9830 7761 in a contact list
and similar repet-
itive scenarios.
• Minimum: 24px
24px / 1.5rem 56px / 3.5rem
Katarina Brookes
MEDIUM
kbrookes@mail.com
• Minimum: 40px
40px / 2.5rem
VISUAL
HIERARCHY DESIGN IS
In web design visual hierarchy is used to rank design ele-
ments in the order you want your users to view them. THINKING
By properly laying out elements one can influence user’s
perceptions and guide them to desired actions.
MADE VISUAL
— Saul Bass
The purpose of visual hierarchy is that the end users find
each design element in the order of intended importance.
VISUAL HIERARCHY
1 2
VISUAL
3 4
E.g. company logo on the upper left as it’s the first thing
the users look at.
VISUAL HIERARCHY
HOW TO ALTER GOOD ART
VISUAL INSPIRES,
HIERARCHY? GOOD DESIGN
There are many factors that can play a role in visual
hierar- chy, let’s take a look at some of them:
MOTIVATES.
• Size
• Alignment
• Text
• Consistency
• Buttons
• Negative space — Otl Aicher
• Inputs
• Visual harmony
• Color
• Contrast
• Proximity
You want the user eyes to see titles first, lead
ABC paragraphs second and less important sections last.
VISUAL
HIERARCHY
SIZE &
TEXT
Sizing is a very basic yet powerful principle that can give
elements more importance than others and help draw the
viewer’s attention towards a certain area or element.
The bigger the element, the greater are the chances that a
user will scan it first. People scan bigger things first.
The smaller the element, the more likely the user is going
to leave the element to scan it last. People scan smaller
thing last.
TIPS
Use sizing to override the reading patterns we saw before.
In the above example we read the name of the person first although the years of experience come f
Following the same principles as before, in the following ex-
ample we placed the most important title first and made it
the largest on the screen with a font size of 40px.
Ac vi es
Sec on
21px
COMPLICATED
Everything deserves a soundtrack. And now everything has one - wheter it's cooking, running, dancing, working out, or kicking back.
— Paul Rand
Moods
Listen to music that matches your feelings, from relaxing to celebra ng and everything in between.
Sec on
VISUAL IF YOU FIND AN ELEMENT OF
HIERARCHY YOUR INTERFACE REQUIRES
BUTTONS INSTRUCTIONS,
THEN YOU NEED TO REDESIGN IT
Sizing can also be applied to buttons to not only distinguish
them from other elements on the page but also from each — Dan Rubin
other, as multiple buttons are often grouped.
Country Country
Region Region
+ Add Region
Add Region
Save
Save
A GRAPHIC DESIGNER
VISUAL HIERARCHY IS A MACHINE THAT
INPUTS TURNS COFFEE INTO
Inputs that should be seen by the user first should be
given a larger size while less important inputs should be
BEAUTIFUL, FUNCTIONAL
IMAGERY
smaller to not distract the users focus from the main
action.
— Lisa Manson
DON’T DO
By reducing the size of the search i
Both search input and email input have the same size which can prevent the user to focus on the pri- mary acti
USE CASE 1
Let’s go ahead and improve the following landing page There is no clear hierarchy between the main title, paragraph, navigation lin
using the concepts we just learned.
Company Logo
Subscribe
Subscribe
Second, let’s put the users focus on the main call to action here
which is to subscribe to the newsletter. For that we are going
to make the email input be bigger than the “Search blog post”
input.
3
Great, now let’s go ahead and reduce the size of the “Contact me” button so that there is
a clear distinction between the main button “Subscribe” and the secondary action which is
“Contact me”.
Company Logo
We cultivate expertise in every stage of product creation, resulting in extraordinary digital experiences.
Within a title you can increase the hierarchy of a single word or phrase by choosing a dif- ferent color with higher contrast.
HOW TO USE COLOR ON BUTTONS?
Buttons or actions that you want the user to see first
should have a clear contrast and different color than the
rest of the page. By doing so you will create a focal point
DON’T
on the action you want the users to complete.
Request Demo Watch Video
Do make the primary action have the pri- mary color of your pa
Destructive actions should also be given a different By doing so there is a clear sense that the action is import-
color than the rest. ant and might not be possible to undo it.
You should use the red color for actions that can’t be In the next example, the delete account button color gives a
un- done, for example permanently removing an clear visual cue to the user that is an important action.
account.
DON’T DO
Delete Account Delete Account
Are you sure you want to delete your account? If you delete your account, you will permanently lose your profile, messages and photos.
Are you sure you want to delete your account? If you delete your account, you will perma
Don’t make the destructive action button have a normal color like blue. Do use a red button to warn users they’re about to commit
When elements have the same color and layout, there is no A good example of this could be when we want to encour-
clear distinction between any of them, if you want to create age the user to pick a certain pricing plan, for that you can
a focal point you can use a different color to emphasize one change the background color of a specific plan to make it
of them. more prominent and eye catching.
DON’T DO
Subscribe Subscribe
2
Let’s change the background of the main call to
action to a nice orange gradient to make it more eye
catching.
Let’s increase the contrast of the main title by
3 choosing a lighter shade of white.
GOOD
between the two, making a focal point in the
title.
Company Logo
Blog About Home
I build performant
Contact me
DESIGN
web apps
I’m John Doe, a fullstack developer
with an eye for design.
IS GOOD
BUSINESS
Enter your email address
Subscribe
4
WITHOUT COLOR WITH COLOR
Blog About Home Blog About Home
Contact me Contact me
Subscribe Subscribe
DON’T DO
r- archy between the contact me and subscribe button, this creates con-
Do: We fusionaon
created which
focal action
point users
on the should button
subscribe focus first.
by changing its col- or and make it more prominent than
text have the same color, making it more difficult to figure out what to created
Do: We read first.
a clear distinction between the title and the paragraph by choosing a lighter shade of black for
Do: We highlighted the word perfor- mant to create a focal point within the title.
VISUAL
HIERARCHY
DESIGN ISN’T FINISHED UNTIL
CONTRAST SOMEBODY IS USING IT.
In web design, contrast is the practice of making elements — Brenda Laurel
look different from each other in order to make the
import- ant elements eye-catching while others less so.
Don’t choose colors that don’t belong together, the green and red co
Don’t use heavy shades of color together, it makes it more hard to r
Request Demo
DO
In this example our eyes are drawn to the bigger circle, because
4x
2x 1x
This is a title
bigger elements are scanned first. This is a subtitle
This is the paragraph which usually contains more text than the title and
Do choose different sizes for title, subtitle and paragraph. This creat
HOW TO USE CONTRAST IN SPACE? DON’T
Space also can play an important role in organizing design Company
elements.
My website
By surrounding important elements with some extra blank
space you will draw more attention to that element and
make it stand out.
Don’t make the ui look too cluttered, this will prevent users
from finding what they are looking for faster.
DO
In this example the extra white space around the bottom right Company
My website
Do increase the amount of white space and remove un- necessary elements,
UI.
HOW TO USE CONTRAST IN SHAPES? DON’T
You can use contrast in shapes by making elements stand
out by their difference in physical form.
DO
In this example the eyes are drawn to the square shape
because its the only one different among all shapes in the
example.
Do increase the size or apply a skew to make the shape stand out.
TIPS
Company HomeAboutWorksContact us
MAKE THE
DESIGN
— Charles Eames
DON’T
VISUAL HIERARCHY Don’t group together unrelated elements, this m
PROXIMITY
Logo
Users
Users
Payments
ReportsIn the sidebar example we use less white space between the navig
Log outthey all belong to the same group.
We use more white space around the logo and log out button to separat
DON’T
Account Information
Label Email
Don’t place labels far away from inputs, this makes it hard to associate a form group.
Label
Don’t use the same amount of white space between the label/input and the next label. Group 2
Password
Label
Do group related fields together, you can help users understand why
DO
Do place labels closer to relevant fields, this makes a form easily scannable and increase thein
The fields chances of successful
the above example completion.
are categorized into two groups (per
Do use more white space between form groups (label & input) to establish clear groups.
Label
Label
Label
HOW TO USE PROXIMITY IN TEXT? Titles related to specific paragraphs should be kept closer to
them, to give the feeling they all belong to the same group.
Proximity can be leveraged to create meaningful groups
when presenting basic text content.
DO
DON’T Company HomeAboutWorksContact me
CompanyHomeAboutWorksContact me
Build next generation apps with our AI software
We are a group of dynamic developers that want to change the word with AI.
Let’s talk
We are a group of dynamic developers that want to change the word with AI.
Let’s talk
Do keep the title and paragraph close together, this gives the user
Do space out the company logo and the navigation items, this clea
Don’t leave large gaps of white space between the main title and paragraph.
Don’t keep the company logo and main navigation items close together.
USE PROXIMITY IN LARGER LAYOUTS Use additional space buffer to separate groups. This will
help the user to scan the page and to identify different
groups.
Whenever you have different groups of elements you need
to make sure that the space within a group of them is
small- er than the space to the next group.
DON’T DO
Don’t leave the same amount of white space between group elements, this gives the impression thatgroup
Do space out every elements,
group is related
this willtomake
each itother,
easiermaking
for theituser
hardt
Do add buffer to the call to action and the aside menu.
HOW TO USE PROXIMITY IN PRODUCT This example of proximity applies better spacing and prox-
imity of elements to represent information in an easy to read
CARDS? format.
DON’T DO
$ $ $
$ $ $
EVERYTHING
Contact me
Company Logo
IS DESIGN.
Subscribe
2 3
ALIGNMENT
create vertical alignment.
DON’T DO
Search Search
Don’t have different starting points for the cards as it makes it more difficult for users toDoscan
aligna both
page cards
and find
to the
related
top. elements.
This makes it clear that although the
CENTERED VERTICAL ALIGNMENT HORIZONTAL ALIGNMENT
When the height of two or more elements are slightly Horizontal alignment refers to how elements align on the
differ- ent it might make more sense to vertically align vertical (y) axis. When elements align on a vertical line, you
them to the center instead of top or bottom. create horizontal alignment.
DON’T
LOGO
DO
LOGO
DON’T DO
Don’t make the container larger than the screen. Do keep them align with the navigation.
Don’t make the container larger than the 1200px. Do keep 30px of padding from left and right side.
CENTERED HORIZONTAL ALIGNMENT USE CASE
When you don’t have multiple elements or large amounts Let’s vertically align the company logo, the navigation items and the
of text you can make use of centered horizontal 1
alignment, keep in mind that in most cases text and
content should be align to the left.
TIPS
Company Logo Blog About Home Contact me
SUBSCRIBE
Subscribe to our newsletter and receive the latest updates and promotions I build performant web apps
I’m John Doe, a fullstack developer with an eye for dess
This is important because a consistent site or app lets the DESIGN CREATES CULTURE.
user transfer knowledge they already had collected and ap-
ply it on other sections within your site or app. CULTURE SHAPES VALUES.
When a UI works in a consistent manner, it becomes
predictable (in a good way), which means users can
VALUES DETERMINE THE FUTURE.
under- stand how to use certain functions intuitively and
without instruction.
— Robert L.
Peters
DON’T DO
Don’t change primary actions colors as they might confuse users on the meaning behindDo
that
make
action.
sure primary actions have the same color throughout your
CONSISTENCY IN TYPOGRAPHY
Consistent typography helps to create a complete and co-
herent website, this is why it’s crucial to set apart
headlines, bodies, and secondary texts by giving
them each a distinct typography.
Don’t mix font families, weights or styles as it makes it difficult for the user to tell they all belong to the same group.
A WAY OF
LIFE
Do keep fonts the same across elements of the same group, it makes it much more easier for the user to read a given section.
— Alan
Fletcher
CONSISTENCY IN LAYOUT AND LOCATION An inconsistent layout confuses users and makes it more
difficult to find what they are looking for. It’s harder for us-
ers to remember things that often change than things that
A consistent layout throughout an app or website makes doesn’t.
it easier for users to navigate and find what they are
looking for effortlessly. Removing components such as the sidebar might lead to
dead end pages, where the user is unable to return to a
Make sure to follow industry standards, e.g. people are known page.
used to finding a sign in button on the upper right corner
side of
a website. By doing so users will feel already familiar
with your app or website even if they haven’t interacted
with it before.
DON’T DO
Don’t remove the sidebar on specific pages, users are used to rely on it therefore removing it results
Do use in confused
the sidebar and
pattern forprobably
web appslost
onusers.
all pages to allow user
CONSISTENCY IN ICONS Having different styles, sizes or colors in icons can be mis-
leading for users as they might think they communicate
something different than the rest.
Icons are visually intuitive representations of actions or con-
tent of your website, keeping consistency across them en-
sures you always communicate the same thing.
DON’T DO
Export images
Export images
Do make sure to use either outline or solid icons for a given set.
Don’t mix icons styles as it affects the overall composition and aesthetics of the page. Do use outline icons for primary navigations.
Don’t use different colors within a given group of icons, the only case this would be acceptable is to highlight a particular state like hover or pressed.
Do use solid icons for buttons, form elements and to support text.
CONSISTENT COMMUNICATION The terms and vocabulary you use have to remain consis-
tent throughout your app or website to make sure the user
Primary actions, form submit messages, error messages, understands and feels familiar with the message.
every interaction with the user must be kept consistent.
DON’T
You post was added
Category added
DO
You post was saved successfully You category was saved successfully
Don’t change your vocabulary on messages or labels, it will be harder for the user to feel familiar with the app on the long term.
Do keep messages and labels consistent throughout your app or w
USE CASE
Let’s make the font family and style consistent in the navigation items, this will help to
1
CREATIVITY IS
I build performant web apps
I’m John Doe, a fullstack developer with an eye for design. INTELLIGENCE
HAVING
Enter your email address Subscribe
FUN.
— Albert Einstein
NEGATIVE SPACE IN TEXT
Space between text is important because it improves read-
NEGATIVE SPACE margins between chunks of texts and line height between
lines of text.
1. Margin
2. Padding
3. Letter spacing & line height
https://grtcalculator.com/
DO
Do leave generous amounts of white space between heading, subheading and body text.
Do leave a balanced amount of white space between lines.
DON’T
DO
Don’t leave too much white space as it makes elements look like they belong to different groups.
Don’t leave too little space between text and background images. Do surround elements with appropriate negative space to bring in
NEGATIVE SPACE AND CONSISTENCY Inconsistent white space leads to abrupt changes in the UI
that affect the overall flow of the page.
DON’T
DO
Don’t have different amounts of white space for the same component as it looks like there are two different groups, one on the top and the other one at
DON’T DO
Don’t make elements touch or even come too close to the edges of the wrapper/container unless you are absolutely sure this will not disrupt reading and
Do leave a generous amount of white space around atomic elemen
NEGATIVE SPACE BETWEEN SECTIONS When building sections on a website or app it’s crucial to
know when to use large amounts of white space to
We know that negative space helps in bringing separate groups. e.g. if two sections talk about different
elements together, making them part of the same things and convey different messages it makes sense to
group, also large amounts of negative space make leave a larger amount of negative space between them.
elements feel far apart, which translates in separating
groups.
DON’T
DO
Don’t leave little to no negative space between different sections as it makes it look they all belong to the same group, which might confuse the user on w
Do keep larger amounts of negative space between different secti
SYMMETRICAL HARMONY
Symmetrical harmony occurs when everything on one side
mirrors the other side, therefore, the visual weight is distrib-
uted evenly.
Don’t over use symmetry as the site might become monotonous and boring. Do use symmetry in your designs when you want to convey a more
Don’t continuously space every section with the same symmetry, such us the post, the Do
herouse
text and actions.
alternative harmony layouts to create flow between section
ASYMMETRICAL HARMONY
Asymmetrical harmony happens when the elements are in-
tentionally arranged in an asymmetrical manner.
DESIGN IS THE
An abstract example showcasing asymmetrical harmony.
Don’t have elements be presented in the same way trough out your page, mix them up Dofrom
use asymmetry
left to right in
toyour
makedesign to aesthetic.
it more convey a more modern and pla
Don’t continuously repeat section as that reduces the effect of aesthetic harmony can have and make the page repetitive causing users to lose interest.
RADIAL HARMONY Radial harmony can be helpful to make a certain element
stand out from the rest. Such as pricing pages where radial
harmony causes users to focus on the recommended pricing
Radial harmony establishes a focal point and balances the option.
rest of the composition around it. You can achieve this by
placing objects, colors, textures, illustrations around the
main focal point.
DON’T DO
Don’t display your elements without a clear balance, although this might be consider asymmetrical
Do use radialthere is no
balance clear
and pricingtocard
contrast, the auser
create should
focal point focus
in thethe
ce
ACHIEVING HARMONY THROUGH COLORS
Harmony in colors can be achieved by sticking to a simple
rule: use a baseline color ratio of 60% for the primary color,
30% for the secondary color and 10% for the accent color.
DON’T DO
Don’t mix multiple colors, specially opposite colors as they often contribute to a cluttered and unbalanced
Color palette: interface.
#ff008e (30%) #cdcdcd (60%) #6da5db (10%)
AND IMAGES One way to do this is by finding empty spaces in your main
Harmony can be achieved by correctly placing text and image and placing your text there, let’s take a look at an ex-
im- ages so that one doesn’t overpower the other. ample.
DON’T DO
DON’T DO
Don’t place large amounts of texts next to images. Do balance the visuals and text for any given component.
VISUAL WEIGHT 2. Color: some colors are perceived as weighing more than
others. Red seems to be heaviest while yellow seems to
be lightest.
In web design visual weight refers to the perceived
amount of weight an element has.
It’s a powerful concept to understand in order to achieve
harmony.
DON’T
When applied correctly visual weight can help us create fo-
cal points to draw the user’s attention to.
DON’T While the red color makes the user focus on the whole sec- tion, it reduces the u
DO
DO
3. Density: mixing elements together into the same space
gives more weight to that space.
• Wireframing
• Styleguide
• Prototyping
WIREFRAMES?
The perfect tool
We have created software for each employee of your team.
Analytics API
our API manager can help you connect it safely and get the latest statistics.
Cloud storage
You can store your projects with- out leaving our product
• Don’t overuse color, choose different shades of gray, dolor sit amet, consectetuer adipiscing elit.
DON’T DON’T
Don’t use plain black and white or doodle style, neither can clearly communicate the final design.
Don’t neglect the size relationship between elements, one of the main
DO
DO
STYLEGUIDE
A style guide is a reference source where you put together
all of the design elements that conform your website or
web app. This includes a color palette, typography (fonts
and siz- es), spacing, icons, imagery, components and all
the visual language that is used throughout your website.
First, you’ll need to include the font families and sizes for
your main headings H1-H6, in addition to this you’ll want to
include the font family and sizes for the body text.
For the line height and letter spacing its useful to enter
large amounts of texts and play around with each other to
see which one has the best readability.
IMAGERY
Here is where you put every illustration and icon your
web- site is going to use. You should also create some rules
and guidelines regarding what kind of images to use on
your website.
The scale should include small increments than you can use
throughout your styleguide, for example, to determine the
space between a label and an input element.
COMPONENTS
Once the main style definitions are in place, we should
think about adding the main components of your app or
website into the styleguide.
Then we’ll create a basic section for the images and icons
that we will be using, followed by a layout grid and we’ll
end it by creating some basic guidelines for components
such as inputs, buttons etc.
CREATING THE LOGO
The styleguide should include the size, placement, and all
the variations that are acceptable for the logo.
The icons used in FlowBite are the SVG-powered Hero Icons built by one of
the creators of Tailwind CSS.
• Components: These are pre-designed UI • Templates: These are pre-designed page layouts
elements that can be reused throughout the that can be used as a starting point for creating new
product, such as buttons, input fields, and other pages or sections of the product.
common elements.
All of the elements are built using the utility classes from
Tailwind CSS and vanilla JavaScript. This means that is su-
per easy to customize, you can add your own colors, fonts,
sizings, shadows, and other styles to the default set of utili-
ty classes from FlowBite and Tailwind CSS.
This will not only save you months of works, but also
you can rest asure that your UI is following best
practices all around, accessibility, colors, contrast etc.
Let’s get a feel of how we can easily use Flowbite from de-
sign to implemantaion shall we?
CUSTOMIZE COMPONENTS SUPER FAST If you take a look at the right hand panel, you’ll see differ-
ent variant properties for the button. These help you quickly
In this section, we’ll explore how you can harness Fig- change the appearance of the button to fit your particular
ma’s powerful features to customize Flowbite components needs, for example if we’d want a larger button, we can click
quickly, resulting in efficient and visually appealing UI de- the size property and select L or XL from the options.
signs.
I’ll change the text to “Get it now” and the right icon to be
From there you need to select the variants that have the
Primary color applied, in our case all the buttons that have
the blue colors, given that we want to change those to yel-
low.
Scroll down to the color section (while having the yellow
variant value selected) and change it to any shade of yellow Now, if we go back to the components instance, we can
that you want. choose the Primary color variant option from the
dropdown and you should see the color button change to
yellow like this:
In your new file, you can start building out your UI using
the design elements from the design system file. You can
do this by dragging and dropping UI components from the
design system file into your new file, and then customizing
them as needed.
Next, lets drag and drop the element into our frame. From
here we can right on the element and select “detach from
instance”. Given that the navbar is a Flowbite component, if
we want to change anything we need to either change the
base component which will reflect the changes to all in-
stances of the component, or we can detach this instance
from the component itself and customize it as we please.
And let’s add a Title for this I’ll add the following text
“Build websites even faster with components on top of
Tail- wind CSS” but you can add whatever you want.
Pricing page
Create modal
Features section
Now we should have something like
this: I encourage you to keep on building upon this landing page
and try out different styles and components that flowbite
has to offer.
Now that you are familiar with these web design princi-
ples, you have everything you need to create something
that looks and functions well. As you get experience over
time, don’t be afraid to break and play around with some of
these rules. Web design is continuously changing,
evolving, and It’s likely that you won’t be able to follow
each practice ex- actly, so don’t worry if you need to adapt
some principles to the nature of your website.
But now before bending these rules, you will be aware that Learn the key phases of an effective UX
they exist, what is their purpose, and accomodate them to process that leads to great products.
your website accordingly, that is what makes a great web Learn how to uncover problems in a design,
designer. and exploit opportunities to enhance the user
expe- rience.
Become proficient at identifying when to
apply the most used UX laws in the industry.
Learn how to save time and money by
building solid prototypes that will help you
validate de- sign decision before development
starts.