Each .zen here is a runnable, validated document; the .png beside it is its
rendered output (committed so you can see the result without running anything).
Every example is covered by a determinism test in
zenith-cli/tests/render_integration.rs — rendered twice, asserted byte-identical.
Render any of them yourself with:
zenith render examples/<name>.zen --png out.png
zenith validate examples/<name>.zen --json| Example | Source | Output |
|---|---|---|
| Rectangle | rect.zen |
![]() |
| Rounded rectangle | rounded.zen |
![]() |
| Ellipse | ellipse.zen |
![]() |
| Line | line.zen |
![]() |
| Polygon | polygon.zen |
![]() |
| Polyline | polyline.zen |
![]() |
| Star | star.zen |
![]() |
| Stroke alignment | stroke-align.zen |
![]() |
| Example | Source | Output |
|---|---|---|
| Gradients (linear + radial) | gradient.zen |
![]() |
| Pattern (grid + scatter) | pattern.zen |
![]() |
| Drop shadow | shadow.zen |
![]() |
| Blur | blur.zen |
![]() |
| Filter | filter.zen |
![]() |
| Noise / grain (filter) | noise.zen |
![]() |
| Mask | mask.zen |
![]() |
| Example | Source | Output |
|---|---|---|
| Hello (minimal) | hello.zen |
![]() |
| Bold | bold.zen |
![]() |
| Italic | italic.zen |
![]() |
| Rich text (inline spans) | richtext.zen |
![]() |
| Decorations | decorations.zen |
![]() |
| Code (syntax highlighting, dark + light) | code.zen |
![]() |
| Inline markdown from an external file | markdown.zen |
![]() |
| Block-level markdown article (headings, paragraphs, per-role styling) | article.zen |
![]() |
| Example | Source | Output |
|---|---|---|
| Group | group.zen |
![]() |
| Frame (clipping) | frame.zen |
![]() |
| Anchors (9-point grid) | anchors.zen |
![]() |
Relative stacking (anchor-edge) |
stack.zen |
![]() |
| Shared styles | styled.zen |
![]() |
| Image asset | image.zen |
![]() |
| Multipage (page 1 shown) | multipage.zen |
![]() |
| Example | Source | Output |
|---|---|---|
| Flowchart (shapes + connectors) | flowchart.zen |
![]() |
| Connector auto-routing (orthogonal, line-jumps) | connector-routing.zen |
![]() |
| Connector ports (semantic attachment points) | connector-ports.zen |
|
| Table | table.zen |
![]() |
| Charts (bar + donut + sparkline) | chart.zen |
![]() |

































