Comment

Comment by danielvaughn

I've been working on a programming language for UI designers.

To put it simply, I think the trend towards no-code/low-code is misguided. The assumption behind these products is that code is slow, difficult, and expensive. I disagree - I think that "code" is merely a formalized written expression of what you want. It's actually the most efficient, easiest, and cheapest means to solving digital problems.

I believe anyone can write code if it's specific enough to a domain that they understand, so what I'm trying to do is create a hyper-domain-specific language around designing UI components. The goal is to have a platform agnostic base syntax, with "dialects" that can extend the language for any current or future platforms.

The idea is that designers could write in this language, and developers could build tools that will transpile this code into a consumable format for whatever system they're building for.

I have a very rudimentary demo site that's like halfway built: https://matry.design

edit - here is a simple example of what a component might look like in this language:

  component Button
    variants
      color bg: #007BFF
      text label: Click Me
      
    elements
      shape ButtonContainer
        text ButtonLabel

    style ButtonContainer
      fill: $bg
      padding: 10px

    style ButtonLabel
      content: $label
      font-size: 16px

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton