Typography

A shared language for readable text, clear hierarchy, and familiar controls.

Usage

Editorial content uses shadcn Typeset. Markdown renders semantic HTML; the shared Typeset stylesheet and your Appearance reading preferences supply its fonts, rhythm, and spacing. A future chat renderer can use the same styles. UI controls keep their own typography.

tsx
import { Section } from '@unirepo/ui/components/section';import { Text } from '@unirepo/ui/components/typography';
<Section id="overview" title="Overview">    <p>One source for the website, MDX, and future chat.</p></Section>

Fonts

Unirepo Default uses the sans-serif family for body text and headings, with Geist Mono for code. OpenCode uses mono headings. Editorial uses system serif fonts; Technical uses a tighter rhythm. Change these in Settings → Appearance. Arabic uses the selected stack’s available Arabic fallback glyphs.

Inter · Unirepo · 0123456789

Geist Mono · Unirepo · 0123456789

Headings

Used to introduce pages or sections. Choose the HTML heading level for the document hierarchy and the class for its appearance. These samples use spans to preserve this page’s heading outline. Sizes use rem units and the selected heading font; reading-size preferences do not resize this explicit scale.

ExampleClass nameUsage
Heading 72text-heading-72—
Heading 64text-heading-64—
Heading 56text-heading-56—
Heading 48text-heading-48—
Heading 40text-heading-40—
Heading 32 with Subtletext-heading-32—
Heading 24 with Subtletext-heading-24—
Heading 20 with Subtletext-heading-20—
Heading 16 with Subtletext-heading-16—
Heading 14text-heading-14—
tsx
<h1 className="text-heading-40 sm:text-heading-56 lg:text-heading-72">    Build with Unirepo.</h1>
<h2 className="text-heading-32">    Your workspace. <span className="text-muted-foreground">Your rules.</span></h2>

Body text

Body text uses the same Typeset rules as docs articles. Keep paragraphs focused and use emphasis only where it helps the reader.

Build a workspace that feels consistent from the first command to the last page. Important information. A small emphasis.

Buttons

These are the actual shared Button components. Their labels, spacing, and states come from Button itself; this page does not recreate their styles.

Labels

Use Label for a form control and connect it with htmlFor. Use ordinary text for captions and descriptions.

Code

Use inline code for commands and identifiers. Code blocks keep their whitespace and scroll horizontally when needed.

unirepo init
bun install
bun run dev

Accessibility and translation

Keep one page title, preserve heading order, and use real buttons and labels. Layout spacing follows the reading direction. Check Arabic with its actual fallback font before choosing a dedicated Arabic typeface.

Last updated