#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

What Is Figma and How to Design Web Layouts in It

Figma is a browser-based design tool for user interfaces, used to design and prototype websites and apps, often with several people editing the same file at once. To design a web layout you set up frames and grids, build sections with auto layout, turn repeated parts into components, then make a mobile version and hand it to developers.

What is Figma and how to design web layouts

What Is Figma and How to Design Web Layouts in It

Figma runs in the browser (with desktop apps for Windows and macOS), stores files in the cloud, and lets designers, developers and product managers work in the same file at the same time. Its main product, Figma Design, is for screens; FigJam is a whiteboard for workshops; Dev Mode is a view for developers to inspect sizes, colours and code snippets. There is a free plan with limits, which is enough to learn everything on this page; check Figma's pricing page for the current limits.

Core concepts you need first

ConceptWhat it isClosest web equivalent
FrameA container, like an artboard or a div. Top-level frames are your screens.A page or a section element
Layout gridColumns and gutters drawn on a frame to align contentA 12-column CSS grid
Auto layoutMakes a frame stack its children in a row or column with set gap and padding, and resize with contentFlexbox
Constraints / resizingHow a layer behaves when its parent frame resizes (fixed, hug contents, fill container)Fixed width, fit-content, flex: 1
Component and instanceA reusable element; instances update when the main component changesA reusable UI component
VariantsStates of one component (primary/secondary, default/hover)Component props
Styles and variablesSaved colours, text styles, spacing valuesCSS custom properties / design tokens
PrototypeLinks between frames with interactions, to click through a flowA clickable mock-up

Step by step: a simple landing page layout

1. Create the desktop frame

Press F (Frame tool) and choose a Desktop preset from the right panel, or draw a frame 1440 px wide. Name it "Home – Desktop". Height can grow as you add sections.

2. Add a layout grid

With the frame selected, click + next to Layout grid, switch it to Columns, and set 12 columns, a gutter of 24 px, and a margin of about 80 px with type set to Stretch. Common alternatives are a centred grid with a fixed content width; what matters is that every section uses the same one.

3. Build the header with auto layout

  1. Add a logo (text or image) and four text links.
  2. Select the links and press Shift + A to wrap them in a horizontal auto layout frame with a 32 px gap.
  3. Select the logo and the links frame, press Shift + A again, and set the alignment to "space between" so the logo sits left and the links right.
  4. Set the header frame to Fill container width and add vertical padding of 20 px.

4. Hero section

Create a vertical auto layout frame containing a heading, a short paragraph and a button. Set a gap of 16–24 px. Define text styles (for example "H1 / 48", "Body / 18") instead of setting font sizes on each layer; it keeps the design consistent and maps directly to CSS.

5. Turn the button into a component

Wrap the button label in an auto layout frame with padding (12 px vertical, 24 px horizontal), a fill colour and a corner radius. Select it and press Ctrl/Cmd + Alt + K to create a component. Add variants for "Primary" and "Secondary". Every button you place afterwards is an instance, so a colour change on the main component updates them all.

6. A grid of cards

Design one card (image, title, two lines of text) as a component. Place three instances in a horizontal auto layout frame with a 24 px gap, each set to Fill container so they share the width equally. For many cards, set auto layout's direction to Wrap so they flow onto new rows.

7. Footer

Another horizontal auto layout frame with a few columns of links and a copyright line. Keep the same margins as the grid.

8. Mobile version

Duplicate the desktop frame and resize it to a phone preset around 390 px wide. Because the sections use auto layout and fill-container widths, most content reflows on its own. Then fix what does not: change the cards' row to a column, turn the header links into a menu icon, reduce heading sizes and side margins (16–20 px is typical on mobile). Always check that text stays readable and buttons stay large enough to tap.

9. Prototype and share

In the Prototype tab, connect the menu icon to an overlay frame for the mobile menu, and the button to a sign-up screen. Press Play to test the flow. Share the file link with "can view" access for feedback and comments.

How auto layout maps to CSS

Knowing this mapping makes your designs easier to build. The card row from step 6 corresponds to:

.cards {
  display: flex;          /* auto layout, horizontal */
  gap: 24px;              /* spacing between items */
  padding: 0 80px;        /* frame padding / grid margin */
}
.card {
  flex: 1;                /* "Fill container" */
  display: flex;
  flex-direction: column; /* vertical auto layout inside the card */
  gap: 12px;
}
@media (max-width: 600px) {
  .cards { flex-direction: column; padding: 0 16px; }
}

"Hug contents" corresponds to the element sizing to its content (for example width: fit-content), and auto layout's "Wrap" corresponds to flex-wrap: wrap. For a grid-based approach, see multi-column layouts with CSS Grid and responsive web design with HTML and CSS.

Handing off to developers

  • Name layers and frames clearly ("Card / Course", not "Frame 238").
  • Use styles or variables for every colour, font and spacing value.
  • Mark frames as ready for development so developers can find them in Dev Mode, where they can inspect measurements and copy CSS.
  • Export images and icons at the right formats (SVG for icons, WebP or PNG for images).

Common beginner mistakes

  • Placing everything by hand instead of using auto layout, so nothing adapts when text changes.
  • Ignoring the grid, which makes sections look slightly misaligned.
  • Designing only for desktop and leaving mobile for later.
  • Too many font sizes and colours; four or five text styles are usually enough. Choosing readable fonts helps too: see using Google Fonts for readability.
  • Low colour contrast. Check text against the background, especially light grey on white.

If you are deciding between design and data tools as a first skill, see Tableau or Figma first; for the wider field, the UI/UX design syllabus shows what comes after layouts.

FAQs

Is Figma free?

Figma has a free plan with limits on files and features, and paid plans for teams. The free plan is enough for learning layouts, components and prototypes.

Can Figma generate website code?

Dev Mode shows CSS for individual layers and there are plugins that export code, but generated code usually needs cleaning. Most teams use Figma as the blueprint and write the front-end code themselves.

What frame size should I use for a website?

A desktop frame of about 1440 px wide and a mobile frame of about 390 px wide cover most cases. Add a tablet size if your users need it.

Uncodemy's UI/UX design course covers Figma from layouts to prototyping and portfolio case studies.

Placed Students

Our Clients

Partners

...