lini 0.1.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
14
15
16
17
18
// SPEC section 4: `|name|` in the defs block sets defaults for every instance of
// that type. Lowest-specificity layer — anything more specific wins.

{
  |scene| layout:row gap:30 padding:20

  // Every rect rounds; every text starts small; every oval gets a thick
  // outline (the alert shape inherits and tightens it).
  |rect| radius:6
  |text| text-size:11 weight:bold
  |oval| stroke:#444 thickness:2

  |alert:oval| stroke:red size:36
}

cat   |rect| "Cat"
dog   |rect| "Dog" radius:0          // inline overrides the |rect| default
mouse |alert| "Mouse"