Skip to main

Design System

  • Welcome
  • Colors
  • Typography
  • Spacing

CSS

  • Utilities
  • Compositions

Component Library

  • Aside
  • Audio Player
  • Authors
  • Banners
  • Block quotes
  • Brand
  • Breadcrumbs
  • Browser compatibility table
  • Button
  • Callout
  • Cards
  • Carousel
  • Code blocks
  • Compare
  • Counter
  • Details
  • Eyebrow
  • Floating Action Button
  • Feature Card
  • Figure
  • Fixed width Image
  • Form Fields
  • Headline
  • Hero
  • Hero Image
  • Icon Button
  • Indicator
  • Labels
  • Lists
  • Numbered headers
  • Page Header
  • Pagination
  • Pill
  • Preview Pagination
  • Prose
  • Stack Nav
  • Stats
  • Status List
  • Tables
  • Tabs
  • Generated table of contents
  • Toggle Switch
  • Tooltips

Spacing

Spacing follows a fluid scale, meaning that text scales based on the size of the viewport and follows a sizing ratio.

Base
Size 1
Size 2
Size 3
Size 4

Usage

Vertical Padding UtilityHorizontal Padding UtilityMargin Top UtilityFlow Space UtilityGutter UtilitySass function
.pad-block-base.pad-inline-base.gap-top-base.flow-space-base.gutter-baseget-space('base')
.pad-block-size-1.pad-inline-size-1.gap-top-size-1.flow-space-size-1.gutter-size-1get-space('size-1')
.pad-block-size-2.pad-inline-size-2.gap-top-size-2.flow-space-size-2.gutter-size-2get-space('size-2')
.pad-block-size-3.pad-inline-size-3.gap-top-size-3.flow-space-size-3.gutter-size-3get-space('size-3')
.pad-block-size-4.pad-inline-size-4.gap-top-size-4.flow-space-size-4.gutter-size-4get-space('size-4')

Contribute

  • File a bug
  • View source

Related content

  • developer.chrome.com
  • Chrome updates
  • Web Fundamentals
  • Case studies
  • Podcasts
  • Shows

Connect

  • Twitter
  • YouTube
  • Google Developers
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms & Privacy
  • Community Guidelines

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.