Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/guides/develop-a-renderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ what broke and where), or skipped:
their card or row. Nested parts should be tinted rather than outlined.
- **No change colors inside change colors** — Color only the innermost changed
elements. A container that displays changes inside it stays neutral.
- **Rounded edges drawn over their contents** — A rounded, bordered box whose
fills reach its corners draws its border again over them (the kit's
`pk-frame`, or a `Group`), so its corners are never thinner than its sides.
That border is drawn in the frame's `::after`, so a kit frame's `::after` is
reserved: a rule may recolor it (its border color and opacity), but anything
drawn there instead loses to the kit's or moves the edge, and the check fails
it. Draw a badge or label in an element of its own.
- **Legend shown once** — Render at most one legend, and omit it altogether when
the host already draws one.
- **No horizontal overflow at phone width** — The page must never scroll
Expand Down
9 changes: 9 additions & 0 deletions docs/guides/renderer-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,15 @@ legends, content buttons (`.pk-button`), and `[data-projections-hovered]` hover
marks; `react.css` adds generated fields, the graph canvas, diff mode marks, and
the layout components.

A bordered, rounded container with filled contents is a kit frame: `Group`, or
any element with the `pk-frame` class (its radius is `--pk-frame-radius`). The
frame draws its border again in its `::after`, over everything it holds, so no
header band, stripe or tint can thin its corners. That `::after` is reserved: a
renderer's rule may recolor it (its border color and opacity), but a badge,
label or fill drawn there loses to the kit's rule or moves the edge. Draw those
in an element of their own; the `frame-edges` renderer check fails a rule that
draws there.

Cards, panels, and tables sit evenly inset from all four frame edges in every
host via `--pk-stage-padding` (backed by the host's `stage-inset` token, or 12
px by default). `ContentView` applies this padding automatically; custom roots
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/renderers.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Built-in Projections API renderer: exported declarations with before and after s
- Handles: `api`
- Comparison modes: `diff`, `side-by-side`
- Package: `@githubnext/projections-renderer-api`
- Example scenarios ([`scenarios.json`](../../packages/renderers/api/scenarios.json)): Payments library 2.0 (.NET); Rate limiter 2.0 (Rust); Ledger 2.0 (Go); Job queue 2.0 (TypeScript); HTTP client 2.0; Parser options; HTTP client surface
- Example scenarios ([`scenarios.json`](../../packages/renderers/api/scenarios.json)): Payments library 2.0 (.NET); Rate limiter 2.0 (Rust); Ledger 2.0 (Go); Job queue 2.0 (TypeScript); HTTP client 2.0; Parser options; HTTP client surface; A large surface

## `code-statistics`

Expand Down
Loading
Loading