Spacing
The Carbon layout package helps teams build consistent experiences through spacing and alignment.
Usage
The
@carbon/layout
@use '@carbon/layout';.selector {margin-bottom: layout.$spacing-05;width: layout.rem(24px);height: layout.rem(24px);}
API
| Export | Description | !default | 
|---|---|---|
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | ||
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | âś… | |
| 
 | ||
| 
 | ||
| 
 | ||
| 
 | âś… | 
Configuration
You can configure parts of the
@carbon/layout
!default
$base-font-size
@use '@carbon/layout' with ($base-font-size: 18px);