Overview of @carbon/layout features
mainThe @carbon/layout package provides layout helpers and specifications for the IBM Design Grid. It is available in both Sass and JavaScript.
Note: This package does not provide the grid implementation itself. For the grid implementation, use the @carbon/grid package.
Key features include:
- Breakpoints: Variables and settings for the IBM Design Grid (gutters, breakpoints) and helpers for working with them.
- Unit conversion: Helpers for converting between
px,rem, andem. - Key heights: Helpers for managing key heights across different breakpoints.
- Mini unit: Helpers for working in multiples of the mini-unit.
- Spacing: A spacing scale and helpers for using steps within that scale.