This project contains guidelines on how to design beautiful websites.
-
Use a font size between 15 and 25 pixels (Body).
-
Use (really) big font size for headlines.
- EXAMPLE: 60px.
- NOTE: The more you increase the font size, the more you need to decrease the font weight.
-
Use line spacing between 120 and 150% of font size.
-
Maintain 45 to 90 characters per line.
-
Use good fonts (a bit subjective)
-
Sans-serif
- More Neutral
- Clean
- Simple
- Modern websites
-
Serif
- Traditional purposes
- Storytelling
- Long reading
-
EXAMPLE:
- Sans-serif
- Open Sans
- Lato
- Raleway
- Montserrat
- PT Sans
- Serif
- Cardo
- Merriweather
- PT Serif
- Sans-serif
-
-
Choose a font that reflects the look and feel you want for your website.
-
Decide: sans-serif or serif typeface?
-
Use a good font.
-
Use only that one typeface.
-
Use only one base color.
- A list of base colors can be found here.
-
Select a darker a lighter version of that color for your palette.
- A tool to achieve this can be found here
-
Use color to draw attention.
- NOTE: You can use a color wheel tool to mix colors. An example of such a tool can be found here.
-
Never use black in your design.
-
Choose colors wisely
Color makes a difference. This happens because there are psychological effects behind each color.
Red
: power, passion, strength, and excitement.Orange
: cheerfulness, creativity, friendliness, confidence, and courage.Yellow
: happiness, liveliness, curiosity, intelligence, brightness.Green
: harmony, nature, life, money, and health.Blue
: patience, peace, trustworthiness, stability, professionalism, trust, and honor.Purple
: wisdom royalty, nobility, luxury, and mystery.Pink
: romance, passivity, care, peace, and affection.Brown
: relaxation, confidence, earthiness, nature, durability, comfort, and reliability.
NOTE: Brighter tones are more energetic, while darker tones are more powerful and elegant.
-
Put text directly on the image.
NOTE: This only works if the image is quite dark and your text is white.
-
Overlay the image with a color.
NOTE: The simplest way to do this, is by using the color
black
. -
Put text in a box.
NOTE: The box should be opaque.
-
Blur the image.
-
Floor fade.
NOTE: This works when you are planning to put the text at the bottom of the image.
Here is a list of example CSS code for some of the effects. Please change it according to your needs.
- Overlay the image
.darken {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(YOUR IMAGE HERE);
}
- Put text in a box
.text-box {
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
display: inline;
padding: 10px;
}
- Floor fade
.floor-fade {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6) ), url(YOUR IMAGE HERE);
}
-
Use icons to list features/steps.
-
Use icons for actions/links.
NOTE: Here are some rules to follow when applying this concept.
- Icons should be recognizable.
- Label your icons.
-
Icons should not take center stage.
-
Use icon fonts whenever possible.
NOTE: icon fonts use smooth vector images instead of raster images to display icons.
-
Use whitespace
- Put whitespace between your elements.
- Put whitespace between your group of elements.
- Put whitespace between your website sections.
- Don't exaggerate with whitespace.
-
Define hierarchy
Whitespaces describe invisible relationships between the elements of your website.
- Define where you want users to look first.
- Establish a flow that corresponds to your content's message.
- Use whitespace to build that flow.
-
Most of your content will be text, so beautiful typography is a key element to a good-looking website.
-
Images are getting more and more important in web design, so choosing great images and putting text on them is an essential part of your work.
-
Icons are also a good way of setting a friendly tone for your website but use them carefully.
-
The adequate use of whitespace makes a website look professionally designed, so use it a lot, but in the correct way.
-
Build a layout by defining the visual hierarchy of your content. Whitespace is also important for this.
-
Your website should be designed in a way that ensures that both the user and the owner of the website achieve their goals. This is the user experience.
-
You must get inspired by studying well-designed websites by other designers.
This is inspired by the Udemy course:
Web Design for Web Developers: Build Beautiful Websites!
by Jonas Schmedtmann.