Direct answer: Declare is a declarative UI language written for two audiences at once, people and AI models. You describe what the interface should be, and a renderer builds it. When a model does much of the writing, the syntax optimizes for unambiguous parsing first.

Interface languages have always assumed a human reader. That assumption is breaking. When an AI writes most of the markup, the formats that survive are the ones a model can parse without guessing, and Declare is a deliberate attempt to build exactly that kind of format.

The trending query Declare is a UI language for you and your AI reached the Hacker News front page in late November 2026. Trends fade, and the question under this one keeps coming back: who is the reader of your code, and what does the format owe that reader? A file written for both a person and a model has to satisfy both at the grammar level.

Describe the outcome, let the renderer fill the gap

Declarative UI describes what the interface should be: its structure, its states, and the constraints between them. The steps to build it never appear, because the renderer fills that gap. HTML was an early version of the idea: you mark a heading as a heading, and the browser decides how to draw it.

The payoff shows up when requirements change. If the description says a list never exceeds four columns, the renderer can honor that rule on a phone, a widescreen, or a device nobody has designed yet. An imperative script written for one screen size has to be rewritten for every new target.

Human writesAI writesDeclarationRendererone inspectable description, two kinds of reader
ReaderWhat it needsFailure when ignored
Human designerReadable intent and quick editsA format nobody wants to touch
AI modelExplicit types, unambiguous grammarSilent divergence into a wrong render
RendererComplete states, valid constraintsA half-drawn interface at runtime

Strictness becomes a feature

Machine-readable formats reward strictness: explicit types, no ambiguous grammar, and validation errors that point to a fix. A human reader fills gaps automatically, and a model can too, but every ambiguity is a spot where two readings diverge and the wrong one gets rendered. Strict grammar removes the coin flip.

That is why Declare-style languages lean on named states and checkable constraints. A validation error that reports the exact rule and the exact line turns a broken screen into a one-line repair, and the same message teaches the model that wrote the file to correct itself on the next attempt.

missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

The human side of the file stays

Designers still review, tweak, and approve. What changes is the medium: intent becomes inspectable and diffable, so a pull request shows a color change as one edited line in a token file. Review stays human while the typing gets shared.

Version control rewards text that means one thing. Two declarations that differ in a single attribute produce a one-line diff, and a revert restores the prior interface exactly. That property moved configuration and infrastructure code into normal code review, and interface description is following the same road.

One description, many consumers

The pattern generalizes past one language. Config-as-UI, design tokens, and cross-platform rendering from a single source all share the same shape: one inspectable description feeding many consumers. Design tokens are the standard example: one token file drives web, iOS, and Android palettes with nobody repainting screens by hand.

The audience question explains why this works. A token file is strict enough for a build script to consume and plain enough for a designer to edit, so both readers share the same bytes. When one source renders to three platforms, a rebrand stops being three projects and becomes one edit.

Key takeaways

  • Declarative UI names structure, states, and constraints, and the renderer supplies the build steps.
  • AI models join the reader pool, which turns strict, unambiguous syntax into a real feature.
  • Precise validation errors convert broken declarations into one-line fixes and teach the model that wrote them.
  • Humans keep the review role, and inspectable, diffable declarations are what make that review fast.
  • The same description pattern already drives design tokens, config-as-UI, and cross-platform rendering.

Quick answers

What is Declare?
A declarative language for describing user interfaces that people and AI models can both read and write.

How is declarative UI different from imperative UI code?
Declarative code states what the screen should be; imperative code lists the steps to build it, and the renderer closes the gap.

Why does AI change how syntax is designed?
Models parse literally, so ambiguous grammar produces wrong renders, and strictness converts those mistakes into visible validation errors.

Do designers lose control?
No. They review, tweak, and approve declarations, and intent stays diffable in version control.

Where else does the pattern show up?
Design tokens, configuration-driven interfaces, and cross-platform rendering from a single source description.

One thing to do tonight

Pick one screen you own, a settings page works well, and write its structure as a plain declaration: components, states, and the rules between them. Reading your own interface back as data is the fastest way to see what a renderer actually does for you.