@mildastudio/milda 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  The **Milda language** - a platform-neutral design language for describing design
4
4
  systems and their components, and the canonical AST that tools exchange.
5
5
 
6
- Milda separates *what a component is* (its contract, anatomy, behavior, and
7
- styling intent) from *how any one platform realizes it*. A description written
6
+ Milda separates _what a component is_ (its contract, anatomy, behavior, and
7
+ styling intent) from _how any one platform realizes it_. A description written
8
8
  once can be generated into React, CSS, Figma variables, and - by design - other
9
9
  targets, without the description itself leaking platform assumptions.
10
10
 
@@ -12,6 +12,9 @@ targets, without the description itself leaking platform assumptions.
12
12
  > package from the Milda monorepo, which stays the single source of truth. See
13
13
  > [milda.dev](https://milda.dev) for the product and the full DSL documentation.
14
14
 
15
+ Try the language in the browser, with live preview of the tokens and components a file
16
+ describes, at [play.milda.dev](https://play.milda.dev).
17
+
15
18
  ## Install
16
19
 
17
20
  ```bash
@@ -19,7 +22,7 @@ npm install @mildastudio/milda
19
22
  ```
20
23
 
21
24
  ```ts
22
- import { preludeV0, validate, resolveToken } from "@mildastudio/milda";
25
+ import { preludeV0, validate, resolveToken } from '@mildastudio/milda'
23
26
  ```
24
27
 
25
28
  ## What's in here
@@ -37,10 +40,12 @@ import { preludeV0, validate, resolveToken } from "@mildastudio/milda";
37
40
  - **Facets, layout, states, capabilities** (`types/facets.ts`) - the
38
41
  platform-neutral styling and layout vocabulary.
39
42
  - **Prelude** (`prelude/preludeV0.ts`) - the standard library expressed as
40
- data: behavior *atoms*, *archetypes*, facets, states, and capabilities.
41
- - **Engine** (`engine/*`) - pure, side-effect-free semantics over the AST:
42
- `resolveToken`, `resolveFacets`/`resolveLayout`, `validate`, and `conformance`
43
- (which reports where a description has holes for a given target).
43
+ data: behavior _atoms_, _archetypes_, facets, states, and capabilities.
44
+ - **Parser and printer** (`dsl/*`) - the `.milda` reader (`parseMildaDocument`), the closed
45
+ vocabularies every tool imports (`dsl/vocabulary.ts`), and the surface version.
46
+ - **Engine** (`engine/*`) - pure, side-effect-free semantics over the AST: `resolveToken`,
47
+ `validate`, and `conformance` (which reports where a description has holes for a given
48
+ target).
44
49
 
45
50
  ## Design invariants
46
51
 
@@ -62,8 +67,10 @@ repo (`@mildastudio/core`, `@mildastudio/contract`, `@mildastudio/generate`,
62
67
 
63
68
  ## Status
64
69
 
65
- `0.x` - the language and AST are still evolving; treat the shape as unstable
66
- until `1.0`.
70
+ `0.x` - the language and AST are still evolving; treat the shape as unstable until `1.0`. The
71
+ surface syntax is versioned separately (`milda 0.7` in a file's header) and every change to it is
72
+ recorded in [`spec/FORMAT.md`](spec/FORMAT.md) §6. The documentation, including a tour and a
73
+ keyword-by-keyword reference held to this parser by tests, is at [milda.dev](https://milda.dev).
67
74
 
68
75
  ## License
69
76