sigil/UI
Components

Typography

Semantic text primitives — headings, paragraphs, and inline elements — driven entirely by token variables.

Import

import {
  H1, H2, H3, H4,
  Paragraph, Lead, Large, Small, Muted,
  InlineCode, Blockquote,
} from "@sigil-ui/components";

Preview

Headings

<H1>The quick brown fox</H1>
<H2>The quick brown fox</H2>
<H3>The quick brown fox</H3>
<H4>The quick brown fox</H4>

Body text

<Paragraph>
  A paragraph of body text with comfortable leading and automatic top margin
  between siblings.
</Paragraph>
<Lead>A larger introductory paragraph in muted text.</Lead>
<Large>Large semibold text.</Large>
<Small>Small medium text.</Small>
<Muted>Small muted supporting text.</Muted>

Inline elements

<Paragraph>
  Run <InlineCode>sigil preset list</InlineCode> to see all presets.
</Paragraph>
<Blockquote>
  "Edit the token spec. Not the components."
</Blockquote>

Token integration

CSS VariableUsed for
--s-font-displayHeading font family
--s-heading-h1-size / weight / leading / trackingH1 typography
--s-heading-h2-size / weight / leading / trackingH2 typography
--s-heading-h3-size / weight / leading / trackingH3 typography
--s-heading-h4-size / weight / leading / trackingH4 typography
--s-textText color for all elements
--s-text-mutedLead, Muted, and Blockquote text
--s-borderH2 bottom border, Blockquote left border
--s-surfaceInlineCode background
--s-radius-smInlineCode border radius

Props

All typography components extend their native HTML element attributes and accept className for overrides. They use forwardRef for ref forwarding.

ComponentElementNotes
H1<h1>Display font, text-balance
H2<h2>Includes bottom border separator
H3<h3>
H4<h4>
Paragraph<p>Auto top margin between siblings
Lead<p>text-xl, muted color
Large<div>text-lg, semibold
Small<small>text-sm, medium weight
Muted<p>text-sm, muted color
InlineCode<code>Monospace, surface background
Blockquote<blockquote>Left border, italic, muted
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