lini 0.5.0

Pretty diagrams from plain text, with fine-grained control. Compiles to clean, themeable SVG.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Element rules set per-type defaults — the lowest-specificity layer. Anything
// more specific (a class, the instance's own block) wins.

{
  layout: row; gap: 30; padding: 20;
  |box| { radius: 6; }
  |oval| { stroke: #444; stroke-width: 2; }
  |alert::oval| { stroke: red; width: 36; height: 36; }
}

cat   |box| "Cat"
dog   |box| { radius: 0; } "Dog"
mouse |alert| "Mouse"