It should probably say up front that this is an npm package along with the tooling for it, and the output runs in a browser.
"This page is written in it. By an LLM."
Isn't HTML a DSL for UI? What's wrong with it?
XAML was a notoriously bad idea.
This doesn't look much better than that.
Snippet -
```
document ::= ( comment | blank )* screen-line body
body ::= ( element-line | comment | blank )*
element-line ::= indent kind [ name ] meaning* [ modifiers ]
```
```
document = { template } ;
template = "@template", identifier, newline, { node }, "@end", line-end ;
node = group | row ;
group = "<", identifier, ">", newline, { node }, "</", identifier, ">", line-end ;
row = atom, { "|", atom }, line-end ;
atom = reference | component | spacer ;
reference = "[[", identifier, "]]" ;
component = "[", label, [ "|", identifier, { "|", property } ], "]" ;
property = identifier, "=", value ;
value = json-scalar | binding ;
label = label-part, { label-part } ;
label-part = literal-text | escape | binding ;
binding = "{", identifier, { ".", identifier }, "}" ;
spacer = "..." ;
line-end = newline | end-of-file ;
```
Still evolving.
Core idea is to be able to define interfaces in a minimal language, without going into too much details about attributes, say height, width, etc
“Show boxes”?
UI used to strive for making it easy for users to understand the software’s mental model, current state, and possible actions. Now it’s about looking cool (the same as the other cool kids).
For eg. compare this:
``` Window { textColor: "slategray" property int v: 40
} ```with Declare:
``` App [ textColor = slategray,
```