Typography
Scoped prose, GFM tables and code presentation.
The optional @yuzur1ha/token/markdown.css stylesheet gives generated HTML a shared typographic language. Add yu-markdown to the prose container and use data-markdown="gfm". Colors inherit the current light or dark tokens.
Deliberate hierarchy
Paragraphs keep a comfortable measure. Emphasis stays precise, secondary emphasis stays quiet, and retired wording remains legible. Inline code such as compileDocument() sits on the same baseline; use ⌘ + K for keyboard instructions.
Good documentation leaves room to read. A clear hierarchy is more useful than decoration.
The same rules apply in light and dark themes.
- Choose a heading that describes the section.
- Keep related details together.
- Preserve nesting and list markers.
- Keep links meaningful.
- Show the smallest complete example.
- Shared typography
- Additional dialects
| Surface | Purpose | Behavior |
|---|---|---|
| Paper | Reading | Theme-aware contrast |
| Subtle | Code and tabular headings | Quiet separation |
| Ink | Primary text | Shared black and white palette |
HTML output and compiler boundaries
This is a style kit for generated HTML. It does not parse Markdown or enable extra compiler plugins. GFM task-list and deletion markup shown here is authored HTML; the current Docs compiler enables pipe tables.
The stylesheet covers headings, paragraphs, lists, links, quotations, code, tables, tasks, media, details and footnotes without a global reset.
Tables and code in YuPress
Tables use the same token-based row separators, spacing and code typography as API reference tables. Markdown's left, center and right column alignment remains intact. YuPress wraps Markdown tables in a keyboard-focusable horizontal region; the standalone stylesheet also handles overflow without React.
YuPress enhances standard fenced and indented blocks at build time. See code blocks for highlighting, copying, line numbers and plain-text fallbacks. The Markdown compiler itself does not depend on Shiki or install visual components.