sigil/UI

SigilSection

A SigilSection component from the Sigil design system.

Import

import { SigilSection } from "@sigil-ui/components";

Preview

Usage

<SigilSection>...</SigilSection>

Structural rhythm

When SigilSection is rendered inside SigilPageGrid, it can snap its outer bottom edge to the next full --s-grid-cell interval from the page-grid content origin. This keeps following Divider bands aligned with the gutter ruler system.

The snap padding is split across top and bottom padding so the section content stays centered in the expanded section. The fractional remainder is applied to bottom padding so the final outer boundary remains exact.

<SigilPageGrid>
  <SigilSection snapBottomToGrid>
    <YourContent />
  </SigilSection>
  <SigilDivider />
</SigilPageGrid>

Use full-cell padding for section boundaries:

<SigilSection
  padding="calc(2 * var(--s-grid-cell)) var(--s-section-padding-x)"
/>

Use fractional cell values only for interior component spacing, not for section outer rhythm.

Props

PropTypeDefaultDescription
idstring
asElementTypesectionSemantic element type.
borderTopbooleanShow a 1px top border along the section boundary.
borderBottombooleanShow a 1px bottom border along the section boundary.
showCrossesbooleanRender cross marks at the 4 gutter intersections of each visible border.
paddingstringCSS padding string. Uses var(--s-section-py) and var(--s-page-margin) by default.
contentMaxnumberContent max width for standalone mode (outside SigilPageGrid).
railGapnumberRail gap for standalone mode (outside SigilPageGrid).
gutterPatternGutterPatternGutter pattern for standalone mode.
marginPatternGutterPatternMargin pattern for standalone mode.
showGutterGridbooleantrueShow gutter grid in standalone mode.
showMarginLinesbooleantrueShow margin lines in standalone mode.
snapBottomToGridbooleantrue inside SigilPageGridAdd vertical snap padding so the section bottom lands on the next full --s-grid-cell interval.

Token integration

CSS VariablePurpose
--s-section-borderSection border
--s-border-width-thinBorder width thin
--s-border-styleBorder style
--s-grid-line-colorGrid line color
--s-border-mutedBorder muted
--s-borderBorder
--s-section-pySection py
--s-page-marginPage margin
--s-backgroundBackground
Studiodefault
Presets
primary
secondary
background
surface
text
border
accent
success
warning
error
info
display
body
mono
heading wt
600
heading trk
-0.025em
base size
16px
page margin
24px
section pad
64px
card pad
24px
grid gap
24px
stack gap
12px
global
8px
button
8px
card
12px
input
6px
border w
1px
style
card border
card shadow
btn shadow
glow
spring
Type
Duration
0.20
Bounce
1.00
easing
cubic-bezier(0.16, 1, 0.3, 1)
fast
150ms
normal
200ms
slow
300ms
hover scale
1.02
press scale
0.98
hover lift
-1px
stagger
50ms
weight
transform
hover
active scale
0.98
min-width
0px
letter sp
0.000em
icon gap
8px
shadow
hover
border
shadow
padding
24px
title size
1px
title wt
desc size
0.875px
aspect
outline
height
36px
focus ring
2px
focus ring
h1 size
2.25px
h2 size
1.875px
h3 size
1.5px
h4 size
1.25px
weight
tracking
-0.020em
leading
1.20
pattern
pattern α
0.03
noise
gradient
grad angle
180°
height
50px
blur
12px
border
padding
24px
item gap
24px
min-height
600px
padding Y
80px
content-max
680px
layout
title size
56px
desc size
18px
padding Y
64px
max-width
600px
layout
title size
36px
padding Y
48px
columns
4
gap
36px
content-max
1200px
rail-gap
24px
grid-cell
50px
cross-stroke
1.5px
navbar-h
50px
bento-gap
16px
grid lines
dots
cell borders
cell bg
Gutter
Margin
content
hero
navbar
rail visible
enabled