Home/Learn/Web Design Guides

Complete Web Design Guide

Everything you need to know to create professional websites. From fundamental principles to advanced techniques used by experienced designers.

Chapter 1

Fundamental Design Principles

Before you open Figma or any other design tool, you need to understand the four fundamental principles that underpin any good design. These principles were formulated by Robin Williams in the book "The Non-Designer's Design Book" and are just as relevant today as they were 30 years ago.

1. Contrast

Contrast creates visual hierarchy and makes design interesting. If two elements are not identical, make them very different. Don't be timid - weak contrast looks like a mistake, not a design choice.

Contrast can be achieved through:

  • Size (large title vs. small text)
  • Color (dark on light, complementary)
  • Font weight (bold vs. regular)
  • Space (dense vs. airy)
  • Shape (round vs. square)

Practical example: On a call-to-action button, don't use gray on gray. Use a vibrant background (orange, blue) with white text. The button needs to "pop" from the page.

2. Alignment

Every element on the page must have a visual connection to another element. Nothing should be placed arbitrarily. Alignment creates order and professionalism.

The golden rule: choose one type of alignment and stick to it. If text is left-aligned, all text should be left-aligned. Centering is okay for short titles, but avoid long centered paragraphs - they're hard to read.

Common mistake: Many sites have the logo aligned left, the menu centered, and the contact button on the right, with no visual logic. The result? Disorder.

3. Repetition

Repeat visual elements throughout the design: colors, fonts, button styles, spacing. Repetition creates coherence and makes the site look "finished", professional.

This means if you've decided that primary buttons are blue with rounded corners, all primary buttons should look the same. If titles are in Montserrat Bold, all titles should be in Montserrat Bold.

This is where Design Systems come from: Large companies have design systems precisely to ensure repetition and consistency across all pages and products.

4. Proximity

Elements that are conceptually related should also be visually close. Grouping creates organization and reduces visual clutter.

If you have a form with fields, the label should be closer to its field than to the previous field. If you have a section with a title, description, and button, these should be visually grouped, with more space from the next section.

Practical rule: The space between grouped elements should be 2-3 times smaller than the space between different groups.

Chapter 2

Color Theory for Web Design

Colors aren't just aesthetic - they communicate, create emotions, and influence user behavior. A well-chosen color palette can make the difference between a site that converts and one that people abandon.

Color Psychology

Each color evokes certain emotions and associations. Here's what the main colors convey:

  • Blue: Trust, professionalism, stability (that's why banks and tech companies use it)
  • Green: Nature, health, growth, money (perfect for eco-brands or fintech)
  • Red: Urgency, passion, energy (good for CTAs and promotions)
  • Orange: Enthusiasm, friendly, accessible (effective call-to-action)
  • Purple: Luxury, creativity, mystery (premium brands)
  • Black: Elegance, sophistication, power (fashion, premium tech)
  • White: Cleanliness, simplicity, space (minimalism, healthcare)

How to Create a Color Palette

An effective web palette usually has 5-6 colors:

  • Primary color: The brand color, used for important elements (buttons, links)
  • Secondary color: Complements the primary, for accent and variety
  • Background color: Usually white or a very light gray
  • Text color: Dark gray (not pure black - #333 or #1a1a1a looks better)
  • Success/error color: Green for confirmation, red for errors

Color Schemes

There are several mathematical approaches to creating harmonious schemes:

Monochromatic: One color in different shades. Safe, elegant, but can be boring.

Complementary: Two opposite colors on the color wheel (blue-orange). Dynamic, contrasting.

Analogous: Neighboring colors on the wheel (blue, blue-green, green). Harmonious, calm.

Triadic: Three colors at equal distances on the wheel. Vibrant, but hard to balance.

Color Palette Tools

  • Coolors.co: Palette generator with color lock function
  • Adobe Color: Create schemes based on color theory
  • Realtime Colors: Visualize the palette directly on a site template
  • Muzli Colors: Palettes extracted from popular designs

Contrast and Accessibility

It's not enough to look good - colors must also be accessible. WCAG (Web Content Accessibility Guidelines) requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text.

Use tools like WebAIM Contrast Checker to verify. Light gray text on white background may look elegant, but if people can't read it, it serves no one.

Chapter 3

Typography for Web

Typography represents 90% of web design. Seriously. Think about it: what does a site do? It presents information. And information is mainly text. If typography is wrong, the whole site suffers.

Choosing Fonts

For most sites, you need a maximum of two fonts:

  • Heading font: Can be more expressive, bold, with personality
  • Body text font: Must be very readable, neutral, comfortable for long reading

Safe combinations that work:

  • Montserrat + Open Sans
  • Playfair Display + Lato
  • Poppins + Inter
  • Roboto Slab + Roboto
  • DM Sans + DM Sans (same font, different weights)

Typographic Hierarchy

Hierarchy helps users understand the relative importance of information. It's created through:

  • Size: Headings are large, normal text is smaller
  • Weight: Bold for headings and emphasis, regular for body
  • Color: Black/dark gray for headings, gray for secondary text
  • Space: More space above headings for separation

Recommended Sizes

A good typographic scale for web:

  • H1: 48-64px (only one per page)
  • H2: 32-40px (section titles)
  • H3: 24-28px (subtitles)
  • Body: 16-18px (never below 16px on mobile!)
  • Small: 14px (captions, labels)

Line Height and Spacing

Line height (the space between lines) makes the difference between readable and suffocating text:

  • For headings: 1.1 - 1.3
  • For body text: 1.5 - 1.8
  • For small text: 1.4 - 1.6

Letter spacing: Large headings can benefit from slight negative letter-spacing (-0.02em). Caps lock text needs positive letter-spacing (0.05-0.1em).

Line Length (Measure)

Lines that are too long are tiring. Lines that are too short interrupt rhythm. Ideal: 45-75 characters per line, with 66 being considered optimal.

For a text column, this usually means max-width: 650-750px.

Chapter 4

Layout and Composition

Layout determines how elements are arranged on the page. A good layout guides the user's eye naturally, without conscious effort.

Grid Systems

The grid is the invisible skeleton of the page. The most popular is the 12-column grid because 12 divides nicely: 2, 3, 4, 6.

A typical desktop layout:

  • Maximum container: 1200-1400px
  • 12 columns with 24-32px gutter
  • Lateral padding: 16-24px (mobile), 32-48px (desktop)

White Space (Whitespace)

White space isn't "empty space" - it's a design element. It gives elements room to breathe, reduces cognitive load, and makes content easier to process.

Rules for space:

  • More space above sections than below
  • Consistent space between similar elements
  • More space between different content groups
  • Generous margins on mobile (don't stick content to edges)

Reading Patterns

F-Pattern: Users scan the page in an F shape - they read the first line, go down and partially read the second line, then scan down the left edge. Perfect for text-heavy pages.

Z-Pattern: On simpler pages (landing pages), the eye follows a Z - top left, top right, goes down diagonally, bottom left, bottom right. Place important elements on this trajectory.

Above the Fold

The visible area without scrolling ("above the fold") is the most valuable real estate on the site. It should contain:

  • What you offer (clear value proposition)
  • For whom (target audience)
  • What to do (call-to-action)

This doesn't mean everything should be crammed at the top - just that the main message should be clear in the first seconds.

Chapter 5

Responsive Design and Mobile-First

Over 60% of web traffic comes from mobile devices. If your site doesn't look good on phone, you're losing most potential customers.

What Does Mobile-First Mean?

Mobile-first means designing first for the smallest screen, then adding complexity for larger screens. Why?

  • It forces you to prioritize essential content
  • Performance is better (you don't load unnecessary resources on mobile)
  • It's easier to add than to remove features

Standard Breakpoints

Breakpoints define where the layout changes:

  • 320-480px: Small phones
  • 481-768px: Large phones, portrait tablets
  • 769-1024px: Landscape tablets, small laptops
  • 1025-1200px: Standard desktop
  • 1201px+: Large monitors

Responsive Techniques

Fluid grids: Use percentages or fr units instead of fixed pixels.

Responsive images: Use srcset to serve different sized images. A 2000px image on mobile is a waste of bandwidth.

Fluid typography: clamp() allows fonts that scale smoothly between sizes: font-size: clamp(1rem, 2.5vw, 2rem)

Mobile Mistakes to Avoid

  • Buttons too small (minimum 44x44px for touch)
  • Text too small (minimum 16px)
  • Hover effects as the only indication (there's no hover on mobile)
  • Forms with small, hard-to-fill fields
  • Intrusive pop-ups that cover the entire screen
  • Complicated hamburger menus with too many levels
Chapter 6

UX and User Psychology

User Experience (UX) is about how the user feels when interacting with the site. A beautiful design that's hard to use is a failed design.

UX Laws You Need to Know

Hick's Law: The more options there are, the longer the decision takes. Reduce options. A menu with 5 items is better than one with 15.

Fitts's Law: The time to reach a target depends on distance and size. Important buttons should be large and easily accessible.

Von Restorff Effect: Elements that stand out are easier to remember. A single colored button in a page of text is more visible than 5 colored buttons.

Jakob's Law: Users spend most of their time on OTHER sites. Respect conventions - logo top left, menu right, footer bottom.

Reducing Friction

Every click, every field to fill, every second of waiting is friction that can make the user leave.

  • Reduce the number of fields in forms to the minimum necessary
  • Use autofill and real-time validation
  • Show progress in multi-step processes
  • Provide instant feedback for actions (loading states, confirmations)
  • Allow undo for reversible actions

Trust and Credibility

People don't buy from sites they don't trust. How to build credibility:

  • Professional design (amateur design = amateur company)
  • Real testimonials and reviews
  • Client or partner logos
  • Certifications and security badges
  • Visible contact information (address, phone, email)
  • Clear policies (return, privacy, terms)
Chapter 7

Images and Multimedia for Web

Images can make or break a design. A high-quality photograph can instantly communicate what words cannot. But poorly chosen or optimized images can slow down the site and ruin the experience.

Types of Images for Web

  • Photos: JPEG for complex photos, WebP for the best modern compression
  • Graphics/Illustrations: PNG for graphics with transparency, SVG for icons and vector illustrations
  • Animations: GIF for simple animations, animated WebP or MP4 video for complex animations

Image Optimization

Images are often the biggest "cost" of a web page. Optimization is crucial:

  • Correct size: Don't load a 4000px image for a 400px space
  • Compression: Use tools like TinyPNG, Squoosh, or ImageOptim
  • Modern format: WebP offers 25-35% better compression than JPEG
  • Lazy loading: Load images only when visible in viewport
  • Srcset: Serve different images for different screens

Choosing the Right Images

Authentic > Generic stock: A real photo of your team is more powerful than a stock image with smiling people in suits.

Relevant > Beautiful: The image should support the message, not just look good. If it doesn't add value, don't use it.

Stylistically consistent: All images on the site should have a similar style - either all photos or all illustrations, with a consistent color palette.

Image Resources

  • Unsplash, Pexels: Quality free stock photos
  • unDraw, Illustrations.co: Free and customizable SVG illustrations
  • Heroicons, Lucide: Open source icon sets
  • Midjourney, DALL-E: AI image generation (watch the licensing)

Video on Web

Video increases engagement, but comes with challenges:

  • Hero video: Muted, autoplay, looping - effective for visual impact
  • Explainer video: Embed from YouTube/Vimeo - don't host locally
  • Format: MP4 with H.264 for maximum compatibility, WebM as alternative
  • Poster image: Always set a poster for before loading
Chapter 8

Micro-interactions and Animations

Micro-interactions are those small animations and feedback that make a site feel "alive". A button that changes color on hover, an icon that rotates when loading, a message that appears smoothly - all these improve the experience.

Why Micro-interactions Matter

  • Feedback: Confirms to the user that the action was registered
  • Guidance: Draws attention to important elements
  • Delight: Makes the experience more enjoyable and memorable
  • Branding: Animations can be part of brand identity

Types of Micro-interactions

Hover states: Buttons, links, cards that react to hover

Focus states: Visual feedback when an element is focused (crucial for accessibility)

Loading indicators: Spinners, skeleton screens, progress bars

Page transitions: Fade in/out, slide between pages

Scroll animations: Elements that appear as you scroll

Form feedback: Real-time validation, success/error states

Principles for Good Animations

  • Subtle: Animations shouldn't distract from content
  • Fast: 200-400ms is the ideal duration for most transitions
  • Natural: Use easing functions (ease-out for entry, ease-in for exit)
  • Performant: Only animate transform and opacity for 60fps
  • Respect preferences: Use prefers-reduced-motion for sensitive users

Easing Functions

Easing controls the acceleration of the animation:

  • ease-out: Starts fast, slows at the end - good for elements entering
  • ease-in: Starts slow, accelerates - good for elements exiting
  • ease-in-out: Slow at both ends - good for hover transitions
  • cubic-bezier: Complete control for custom animations

When NOT to Use Animations

  • When they slow down the user (2-second animation on every click)
  • When there are too many and they distract
  • When you can't maintain 60fps (better no animation than janky animation)
  • For essential content that needs to be seen immediately
Chapter 9

Design Systems and Components

A Design System is a collection of reusable components, guidelines, and standards that ensure consistency across the product. For larger sites or teams, it's essential.

What a Design System Includes

  • Design Tokens: The fundamental values - colors, spacing, shadows, border-radius
  • Typography: Font scales, line heights, font stacks
  • Components: Buttons, cards, forms, modals, navigation
  • Patterns: How components combine into layouts
  • Guidelines: When and how to use each component
  • Documentation: Everything needed to use the system

Design Tokens

Tokens are design variables that can change throughout the system:

  • Colors: --color-primary, --color-secondary, --color-success
  • Spacing: --space-xs (4px), --space-sm (8px), --space-md (16px)...
  • Border radius: --radius-sm (4px), --radius-md (8px), --radius-full
  • Shadows: --shadow-sm, --shadow-md, --shadow-lg

If you want to change the primary color, you change it in one place and it updates everywhere.

Atomic Components

The "Atomic Design" methodology divides components into levels:

  • Atoms: The simplest elements - buttons, inputs, labels, icons
  • Molecules: Groups of atoms - form field (label + input + error)
  • Organisms: Groups of molecules - header, complex card, footer
  • Templates: Page layouts with placeholders
  • Pages: Templates with real content

Benefits of a Design System

  • Consistency: All pages look like part of the same product
  • Efficiency: You don't reinvent the wheel for each new page
  • Scalability: It's easy to add new pages
  • Collaboration: Designers and developers speak the same language
  • Maintenance: Changes propagate automatically

Design Systems Tools

  • Figma: Components, variants, auto-layout, design tokens
  • Storybook: Document and test React/Vue components
  • Style Dictionary: Transform design tokens into code
  • Zeroheight, Supernova: Documentation for design systems
Chapter 10

Design for Conversions

A site that looks beautiful but doesn't convert is just art - not business. Design must serve business objectives. Conversion-centered design puts the user and business goals at the center.

Conversion Design Principles

1. One goal per page: Each page should have a single main CTA. If you want them to buy AND sign up for the newsletter AND follow you on social media, the user will do nothing.

2. Clear visual hierarchy: The eye should be guided naturally: headline → benefits → CTA. Nothing should distract from this flow.

3. Reduce options: The paradox of choice - too many options paralyze. Offer 2-3 options, not 10.

4. Eliminate distractions: On landing pages, remove navigation menu, sidebars, external links. Everything that doesn't serve the main objective must disappear.

Elements That Increase Conversions

  • Clear headline: Communicate the main benefit in 3 seconds
  • Social proof: Testimonials, numbers, client logos
  • Urgency/Scarcity: "Limited offer", "Only 3 spots left"
  • Guarantees: "30-day money back" reduces perceived risk
  • Visible CTA: Contrasting color, action-oriented text
  • Short form: Ask only what's absolutely necessary

How to Write Effective CTAs

The CTA (Call-to-Action) is the most important button on the page. How to optimize it:

  • Action verbs: "Start", "Download", "Get" - not "Submit" or "Click here"
  • First person: "I want the offer" converts better than "Get the offer"
  • Specific: "Start 14-Day Free Trial" is better than "Start"
  • Benefit: "Increase sales by 50%" not just "Learn more"

A/B Testing for Design

Don't guess what works - test. Elements to test:

  • CTA color and text
  • Main headline
  • Hero image
  • Page length (short vs. long)
  • Form layout
  • Section order
Chapter 11

Web Design Trends 2025

Web design is constantly evolving. Here are the trends defining 2025 and how to apply them without becoming a victim of passing fashion.

1. Bento Grid Layouts

Inspired by Apple dashboards, the Bento layout uses asymmetric grids with cards of varying sizes. Creates visual interest and clear information organization.

2. Glassmorphism and Blur Effects

Translucent elements with background blur, creating a "frosted glass" effect. Elegant when used subtly, but don't overdo it - it can affect performance and readability.

3. Dark Mode by Default

More and more sites offer native dark mode or even have it as default. Reduces eye strain and looks modern. Important: design for both modes from the start.

4. Bold and Oversized Typography

Huge titles (100px+) that make a statement. Works for strong branding, but watch responsiveness - large text becomes problematic on mobile.

5. 3D and Abstract Illustrations

Stylized illustrations instead of stock photos. Blobs, gradient meshes, organic shapes. Creates personality and differentiation from competitors.

6. Micro-animations and Interactivity

Cursor effects, scroll-triggered animations, subtle parallax. Done well, they add refinement. Done poorly, they distract and slow down.

7. AI-Generated and Personalized Content

Designs that adapt in real-time based on the user - images, copy, layout. The technology exists, but implementation is still in early stages.

8. Sustainability in Design

"Green" design - optimization for reduced energy consumption (dark mode, optimized images, efficient code). Some hosting providers already offer carbon-neutral hosting.

How to Apply Trends Intelligently

  • Don't follow blindly: A trend isn't suitable for every brand or audience
  • Prioritize functionality: If a trend affects UX, drop it
  • Test: What works for others may not work for you
  • Timeless > Trendy: Design fundamentals stay relevant - trends come and go

Recommended Tools

Figma

The #1 tool for design and prototyping. Free for personal use, collaborative, cloud-based.

Coolors.co

Color palette generator. Lock the colors you like and generate combinations.

Google Fonts

Free web font library. Over 1500 font families, easy to integrate.

Dribbble / Behance

Inspiration from professional designers. See what's trending and what works.

WebAIM Contrast

Check color contrast for accessibility. WCAG compliant.

Responsively

Visualize the site on multiple devices simultaneously. Perfect for responsive testing.

Want a Professional Website?

If you prefer to leave the design in the hands of experts, we're here. We create sites that look good and convert.

Complete Web Design Guide 2025 | Principles, Techniques & Best Practices | DGI