Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographySpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardTabsFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTileVideo thumbnail
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Grid

Our grid is the structural foundation for visual elements across web experiences.

It helps us create consistent layouts that work across devices, screen sizes, and environments.

Fixed grid values

We use space tokens to define grid margins and gutters.

Grid name Breakpoint Margins and gutters Max width Columns
xs <575px --rh-space-lg 100% - 32px 2
sm 576px --rh-space-lg 544px 2
md 768px --rh-space-2xl 704px 12
lg 992px --rh-space-2xl 928px 12
xl 1200px --rh-space-2xl 1136px 12
2xl >1440px --rh-space-2xl 1376px 12

Fluid grid values

Grid name Device Margins and gutters Max width Columns
Fluid Desktop and tablet --rh-space-2xl 100% 12
Fluid Mobile --rh-space-lg 100% 2

Best practices

Line length

Text at a width of 789px and layered on a grid

The width of body text should be 7 grid columns on desktop or 789px max in all layouts.

Text spanning all 12 columns of a grid

Do not allow the width of body text to span more than 789px.

Foundations

To learn how to use our other foundations in your designs, visit the foundations section.

© 2021-2025 Red Hat, Inc. Deploys by Netlify