Gutter Utilities
The gutter utilities provide built in spacing to handle the inside and outside gutters of your layout, as well as general spacing between elements.
Basic Usage
This is the default gutter.
This is the default gutter on the x axis only.
This is the default gutter on the y axis only.
This is a small gutter.
This is a small gutter on the x axis only.
This is a small gutter on the y axis only.
<div class="gutter">This is the default gutter.</div>
<div class="gutter-x">This is the default gutter on the x axis only.</div>
<div class="gutter-y">This is the default gutter on the y axis only.</div>
<div class="gutter-sm">This is a small gutter.</div>
<div class="gutter-x-sm">This is a small gutter on the x axis only.</div>
<div class="gutter-y-sm">This is a small gutter on the y axis only.</div>
Customize Default Gutters
Default
See the Gutter theme for all of the default variables. The default gutter below is used for various components.
@theme {
--default-gutter: var(--gutter);
}
Customized
An example of customizing all of the gutter variables.
@theme {
--default-gutter: var(--gutter-lg);
--gutter: var(--gutter-sm);
--gutter-2xs: calc(var(--spacing) * 2);
--gutter-xs: calc(var(--spacing) * 4);
--gutter-sm: calc(var(--spacing) * 8);
--gutter-md: calc(var(--spacing) * 16);
--gutter-lg: calc(var(--spacing) * 32);
--gutter-xl: calc(var(--spacing) * 64);
--gutter-2xl: calc(var(--spacing) * 128);
}