Krizaka UI
Krizaka UI

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).

Web · ✓Mobile · n/aDesktop · n/aBetaBlocks
Support level
Beta
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: divider for a transition on the same surface, backdrop for the brand's colour transition.
  • Facts for a few honest facts under a title (registry and version, a status in progress); Ticks for 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 tailwindcss

Styles

@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.

PropTypeDefaultDescription
itemsrequiredreadonly 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).

PropTypeDefaultDescription
as"article" | "div" | "footer" | "header" | "main" | "section"divThe element: div (default), main, header, footer, section or article.
marginboolean—The red margin line on the left, where section numbers and notes hang (§ 2, fig. 1).
paperPagePaper—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).
sizePageSizedefaultThe 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.

PropTypeDefaultDescription
actionsReactNode—The heading's actions.
backdropboolean | Omit<SectionBackdropProps, "children" | "as">—The brand's colour transition behind the section (SectionBackdrop): true, or its props (direction, grid…).
dividerboolean—A hairline above the section, inside the gutters: the transition between two sections of the same surface.
eyebrowReactNode—The heading's eyebrow.
headingAlign"center" | "start"startThe heading's alignment.
headingSize"sm" | "md"mdThe heading's size: md for a page that argues, sm for a reading page.
leadReactNode—The heading's lead.
marginboolean—The red margin line on the left, where section numbers and notes hang (§ 2, fig. 1).
numberReactNode—The section's number in the margin (§ 2).
paperPagePaper—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).
revealboolean—The heading rises into place once (never on the first screen).
sizePageSizedefaultThe width of the content.
spacing"sm" | "lg" | "md"mdThe vertical space above and below: sm (a reading page), md, lg (a page's main moments).
titleReactNode—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.

PropTypeDefaultDescription
titlerequiredReactNode—The title.
actionsReactNode—Actions on the right of the heading (a link to everything, a filter).
align"center" | "start"startcenter for a heading that stands alone above a grid.
eyebrowReactNode—A short note above the title (the section's subject), in the note face, lower case — never an uppercase overline.
leadReactNode—One or two sentences under the title.
level2 | 32The level of the title.
numberReactNode—The section's number, hung in the margin as a notebook numbers its pages (§ 2).
revealboolean—Rises into place once, as it enters the viewport ([data-reveal], MotionObserver). Never on the first screen.
size"sm" | "md"mdmd 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.

PropTypeDefaultDescription
childrenrequiredstring—A sentence where words between backticks are code: "Every request carries a requestId."

Accessibility

  • A Section with a title is a section named by its heading (aria-labelledby); without one it is a plain region of the page.
  • SectionHeading renders a real h2 (or h3): keep the outline in order — one h1 per page, in the hero.
  • Facts is a list; a fact with href opens in a new tab. Ticks renders code elements, 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-max once (72rem by default) and give the navigation the same width.
  • size="narrow" for a column of text, wide for documentation with a sidebar — never a width of your own.
  • Give every titled section an id: it is its anchor and, through aria-labelledby, its name.
  • paper: ruled, lines, dot-grid or kraft (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.
  • kraft needs PaperGrain mounted 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.
  • reveal on headings below the first screen only: what the visitor sees on arrival is painted at once.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page