Page
The frame of every page: one width (--kz-page-max), one pair of gutters, one vertical rhythm — Page, Section (full-bleed, its heading, a hairline or the brand's backdrop as transition) and SectionHeading, with Facts and Ticks, and the papers (ruled, lines, dot-grid, kraft).
- Domain
- Page blocks & templates
- Support level
- Size
- 2.6 kB gzip, budget 1.6 kB
- Who uses it
- 65 files of the live products and sites import it (Verikora: 9, Folioviv: 12, Sovkora: 4, krizaka.com: 14) Counted in the dated inventory of 2026-11-23.
import { Page, Section, SectionHeading, Facts, Ticks, PaperGrain } from "@krizaka/ui/page";Web only — React, from @krizaka/ui/page. Beta: its API may still change in a minor version.
- Mobile · n/a. A block of a public site's page; an app screen on a phone is built from Screen, Header and Card. → Screen
- Desktop · n/a. A public site's page, not a window of the Mac app.
Why it is here. Used by Sovkora, Verikora, Folioviv, krizaka.com.
When to use
- Around every block of a site's page, so the navigation, the hero and each section share the same edges at any width.
- To chain the sections of a page on one rhythm:
dividerfor a transition on the same surface,backdropfor the brand's colour transition. Factsfor a few honest facts under a title (registry and version, a status in progress);Ticksfor a translated sentence with code in it.
When not to use
- Inside an app's screen, under its own shell: the app's layout already frames its content.Use instead: Page header
- To frame one item on a page.Use instead: Card
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { Page, Section, SectionHeading, Facts, Ticks, PaperGrain } from "@krizaka/ui/page";Examples
Sections
Two sections on one rhythm, a hairline between them (divider).
Section on the brand's backdrop
backdrop: the colour transition behind a closing call, the actions on the right of the heading.
The frame alone
Page in its three widths: narrow, default, wide.
Papers
paper: ruled, lines, dot-grid (a dot every 24 px) — absent is plain.
Dot-grid
A dot every 24 px: a page to plan on.
Lines only: a page to read.
Kraft paper
paper="kraft" with the one PaperGrain the host mounts: brown paper, ink at 7:1 on its darkest grain point.
Facts and ticks
Honest facts under a title, and a sentence where backticks read as code.
Props
Facts
Compact facts on one line — a dot that says the state, a few mono words. Links open in a new tab.
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | readonly Fact[] | — | The facts, in reading order. |
Page
The page frame: centred, at most --kz-page-max wide, with the gutters of --kz-page-gutter (16 → 32 px).
| Prop | Type | Default | Description |
|---|---|---|---|
as | "article" | "div" | "footer" | "header" | "main" | "section" | div | The element: div (default), main, header, footer, section or article. |
margin | boolean | — | The red margin line on the left, where section numbers and notes hang (§ 2, fig. 1). |
paper | PagePaper | — | The notebook's paper under the content: ruled (Seyès: 32 px squares, three fine lines), lines (lines only, a page to read), dot-grid (dots), kraft (brown, grained). |
size | PageSize | default | The width of the content: default (72rem, --kz-page-max), narrow (48rem, a reading column), wide
(88rem, documentation with a sidebar), full (the gutters only). |
Section
A section of a page: full-bleed (its backdrop reaches the edges), its content in the page frame, its heading on top.
Sections follow each other on one rhythm; a divider or a backdrop marks the transition.
| Prop | Type | Default | Description |
|---|---|---|---|
actions | ReactNode | — | The heading's actions. |
backdrop | boolean | Omit<SectionBackdropProps, "children" | "as"> | — | The brand's colour transition behind the section (SectionBackdrop): true, or its props (direction, grid…). |
divider | boolean | — | A hairline above the section, inside the gutters: the transition between two sections of the same surface. |
eyebrow | ReactNode | — | The heading's eyebrow. |
headingAlign | "center" | "start" | start | The heading's alignment. |
headingSize | "sm" | "md" | md | The heading's size: md for a page that argues, sm for a reading page. |
lead | ReactNode | — | The heading's lead. |
margin | boolean | — | The red margin line on the left, where section numbers and notes hang (§ 2, fig. 1). |
number | ReactNode | — | The section's number in the margin (§ 2). |
paper | PagePaper | — | The notebook's paper under the content: ruled (Seyès: 32 px squares, three fine lines), lines (lines only, a page to read), dot-grid (dots), kraft (brown, grained). |
reveal | boolean | — | The heading rises into place once (never on the first screen). |
size | PageSize | default | The width of the content. |
spacing | "sm" | "lg" | "md" | md | The vertical space above and below: sm (a reading page), md, lg (a page's main moments). |
title | ReactNode | — | The section's title: an h2 (a SectionHeading), which names the section for assistive technology. |
SectionHeading
The head of a section: eyebrow (mono, the accent), title, lead — and its actions on the right.
| Prop | Type | Default | Description |
|---|---|---|---|
titlerequired | ReactNode | — | The title. |
actions | ReactNode | — | Actions on the right of the heading (a link to everything, a filter). |
align | "center" | "start" | start | center for a heading that stands alone above a grid. |
eyebrow | ReactNode | — | A short note above the title (the section's subject), in the note face, lower case — never an uppercase overline. |
lead | ReactNode | — | One or two sentences under the title. |
level | 2 | 3 | 2 | The level of the title. |
number | ReactNode | — | The section's number, hung in the margin as a notebook numbers its pages (§ 2). |
reveal | boolean | — | Rises into place once, as it enters the viewport ([data-reveal], MotionObserver). Never on the first screen. |
size | "sm" | "md" | md | md for a section that argues, sm for a section of a reading page. |
Ticks
A sentence of a message catalogue where words between backticks read as code — no markup in the translations.
| Prop | Type | Default | Description |
|---|---|---|---|
childrenrequired | string | — | A sentence where words between backticks are code: "Every request carries a requestId." |
Accessibility
- A
Sectionwith a title is asectionnamed by its heading (aria-labelledby); without one it is a plain region of the page. SectionHeadingrenders a realh2(orh3): keep the outline in order — oneh1per page, in the hero.Factsis a list; a fact withhrefopens in a new tab.Ticksrenderscodeelements, read as text.
Best practices
- Import the blocks' stylesheet once, by package path, in the app's root layout:
import "@krizaka/ui/blocks.css". - One frame per site: set
--kz-page-maxonce (72rem by default) and give the navigation the same width. size="narrow"for a column of text,widefor documentation with a sidebar — never a width of your own.- Give every titled section an
id: it is its anchor and, througharia-labelledby, its name. paper:ruled,lines,dot-gridorkraft(absent is plain). Put the paper on a page or a section, never under a dense app screen; every word stays on the paper, never on a texture.kraftneedsPaperGrainmounted once in the root layout (a hidden inline SVG filter with a fixed seed, no image file). Without it the paper is flat, never broken.revealon headings below the first screen only: what the visitor sees on arrival is painted at once.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub