VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-gutters-grid/

โ‡ฑ Primer CSS Gutters Grid - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Gutters Grid

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

Primer CSS Gutters Grid is used to create the Gutters using the styles and padding utility classes. We have gutter styles like gutter-condensed and gutter-spacious. We have also padding utility classes to create the gutter layout.

Primer CSS Gutters Grid Classes:

  • gutter: This class is used to create the gutter.
  • gutter-condensed: This class is used to create condensed gutters.
  • gutter-spacious: This class is used to create spacious gutters.

Syntax:

<div class="clearfix Gutters-Grid-Class border">
 <div class="col-3 float-left">
 <div class="border p-3">...</div>
 </div>
 ....
</div>

Example 1: The following example demonstrates the Primer CSS Gutters Grid.

Output:

๐Ÿ‘ Image
Primer CSS Gutters Grid

Example 2: The following example demonstrates the Primer CSS Gutters Grid using padding utility classes.

Output:

๐Ÿ‘ Image
Primer CSS Gutters Grid

Reference: https://primer.style/product/css-utilities/#gutters

Comment