sigil/UI

Rhythm Modes

Choose between locked full-cell structural layout and free-flow hairline composition.

Overview

Sigil separates two page rhythm models:

ModeUse whenBoundary behavior
lockedStructural pages with visible rails, ruler gutters, and divider bandsSections and SigilDivider bands snap to full --s-grid-cell intervals
hairlineEditorial, minimal, or edgeless pagesContent flows naturally; Hairline renders visual rules without reserving grid bands

Locked rhythm

Locked rhythm is the default for structural Sigil pages.

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

export function Page() {
  return (
    <SigilPage rhythm="locked" chrome="rails">
      <SigilSection>
        Content
      </SigilSection>
      <SigilDivider />
      <SigilSection>
        More content
      </SigilSection>
    </SigilPage>
  );
}

In locked rhythm:

  • SigilPage provides the measurable content origin.
  • SigilSection snaps its outer boundary to the next full cell.
  • SigilDivider is a full-cell band.
  • divider strokes are paint, not layout borders.

For page heroes, prefer the compound hero parts so app code stays readable:

<SigilPage rhythm="locked" chrome="rails">
  <SigilHero>
    <SigilHeroLayout>
      <SigilHeroContent>
        <SigilHeroTitle>Build with tokens.</SigilHeroTitle>
        <SigilHeroDescription>
          Sigil handles grid rhythm, padding, and divider alignment.
        </SigilHeroDescription>
      </SigilHeroContent>
      <SigilHeroMedia>{/* product visual */}</SigilHeroMedia>
    </SigilHeroLayout>
  </SigilHero>
</SigilPage>

Hairline rhythm

Hairline rhythm keeps pages readable and natural when the full structural grid is too heavy.

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

export function EditorialPage() {
  return (
    <SigilPage rhythm="hairline" chrome="minimal">
      <SigilSection>
        Content
      </SigilSection>
      <Hairline />
      <SigilSection>
        More content
      </SigilSection>
    </SigilPage>
  );
}

In hairline rhythm:

  • section snap is disabled by default;
  • Hairline is a rule, not a band;
  • spacing comes from hairline and section tokens;
  • pages do not need to obey full-cell vertical boundaries.

Tokens

Rhythm mode is controlled by pageRhythm tokens:

TokenPurpose
modelocked or hairline
snapEnables section-bottom snap in locked mode
band-strokevisual, border, or none for structural bands
hairline-widthRule thickness in hairline mode
hairline-spacingVertical spacing around hairlines
hairline-styleHairline rule style

Verification

Locked rhythm must pass:

node scripts/audit-grid-alignment.mjs --base=http://localhost:3000

For full page QA, run:

node scripts/audit-layout-system.mjs --base=http://localhost:3000 --quick
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