lini 0.11.1

Pretty diagrams from plain text, with fine-grained control. Compiles to clean, themeable SVG.
Documentation
// Styleable text (SPEC §3) and styled link labels (SPEC §9): a bare "…" is a
// <text> leaf that can carry its own text style in place — never wrapped — and a
// link's [ ] labels are the same styleable leaves, nudgeable with translate/rotate.

{
  layout: column; gap: 26; padding: 26; link: --gray;
}

"Styleable text, in place" { font-size: 20; font-weight: bold; }

|row#styles| { gap: 16; } [
  "default"
  "coloured" { color: --red-ink; }
  "bold" { font-weight: bold; }
  "italic" { font-style: italic; }
  "underline" { text-decoration: underline; }
]

|box#a| "Alpha"
|box#b| "Beta"

a -> b [ "nudged & turned" { translate: 0 -10; rotate: -6; color: --teal-ink; } ]