lini 0.2.0

A small, human-readable language for plain-text diagrams that compiles to clean 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"