Milda Language

The Milda Language is the formal description behind every design system built with Milda — a platform-neutral specification for components, behaviors, and foundations. It's the canonical form of the IR: produced by the editor, read by every generator.

#A spec, not a syntax you type

The language has a human-readable form for diffing and review, but its canonical shape is plain data (a JSON AST). You don't hand-write it — the visual editor produces it. Keeping it readable is about trust (you can inspect exactly what your system is), not about being an authoring surface.

#What it describes

  • Foundations — typed, layered, context-aware design tokens. See Foundations.
  • Components — neutral node structure, anatomy, and a typed props/events contract. See Components.
  • Behaviors — interaction modeled as composable state machines. See Behaviors.

#Platform-neutral on purpose

The language contains no CSS, no HTML tags, no framework APIs. Everything platform-specific is a generator's realization of the neutral model. That single constraint is what lets one specification target React, Figma, and more without forking. See The IR.

Status
The language is at version 0.1, frozen, with a normative JSON Schema and an executable grammar, validated end-to-end against a real-world component corpus. Editor-facing grammar tooling (syntax highlighting, transpilers) is on the roadmap.