Figma UI component

Figma grids & spacing template

A spacing system removes the guesswork from every gap you set. This Figma file holds a 4px-based spacing scale in primitive and semantic form, width and container variables, a radius scale, and 12, 6 and 4 column layout grids for desktop, tablet, and mobile.
About this component

Grids and spacing in Figma: columns, containers, and radius

How the spacing scale, layout grids, and containers fit together, from the 4px primitive up to column count.

Most inconsistent layouts are not the result of bad taste. They are the result of a free text field.

Given a padding box that accepts any number, designers type 14, then 15, then 18, and the same card ends up three different heights on three different screens. A spacing system takes the field away and hands you a short list instead, which is why designers who work from one move faster than designers who do not.

One unit is 4px, and everything descends from it

The primitive scale is numeric and proportional: one spacing unit equals 0.25rem, or 4px at a 16px base. So 4 is 16px, 8 is 32px, and 2 is exactly half of 4.

It runs from 0 up to 480, which is 1,920px, with the useful density concentrated at the bottom where interface work actually happens. Every value is listed in three columns at once, the token name, the rem value at a 16px base, and the pixel measurement, so a designer and a developer are reading the same row rather than converting in their heads.

Values do not appear because the sequence demanded them. There is a 0.5 at 2px and a 1.5 at 6px because borders and tight icon gaps need them.

Semantic spacing, widths, and containers

On top of the primitives sits a t-shirt-sized layer meant for daily use: spacing-xs at 4px, spacing-md at 8px, spacing-xl at 16px, spacing-4xl at 32px and upward.

Widths get their own set, width-xxs at 320px through width-6xl at 1,920px, for capping sections rather than padding them. Containers are separate again, with container-padding-mobile at 16px, container-padding-desktop at 32px and container-max-width-desktop at 1,280px, so changing the gutter of every page in a project is three edits rather than a week.

The one variable worth stealing outright is paragraph-max-width at 45rem, or 720px, which caps body copy at a readable measure no matter how wide the viewport gets. That single number does more for readability than any amount of tuning in the typography styles.

Layout grids at three breakpoints

Three grids are set up and documented with their measurements drawn on the canvas. Desktop is a 1,440px frame holding a 1,280px container, 12 columns with 32px gutters. Tablet is 768px with a 704px container, 6 columns, still 32px gutters. Mobile is 375px with a 343px container, 4 columns and 16px gutters.

The column count halving as the screen narrows is deliberate: a 12 column grid on a phone is arithmetic, not layout. Below that, WCAG's reflow criterion expects content to survive at 320px without horizontal scrolling, which is the same width someone gets when they zoom a 1,280px desktop page to 400%.

A second set of container layouts covers the common divisions, 12, 6, 5, 3 and 2 columns, for dropping straight into a landing page section without rebuilding a grid each time. Press Shift G to show or hide them all.

Radius is part of the same system

Corner radius is spacing by another name, and it is derived from the same primitives: radius-xxs at 2px, radius-xs at 4px, radius-md at 8px, radius-lg at 10px, up to radius-4xl at 24px, with radius-full at 9,999px for pills and circles.

Keeping it in one scale is what stops the slow drift where a card is 12px, the button inside it is 10px, and the input beside that is 8px for no reason anyone can remember. Radius also carries a lot of brand character, more than most people credit, so changing the scale is one of the fastest ways to make the kit stop looking like the kit. The same is true of the shadow scale.

The habit that makes all of this pay off is binding the values rather than typing them. Set an auto layout gap from the spacing variables instead of entering 16, and the number stays connected to the system, updates when the system updates, and shows up as a token in Dev Mode instead of a magic number.

Spacing is also the main tool you have for grouping: the law of proximity means a label sitting 4px from its input reads as one object, and the same label at 16px reads as two, which is a decision the color styles cannot make for you.

FAQs

Frequently asked questions

Common questions about the Untitled UI Figma grid and spacing system, covering the scale, radius, and column grids.

What spacing scale should I use in Figma, 4pt or 8pt?

A 4px base with 8px as the common step. Pure 8pt sounds tidy until you need a 4px gap between an icon and its label, or a 2px border offset, and then people start freehanding values outside the system.

Basing the scale on 4 and using multiples of 8 for most layout spacing keeps the rhythm without forcing you to break it for small details.

How do I show layout grids in Figma?

Shift G toggles all layout guides on and off, or you can switch individual ones in the frame's properties panel.

The three breakpoint frames here already have their guides configured, with the column widths, gutters and container widths drawn on the canvas beside them, so you can copy the setup across rather than retyping column counts from memory.

What is the difference between primitive and semantic spacing variables?

Primitives are the raw scale, named by number, and they are the source values. Semantic variables reference the primitives and are named by role, spacing-md rather than 2.

You design with the semantic layer and change the primitive layer, which means retuning the density of a whole product is an edit to a handful of source values rather than a search through every component.

Are these grid and spacing styles free?

Yes. The spacing scale, radius scale, and layout grids are included in the 100% free version of Untitled UI and can be used in personal and commercial projects.

The full Figma kit builds every one of its 10,000+ components, page examples, and dashboards on the same values.

Why is the desktop container 1,280px inside a 1,440px frame?

Because content should stop before the browser window does. The 1,440px frame is the viewport, the 1,280px container is the readable area, and the 80px on either side is the margin that keeps text off the edge of a large monitor.

That relationship is stored as container-max-width-desktop, so raising it later changes every page at once rather than frame by frame.

Figma UI components

Application UI/Dashboard examples

Dashboard, settings, form layouts—useful examples for everything you need to design modern dashboards and products.
Figma UI components

Application UI/Dashboard Figma components

Modals, tables, alerts—everything you need to design modern and beautiful apps, dashboards and products.
Figma UI components

Marketing website components

Landing page header and website sections—everything you need to design modern and responsive marketing websites.
The ultimate UI kit for Figma

What is Untitled UI?

Untitled UI Figma is the largest UI kit and design system for Figma in the world. Here's everything great about Untitled UI in just 60 seconds.
Play icon
Untitled UI in 60 seconds
Play icon
Pause icon
Join 380,000+ designers from the world's top companies
Gumroad 5 stars

Untitled UI is the best $ I've spent on my business in a long time. I'm going to keep using it and recommending it to every designer I know.

Sam Pierce Lolla
Sam Pierce Lolla
Founder, Shuffleboard
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Over the years we've featured hundreds of UI kits on UXCrush, but Untitled UI is by far the most comprehensive and detailed I've seen yet. A must have for any designer!

Luca Vavassori
Luca Vavassori
Founder, UXCrush
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I've used all UI kits on the market. I can say without a doubt that the Untitled UI kit is the best on the market. It covers everything a designer needs in a modern and efficient way.

Murat Alpay
Murat Alpay
Product Designer, @imuratalpay
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Incredible, and keeps getting better. I’ve tried dozens of UI kits and Untitled UI is the only name you should care about. It stands head and shoulders above the rest.

Jérémy Franck
Jérémy Franck
Designer, @jrmyfranck
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Such a beautiful, detailed, and extensive UI kit. Untitled UI is the perfect foundation for any project. I highly recommend this huge time saver.

Adham Dannaway
Adham Dannaway
Product Designer, Practical UI
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI has been an amazing resource that I'm learning to rely upon to spin up ideas in no time. I think I might launch a startup pretty soon by mistake here!

Ricardo Buzzotta
Riccardo Buzzotta
Senior Product Designer, Spotify
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

The sheer scale, details, and organization of this kit is mind-blowing. It covers nearly everything a Designer could need in a modern, efficient and systematic way.

Corey Moen
Corey Moen
Senior Brand Designer, Webflow
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I'm super impressed with this. I love poking around in other peoples UI Kits to see how they think. This is probably one of the most comprehensive I've seen.

Matt Walker
Matt Walker
Design Systems, Mailchimp
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

I'm super excited to use this for quick mockups of ideas in Figma. We're always trying to streamline our design process so we can move fast! Definitely recommend.

Jenny Chu
Jenny Chu
Head of Product, Eucalyptus
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI is easily the best UI kit I've used so far. It has an insane amount of components that are all incredibly well-built. I don't even know how many hours this will save.

Sunny Trochaniak
Sunny Trochaniak
Founder, NewPulse Labs
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

The attention to detail and thought Jordan has put into this UI kit is unparalleled.

Dan Mcleay
Dan Mcleay
Lead Designer, Fox Sports
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

Untitled UI is incredibly well-organized and the attention to detail is great. I highly recommend this kit to any designer that wants to create beautiful designs fast.

Tom Bekkers
Tom Bekkers
Founder & Creative Director, Flowbase
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

What an awesome Figma kit... it's an absolute game changer. This is the perfect base for any design system. The size and attention to detail is next level.

Dan Anisse
Dan Anisse
Co-founder, Relume
Star iconStar iconStar iconStar iconStar icon
Gumroad 5 stars

We've been using Untitled to build Himalayas 2.0 and have finished a complete redesign in just a few days. It has everything we need already pixel-perfect.

Abi Tyas Tunggal
Abi Tyas Tunggal
Co-founder, Himalayas
Star iconStar iconStar iconStar iconStar icon