Hacker News new | ask | show | jobs
by sonicgear1 1358 days ago
Looking forward to it. I also see this as potential syntax that could be translated into html.
1 comments

Yes exactly. My approach was to make everything a component. In each component, you'd define your props (called "variants" in my language), elements, and styles.

Something like this:

  component Square
    variants
      color bg: red

    elements
      shape square

    style square
      width: 100px
      height: 100px
      fill: $bg
https://youtu.be/HHTYHm6qLFY

Fwiw I don’t think a new language is the right level of abstraction that will gain popularity.