@astryxdesign/cli 0.7.16-canary.gfef050d → 0.7.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,374 @@
1
1
  # @xds/cli
2
2
 
3
+ # 0.7.16
4
+
5
+ #### Experimental APIs
6
+
7
+ - `astryx experimental theme editor`: a new accent or neutral color keeps the base theme's own secondary text shade on selected items and rows, a dropzone, numbered citations and segmented-control labels while that shade still reads at 4.5:1; it moves only when it no longer does, and the note says it was kept readable. A write that repeats what the base theme already shows is no longer listed as a styled change. ([#11468](https://github.com/meta/astryx/pull/11468))
8
+ - `astryx experimental theme editor`: the app copy in `src/themes/<theme>/` is written exactly as `theme build` of its source writes it (the build header names that source), so `theme build --check` and `astryx doctor` read it as current, and a stable rebuild of it leaves it the editor's (the next change writes it again). A change that fails after its build no longer leaves the refused build in the app copy: the copy is written only once the change is saved. ([#11468](https://github.com/meta/astryx/pull/11468))
9
+ - `astryx experimental theme editor show`: a show that is refused (or fails to render) leaves the app copy in `src/themes/<theme>/` as it was; the copy is written once show succeeds. System files such as .DS_Store in the copy folder no longer stop the copy; a file of yours there does, and `wiring` then gives the steps by hand, naming that file. ([#11468](https://github.com/meta/astryx/pull/11468))
10
+ - `astryx experimental theme editor`: CSS read with the current specifications' grammar. ([#11378](https://github.com/meta/astryx/pull/11378))
11
+
12
+ - The editor also reads the current specifications' grammar from `@csstools/css-syntax-patches-for-csstree` (a new dependency, pinned). It adds about 0.1 MB unpacked to the install (one 79 KB JSON file, no dependencies of its own), and loads only when the editor checks a CSS value; no other command loads it, and startup is unchanged. A property MDN marks obsolete but the specifications still define, as browsers ship it, is taken: `font-stretch`, so the font shorthand split names a command that works.
13
+ - A negative number the current grammar ranges at 0 or more is refused on a part (`line-height -1`, `gap -2px`), with the positive value as the suggestion.
14
+ - A `color-mix()` share outside 0% to 100% is refused for tokens, part colors and the color dials, and the mix with the share at its limit is suggested.
15
+ - A font size or weight given alone to `font` on a part (`small`, `1rem`, `700`) is suggested as `font-size` or `font-weight`, never as a family.
16
+ - A relative color that keeps its channels (`rgb(from red r g b)`) and `light-dark()` with the same color twice are read as that color. A `color-mix()` in a space the editor does not mix in, or a relative color that changes its channels, says so and suggests the nearest color it can work out.
17
+
18
+ - `astryx experimental theme editor`: more refusals and notes that are true. ([#11378](https://github.com/meta/astryx/pull/11378))
19
+
20
+ - A negative percentage the current CSS grammar ranges at 0 or more is refused on a part (`line-height -50%`, `gap -10%`).
21
+ - A `color-mix()` share may be written as any CSS percentage (`5e1%`, `+50%`, `calc(50%)`).
22
+ - Line-height tokens (`--text-*-leading`) take a number with no unit, as Core multiplies them by a text size; `1.5em` and `150%` suggest `1.5`.
23
+ - `headings` in other letters or as a weight number suggests the word meant (`BOLD` is bold), and a weight number the nearest weight rung (`800` and `900` are heavy), never a lighter one.
24
+ - A whole-theme font under fonts set for body and headings says which role fonts it sits under and how to clear them.
25
+ - A font one of the editor's own presets leads with (Comic Sans MS) gets no "must load" note.
26
+ - `text-size more` or `less` at the end of the dial's range suggests the base font size token, never a size the dial refuses.
27
+ - A CSS font value on a part made of keywords (`italic bold`, `bold 1rem`) is split into its longhands, never a family; after the size, the rest is the family, as CSS reads it (`1rem bold` is size 1rem with the family bold).
28
+
29
+ - `astryx experimental theme editor`: number tokens read as CSS reads them. ([#11378](https://github.com/meta/astryx/pull/11378))
30
+
31
+ - Only the tokens Core's stylesheet multiplies by a size inside calc() (the line heights) refuse a unit; weight tokens take the font-weight keywords again (`bold`, `normal`), so a theme saved with one stays editable.
32
+ - Numbers are read as the browser reads them: `1.5e0`, `+1.5`, `15E-1` and `1.5EM` are numbers, and a `color-mix()` share like `50.%` is refused.
33
+ - A CSS font value on a part with a size and line height (`1rem/1.5`) or a size written as math (`calc(1rem + 2px)`) is split into its longhands; a part named twice (`bold bold`) is refused, never written as a family.
34
+
35
+ - `astryx experimental theme editor`: weights on phones, and values read as CSS reads them. ([#11419](https://github.com/meta/astryx/pull/11419))
36
+
37
+ - Heading and text weights (the `headings` weight dial, `--text-*-weight` tokens) now apply on phones too: they are written into the phone rules the base theme sets, as font families are.
38
+ - A token set to `var(--x, <fallback>)` checks the fallback as the token's own kind.
39
+ - Size tokens and color channels read numbers as CSS does: `1.px` and `rgb(255. 0 0)` are refused (with `1px` suggested where that is all), and `+4px` and `4e+1px` are taken.
40
+ - `vibrancy` suggests the value meant (`MORE` is more, `70%` and `7e1` are 70), and no value when the theme has no color to saturate.
41
+ - The `headings` result lists its weights in words, not `[object Object]`.
42
+ - The whole-theme and role `font` take a family alone: a size, a weight or a whole CSS font value is refused with the family, and the base size or headings command where it applies.
43
+
44
+ - `astryx experimental theme editor set`: when a part does not read the token named, the suggestions name only tokens of the same kind (a weight goes to a weight token, never to a size or a line height). A `var()` fallback is checked wherever it sits (inside `calc()`, `max()`, `color-mix()`), and an empty fallback on a typed token is refused. A size token given a bare number suggests that number in px (`16` → `16px`), and `text-size 20px`, `2e1`, `+20` and `1.25rem` suggest `text-size 20`. ([#11419](https://github.com/meta/astryx/pull/11419))
45
+ - `astryx experimental theme editor`: fallbacks, saved font dials and size suggestions. ([#11419](https://github.com/meta/astryx/pull/11419))
46
+
47
+ - A part value's `var()` fallbacks are checked against the property (`padding 'var(--nope, red)'` is refused), as token fallbacks are.
48
+ - A saved `font` dial that `set` would refuse (a CSS keyword such as `inherit`, a size, a whole CSS font value) is reported with the commands that fix it, and never built.
49
+ - A size one slip from a valid one suggests that size: `16 px` and `16pxx` suggest `16px`, `1,5rem` suggests `1.5rem`. `text-size` suggests the nearest size it takes: `20 px` and `125%` are 20, and a size past either end is that end.
50
+
51
+ - `astryx experimental theme editor`: `font math` is accepted as the CSS generic family it is; the generic families are read from the CSS grammar. With an exact `--font-size-base` set, `how 'bigger text'` steps that token (14px to 17.5px) instead of offering a `text-size` the token would mask. A color dial edited by hand to a see-through, system or variable color (`#2563ebcc`, `transparent`, `Canvas`, `var(--x)`) is refused by name with the undo that removes it, instead of building a gray accent. A value typed with full-width characters, a trailing dot or a CSS comment (`18`, `18.`, `#2563eb`, `#2563eb /* brand */`) is suggested as the value meant. `set` refuses a `var()` loop that closes through a token in the theme's own `<theme>.theme.ts`. `show` notes each token the theme's own source sets that a whole-theme dial also writes. ([#11419](https://github.com/meta/astryx/pull/11419))
52
+ - `astryx experimental theme editor`: suggestions keep the value meant, and fractional text sizes say how they build. ([#11419](https://github.com/meta/astryx/pull/11419))
53
+
54
+ - An exact token refused only for how its value was typed (a trailing `;`, a comment, quotes around it, full-width `#`) suggests that same value, not a stock one.
55
+ - A font name that needs quotes (`Font Awesome 6 Free`) on a font token or a part's `font-family` is suggested quoted, as the font dial writes it.
56
+ - A fractional `text-size` (`15.5`) is saved as the whole pixel the type scale builds, and the result says so.
57
+
58
+ - `astryx experimental theme editor how`: mode phrases, questions about what is set, the focus ring, and changes by an amount. ([#11378](https://github.com/meta/astryx/pull/11378))
59
+
60
+ - "The same accent in light and dark" sets both modes, and a trailing "and dark mode only" still makes the theme dark-only.
61
+ - A step that cannot move (badges already fully round) says so, with no command that would be refused.
62
+ - Questions about what is set now or the choices ("how round are the cards now?", "what are the available corner values") get `show` and the lookup, never a change.
63
+ - "Remove the focus outline" sets its width to 0 and says what that costs; "outline offset" and "focus ring offset" set `--focus-outline-offset`.
64
+ - "Decrease the radius by 2px" moves the corners from the theme's own radius now (its corners setting applied); a change by an amount on a part points to its current value instead of setting the amount.
65
+ - "Caret color" sets `caret-color`; placeholder text and the selection highlight say they have no setting.
66
+ - Screen-size, print and device conditions ("below 600px", "on tablets", "the print version") say the editor has no such conditions, instead of reading "600px" as a radius or "tablets" as tables.
67
+ - "Text less black" lightens the text.
68
+ - Each item of a list keeps its own values: "headings 32px bold, body 16px regular, captions 12px" sets the headings and the body as asked, with no contradiction, and "captions" (no part) takes nothing from its neighbors.
69
+
70
+ - `astryx experimental theme editor how`: a negated mode, the CSS cursor, device words beside an ask, and labels. ([#11378](https://github.com/meta/astryx/pull/11378))
71
+
72
+ - "Don't touch dark mode, make the accent orange" changes light mode only.
73
+ - `cursor: pointer` sets the CSS cursor; only "caret" or "cursor color" is the text cursor's color.
74
+ - A device or print word ("cramped on mobile", "when printing") no longer drops the ask: the rest is answered, with a note that the editor has no such conditions.
75
+ - A question about one part's state or group ("which parts are in the inputs group", "how round are the cards now?") gets that part's lookup as well as `show`.
76
+ - "Not so round" is one step less; "avoid pure black text" picks a near-black; "flat cards, not flat buttons" changes only the cards.
77
+ - `NaNpx` and `Infinitypx` are refused as not numbers; `1e3px` is 1000px.
78
+ - Labels are the field label part (a checkbox's or switch's own label when named); "visited links" says a link has no visited state set can name.
79
+ - Tailwind `border-2` is a 2px border width and `rounded-full` a pill; `.btn-primary { … }` is the primary button only.
80
+ - "Remove all my changes" takes back every setting; a question in a script how cannot read gets no guess.
81
+
82
+ - `astryx experimental theme editor how`: "2px rounder" is a change from the corners now, and "all corners like the buttons" copies the buttons' radius. ([#11378](https://github.com/meta/astryx/pull/11378))
83
+
84
+ - An amount with a comparative ("2px rounder", "2px sharper", "8px larger") is a change from the value now: the theme's corners move from its own current radius (its settings applied, not the base theme's), and a part's corners move from the radius token it reads. Anywhere else ("4px wider") how says set takes the new value instead of setting the amount.
85
+ - "All corners like the buttons" sets every other radius token to the one buttons read.
86
+
87
+ - `astryx experimental theme editor how`: a negated dark mode, undo of what is set, typed times and transforms, and the right targets. ([#11419](https://github.com/meta/astryx/pull/11419))
88
+
89
+ - "Except in dark mode", "but not in dark mode" and "leave dark mode alone" change light mode only; "not pure black" is a near-black and "not pure white" a near-white.
90
+ - "Undo the corners" on a theme that sets no corners says there is nothing to undo.
91
+ - "animation-duration 0s" is 0ms; "translateY(-2px) on hover" is a transform on hover; "shrink headings by 20%" says set takes the new value; "fade in tooltips" says the tooltip has no motion of its own.
92
+ - "Why are my buttons black" is a lookup, never a change; "is my theme valid", "how many dials" and "list every change" get the command that answers them.
93
+ - "radius sm/lg", "setRadius(4)" and "½rem" are read as values; "#22c55e in light, #4ade80 in dark" sets the accent for each mode; two-word CSS color names ("midnight blue") are the CSS color.
94
+ - "Text on the accent is hard to read" sets the on-accent text color that reads in each mode; "5 lines tall text box" sets the text area's height in lines; "dropdown shadow" is the dropdown's menu; "checkboxes green" is the checked fill.
95
+
96
+ - `astryx experimental theme editor how`: an amount in rem or em with a comparative ("0.5rem rounder") is a change from the value now, counted at a 16px root, and "tighter", "roomier", "looser", "bolder" and "heavier" read as comparatives too. Where how cannot work out the new value, it says to set the value now plus or minus the amount. ([#11419](https://github.com/meta/astryx/pull/11419))
97
+ - `astryx experimental theme editor how`: a confidence gate, and dislikes, take-backs and dark-mode selectors read. ([#11419](https://github.com/meta/astryx/pull/11419))
98
+
99
+ - When a question is a question ("is the card too round?"), says "tell me" or "but not too", or asks to "stop" something, how gives the lookup and asks for the change in words instead of guessing a write; "explain X" is the lookup of X.
100
+ - "I hate the shadows", "skip …" and "not a fan of …" ask for none of it when that is the whole ask.
101
+ - A change on one member of a group ("the text area") carries `--only`, so it does not reach the whole group.
102
+ - "3 pixels sharper", "take 2px off" and "remove 4px from" move the value down from where it is.
103
+ - "darkmode", `html.dark .card {…}` and `@media (prefers-color-scheme: dark) {…}` scope the change to dark mode.
104
+ - "Take back the shadow change" and "shadows like before" undo only what the theme sets, else say there is nothing to take back.
105
+ - "Pointer cursor on hover" sets the cursor; "opened accordion title" is the open state; "squre" and "eckiger" are square; "cards look flat" adds depth; "darker while being clicked" is the pressed state.
106
+
107
+ - `astryx experimental theme editor how`: every change by an amount or a direction starts from the theme itself, not the base theme. A darker or lighter color starts from the theme's own color in each mode, and says when it is already as dark or as light as it goes; a bigger text size on a part starts from the size the theme set there; a part's corners moved by an amount start from the radius the theme set on it. Token lookups show the theme's own value. ([#11419](https://github.com/meta/astryx/pull/11419))
108
+ - `astryx experimental theme editor how`: the confidence gate works per clause, and a one-mode change never removes a mode. ([#11419](https://github.com/meta/astryx/pull/11419))
109
+
110
+ - A clause that is a question, a "tell me", a "stop …" or a "don't touch …" holds back only itself: "stop making the buttons so round, make them square" makes them square, "don't explain, just set the accent to crimson" sets crimson, "don't touch spacing, just make text larger" changes only the text. A whole question ("can the cards be rounder?", "are buttons too round?!") gets the lookup; "can you make …" is an ask.
111
+ - Questions without a question mark ("are my corners too round", "does it use a shadow on cards") are lookups; suggestions ("why not square buttons", "what about a teal accent", "is there a way to …") are asks. Sarcasm ("yeah, because …", "just what I wanted", "…, nice") gets no write.
112
+ - "Enough with X", "quit with X", "nobody asked for X", "who needs X", "loathe X", "X 👎" and "❌ X" ask for none of X; "I hate it" after a description leaves the description as the ask.
113
+ - "Too airy" is tighter, "headings too thin" bolder, "not bright enough" brighter.
114
+ - "Keep the dark mode accent, change only light to violet" sets the light accent; a light-only or dark-only theme only when the ask is about the theme's modes.
115
+ - "Links not underlined until hover" removes the underline and adds it on hover.
116
+
117
+ - `astryx experimental theme editor how`: "bolder" or "a bit lighter" headings move one rung from the headings rung the theme sets (and say so when there is no rung further), and "a bit bigger" text moves a numeric text size by the dial's own step. `how <theme> <question>` takes a first word that names an existing theme as the theme, as `set`, `show` and `undo` do. ([#11419](https://github.com/meta/astryx/pull/11419))
118
+ - `astryx experimental theme editor how`: a write only for a direct ask. A clause that is a condition ("if the corners are round, …", "unless …"), an indirect question ("I wonder if …", "is 4px a good radius", "would #333 work", "should corners be 6px or 8px"), a double negative ("don't not round …") or a check ("can you check if …", "just checking: …") gets the lookup and a request to say it as an ask, not a guessed change. Politeness ("if you can, …") is not a condition. "Can the buttons be rounder?" and "can I get a serif font?" are asks; a question followed by an ask ("whats the padding on cards make it 12", "do badges have borders? remove them either way") answers the ask, with "it" or "them" read as what the question named; "dark page #0b0b0f" sets the dark page. ([#11419](https://github.com/meta/astryx/pull/11419))
119
+ - `astryx experimental theme editor how`: "more muted", "pastel", "duller" and "subdued" lower vibrancy and "less muted" raises it (a token name such as `--color-background-muted` is never read as the word); "less light" or "less thin" headings are one rung bolder, "less heavy" one rung lighter, "less tight" wider letter spacing; a weight question lists only the weight tokens a part reads; "too dark" asks for lighter and "too light" for darker; "no big gaps" is less spacing; sarcasm anywhere in a question ("great, even more shadows, just what I wanted", "…, nice") holds back every clause. ([#11419](https://github.com/meta/astryx/pull/11419))
120
+ - `astryx experimental theme editor how`: a write for a clause that reads as an ask: an imperative, a thing with a value, a style word with a part, a wish about a named thing, or a description of the look wanted ("the page is white"). A tag question ("cards have a shadow, right?"), a hypothetical ("imagine …", "consider …"), a condition ("whenever …", "once …", "should the cards …"), sarcasm or a double negative gets the lookup instead. "nuke", "zero out", "sharpen", "flatten", `X++` / `X--` and `X: off` say which way to go; "dark.page=#…" and "dark mode only: accent #…" set dark mode. ([#11419](https://github.com/meta/astryx/pull/11419))
121
+ - `astryx experimental theme editor how`: "show me …" and "give me …" are lookups. "decrease", "shrink", "trim", "minimize" and "scale down" mean less. "Only when dark mode is on" and "except in dark mode" keep their mode. Removal words in other languages and 🚫 remove; "X are heavy" lightens; "don't touch the buttons" and "leave the corners" never write the excluded part. Inline list numbers ("1. … 2. …") are breaks, a color asked for a part in a long note stays with that part, and "tooltips darker" stays a color. ([#11419](https://github.com/meta/astryx/pull/11419))
122
+ - `astryx experimental theme`: the thirteenth pass of fixes. ([#11378](https://github.com/meta/astryx/pull/11378))
123
+
124
+ - `undo` leaves out what this Core refuses in the step it goes back to. A saved setting that names no design token or CSS property, or a property with no part, is reported.
125
+ - `show` builds an own change to `<name>.theme.ts`, and names a theme source that no longer builds. Its colors say where the theme source wins over the generated shade.
126
+ - A setting covered by a later one that spreads over its part is named in `set` and `show`.
127
+ - `corners 2e1px` and `+4px` are sizes. A state is refused for padding on a part whose padding Core sets from the plain value only. `--state disabled` also matches a wrapper whose input inside is the one disabled. `how <part>` lists the states `set` takes there.
128
+ - `new` suggestions keep every option given; `--like` twice is refused. More suggestions run as printed in JSON. The merge snippet's paths start from the generated themes module's folder. The help names `experimental theme compile` to build an editor theme again.
129
+
130
+ - `astryx experimental theme editor`: corners set for a state (`corners pill --on button --state hover`) are accepted, and the result names the part's derived radius variable, which Core sets from the plain value only. Padding that a part expands into container spacing is refused with a state, judged on the part named (`--only` keeps it to one member of a group). `focus-within` is taken on a part that holds content. A one-mode value that is not a color is refused for that reason first. ([#11378](https://github.com/meta/astryx/pull/11378))
131
+ `show` leaves every file in place when the theme source does not build, and names a token value that is not text. A theme named by a path or in capitals (`use ./themes/t`, `use T`) gets the editor-theme answer.
132
+ - `astryx experimental theme`: `show` builds a change in a module the theme source imports, and an unreadable build with a broken source line says what to put back. `compile` of an editor theme from a subfolder names the run from the app root. `--state disabled` reaches the inner control only on form controls styled on a wrapper, never a whole button group. A step back writes the same color files. ([#11378](https://github.com/meta/astryx/pull/11378))
133
+ - `astryx experimental theme editor`: every suggestion a refusal gives runs and does what it says. `undo t Corners` reads the setting name in any case, and a near name (`undo t corner`) suggests `undo t corners`, never a bare `undo t` that would step back another change. A hand-edited setting suggests a value to set only for a token whose value has the wrong type. A flag given twice suggests its first value that the flag takes (`--like neutral`, `--corners small`, `--section actions`, and for a color dial the first that is a color: `--accent banana --accent red` suggests `--accent red`), or drops it. A folder of your own files suggests a free, valid theme name (`u-2`). After damaged or lost settings, the note says `undo` steps back to the settings from before the last change, and that the last change itself is not kept. A corrected `new` keeps every other option given, with `--like` in another case read as the built-in theme it names. ([#11378](https://github.com/meta/astryx/pull/11378))
134
+ - `astryx experimental theme editor`: `--state disabled` reaches the control inside only on a part that holds one control (a typeahead), never a radio list, input group or field. `corners none`, `sharp`, `zero` and `0%` are square; `spacing none` names the tightest rung. Undoing a part's state setting names the group's setting for the same state. `focus-within` is taken on a part that holds content in a prop (a chat composer's input) or children (a popover). ([#11419](https://github.com/meta/astryx/pull/11419))
135
+ A token in your own theme source that is not text, alone or in a pair, is refused before anything is written, with an example of the token's own type. A helper imported as `./x.js` counts when only `x.ts` exists. A `set` refused for your own file suggests reading it. The compile help lists the editor-theme refusals.
136
+ - `astryx experimental theme editor`: an invalid theme name suggests a name `new` takes (`my-neutral` for a built-in theme's name, a free numbered name for a taken folder), and says "a theme here already" only for the same name in another case. `new` on an existing theme suggests `set <theme> base <the --like given>` and a free name with the same options. A setting listed twice by hand names both values, and setting it to one value or undoing it fixes the list, without stepping back another change. With the built module missing, `set` and `undo` say the token changes are not listed, and never that the change shows nothing. ([#11419](https://github.com/meta/astryx/pull/11419))
137
+ - `astryx experimental theme editor show` follows every local file the theme source reads, as the build resolves it (`./tok` to `tok/index.tsx`, `./c.cjs` to `c.cts`, `./j.jsx` to `j.tsx`), including your own files in the theme's `tokens/` folder; only the editor's generated palette files there are left to their own stamps. A pair of values in quotes such as `['600', '700']` is no longer called "not text"; a size given as a number without a unit is named, with an example that passes, and a `{light, dark}` object is named instead of a raw error. `experimental theme template` in a folder the theme editor made guards only the editor's own files: an earlier template there is replaced with `--overwrite`, and for an editor file the skip names a free path instead of `--overwrite`. `undo` refuses an `--only` the setting was not made with, matches a value whatever its comma spacing (`rgb(255,0,0)`), and `undo <theme> mode`/`base` says when the history does not reach back to how the theme was made. A build that fails puts the files back and says nothing was changed, and `show` no longer says it built a theme its source cannot carry. ([#11419](https://github.com/meta/astryx/pull/11419))
138
+ - `astryx experimental theme editor`: a bare number on a length (`padding 4`) suggests `4px` with every flag kept, never the property's reset value. A part named by its class (`.astryx-card`) or its component (`<Card>`) suggests the part. What the buttons and surfaces dials write is read from the build, so an exact property under them is named in `set` and `show`, and undoing it names the dial that applies. An unknown state suggests the one meant (`pressed` is active), or how to see the part's states. After a change and its undo, the sheet no longer says it is out of date. ([#11419](https://github.com/meta/astryx/pull/11419))
139
+ - `astryx experimental theme editor show`: a light/dark pair with a missing half is named even when the other half holds commas (`rgb(0, 0, 0)`). A helper the theme source reaches with `require()` or `import x = require()` counts as part of the source. A stylesheet or module that another theme's build wrote (`compile other.theme.ts --out themes/g/g.css`) is built again from the editor's settings. ([#11419](https://github.com/meta/astryx/pull/11419))
140
+ A number given to a part property gets px on each bare number (`4 8px`, `8 / 4`, `4 px`), within the property's range, and never falls back to its reset value. `--on checkboxes` names the checks group as `how` does. `corners sharper` and `spacing roomier` step from the value now. A state in another spelling (`focusVisible`, `focus_visible`) is that state.
141
+
142
+ When `themes` in the app is a file (or a link to one), every editor command refuses, saying to rename or move it, instead of failing with a raw error.
143
+
144
+ - `astryx experimental theme`: template overwrite on any disk, and undo answers that are true. ([#11419](https://github.com/meta/astryx/pull/11419))
145
+
146
+ - `experimental theme template … --overwrite` never replaces a theme editor file under another spelling of its name (`themes/t/T.theme.ts` on a case-insensitive disk, or through a link).
147
+ - `undo <theme> mode` or `base` on a theme with no saved change says so, instead of claiming its history does not reach back; after every step is undone it says the value was never changed.
148
+ - `undo <theme> headings <word>` with only the other half set names the half that is set.
149
+ - A mistyped `base` suggests only a base this project has installed, and says when the name is a theme made here (which cannot be a base).
150
+ - `undo <thing> <value>` matches the saved value in either quote style and with any spacing around `/`.
151
+
152
+ - `astryx experimental theme editor`: a mistyped `--like` or `base` suggests only a base the app has installed, and with none near, `base none` and the installed bases. `undo <theme> base` or `mode` after a change and its reverse says it is back at the value the theme was made with. `new` refuses an option it does not take with its help, like the other editor commands. A theme folder copied or renamed by hand names the files to rename. A padding (or other) shorthand set after its sides on a part removes them, as its note says, and `undo` brings them back. A hand-edited part property value its CSS grammar refuses is named, like a dial's. `show` builds again when an output is missing or was edited by hand, as `compile --check` finds them. ([#11419](https://github.com/meta/astryx/pull/11419))
153
+ When your own `<theme>.theme.ts` does not parse, `set`, `undo` and `show` refuse before writing or removing anything (the palette files under `tokens/` stay), with `cat` of the file; a failed change that removed the `tokens/` folder puts it back. A build temp file left by a command stopped mid-build is swept after ten minutes.
154
+ - `astryx experimental theme editor show` renders its preview pages again only when what they show changed (the CLI, Core, the page or the theme's build): a show with nothing new takes about a second. A built output that cannot be read, or a folder in its place, is refused by name with a command to inspect it, in `show` and `compile` alike. Every file the editor's build writes counts when show checks the build, the generated color references too, and a hand edit inside the generated settings module is built over from the settings (and `compile` refuses it). A check of the outputs that cannot run is no longer read as a match. A theme busy with another command suggests this same command again, once the other ends. ([#11419](https://github.com/meta/astryx/pull/11419))
155
+ - `astryx experimental theme editor`: a theme file that is a folder or cannot be read (its settings, source, stylesheet, module or undo history) is named with what is wrong and `ls -la <file>`, instead of a crash or "damaged"/"not valid JSON"; no message suggests deleting a file (a damaged history is moved out of the theme folder instead). `./t` and `.\t` name the theme `t`. A mode or base written in other letters (`Dark-Only`, `Neutral`) is offered back fixed, and a base is suggested only when it is installed. A missing argument names what the command takes and what it was given (`set corners small` reads `corners` as the theme), with its usage and `--help`. ([#11419](https://github.com/meta/astryx/pull/11419))
156
+ - `astryx experimental theme editor`: a settings file whose `lifted` field is not a list of text is named, with the undo that puts it back, instead of a crash. Setting a whole-theme dial notes each token your own `<theme>.theme.ts` sets itself, which wins over the dial, so a change that does not show is explained. ([#11419](https://github.com/meta/astryx/pull/11419))
157
+ - `astryx experimental theme editor show` renders its pages again when the Core or base theme package it runs from changes, even at the same version (a linked or patched copy), and when a page was edited by hand: the page records a hash of itself beside its render key. A folder in place of an output the build writes for some themes only (the variants types) is refused by name, like the other outputs. ([#11419](https://github.com/meta/astryx/pull/11419))
158
+ - `astryx experimental theme editor`: a built type file (`<theme>.d.ts`, `.css.d.ts`, `.variants.d.ts`) replaced by a folder is named with `ls -la <file>`, never with an `--out` the editor does not have. A theme name one letter off an existing theme suggests the same command with that theme's name first (`set brnad corners small` → `set brand corners small`), and `new` with the typed name only after. An empty theme name (`''`, `-`, an unset variable) says the name is empty and names the themes here instead of `new my-theme`. ([#11419](https://github.com/meta/astryx/pull/11419))
159
+ - `astryx experimental theme editor`: a token your own `<theme>.theme.ts` sets only in a scope (`onDark`, `components`) no longer counts as page-wide, so it never masks a dial or closes a token loop; only its top-level `tokens` do. A preview page with text added after its render stamp is rendered again. The `editor show` docs list ERR_FILE_EXISTS and ERR_WRITE_FAILED, say ERR_UNKNOWN_THEME also covers a base theme package that is not installed, and the exit-code row names every refusal. ([#11419](https://github.com/meta/astryx/pull/11419))
160
+ - `astryx experimental theme editor`: a render that fails in `show` (two copies of React, a component that throws) is refused with `doctor` and "Nothing was written" wherever it happens; outputs that `show` made again are put back first. Two copies of React are now named as the cause (Core's own React is found from its entry). In a workspace whose root does not use `@astryxdesign/core` (Core hoisted to the root), the root and folders without a `package.json` of their own are refused, naming the workspace's apps that use Core with the `cd` to run from, so no theme lands outside an app. `undo <theme> radius-element` and `undo <theme> padding` suggest the token (`--radius-element`) or the property with its `--on <part>`, never a step back that undoes another change. ([#11419](https://github.com/meta/astryx/pull/11419))
161
+ - `astryx experimental theme editor`: a word that names a JavaScript object built-in (`constructor`, `__proto__`, `toString` and the like), given as a value, a scope, a state, a flag or a `how` question, gets the same refusal as any other unknown word instead of an `ERR_UNKNOWN` crash. Every word table the editor reads with typed text now answers only for its own entries. ([#11419](https://github.com/meta/astryx/pull/11419))
162
+ - `astryx experimental theme editor` finds the app by one rule: the nearest folder at or above the working folder whose package.json lists `@astryxdesign/core` (in dependencies, devDependencies or peerDependencies). A workspace member that does not use Core, a subfolder of an app that does not list it, a workspace root with deep globs or any pnpm-workspace.yaml form are refused with where Core resolves from and the workspace's apps that list it, each with the `cd` to run from; nothing is written into the wrong folder. A nested repository inside an app no longer hides the app above it. ([#11440](https://github.com/meta/astryx/pull/11440))
163
+ - `astryx experimental theme editor`: the home folder is the app when its own package.json lists Core; a folder inside node_modules is never the app; a dependency field that is not an object reads as no Core instead of failing; install suggestions use the app's package manager; a Yarn Plug'n'Play app gets its own refusal from any of its folders; the workspace refusal names apps up to six folders deep and writes a folder starting with `-` as `./-name`; a package.json that does not parse is named with the parser's error and its place. ([#11440](https://github.com/meta/astryx/pull/11440))
164
+ - `astryx experimental theme editor`: a token set on one part (`--on`) that reads a whole-theme token is checked for a loop only within the scope it is set in. The part reads its own settings first and the whole theme's after, and a whole-theme value never reads a part's, so `--color-accent var(--color-text-primary)` with `--color-text-primary var(--color-accent) --on top-nav-heading` is accepted in either order, and the saved settings no longer leave `show` and every `set` refusing; a loop within one part or within the whole theme is still refused. An exact accent (or other fill color) given as `var()` of another token, a two-color `light-dark()` or a color function of tokens is read as the color it shows in each mode, so the text on it is picked to read on that color and the notes name it (`var(--color-warning) = #ffce2f`); a value that still cannot be read as one color is named as unchecked instead of the generated shade. ([#11419](https://github.com/meta/astryx/pull/11419))
165
+ - `astryx experimental theme editor`: a theme's own `<theme>.theme.ts` deleted by hand is written again by `show` or the next `set`, which say so, and `compile` of it suggests `editor show`. `text-size` and `type` name an exact role size they keep (`--text-body-size`, heading sizes), and a role or whole-theme font names an exact `--font-family-<role>` it keeps, with the undo that frees it; undoing a role font names that token as what applies. A value pasted with `!important` says it is not used and suggests the value without it, and the font dial reads a pasted `Georgia, serif;` or a comment as the font meant. ([#11440](https://github.com/meta/astryx/pull/11440))
166
+ - `astryx experimental theme editor` reads the tokens your own `<theme>.theme.ts` sets from what the build made of it, so any way of writing the file counts (a namespace import, a renamed `defineTheme`, a template, a spread of a shared object); before its first build the file is read as written, and a change the next build shows to make tokens read each other is refused with the files put back. The base theme's own values are never counted as yours, and they close a token loop and make a part read a token as the base theme's rules do. An accent your theme file sets is the color the palette picks text for, and an exact token your theme file also sets says the file's value shows. ([#11440](https://github.com/meta/astryx/pull/11440))
167
+ - `astryx experimental theme editor`: an exact token hand-edited in the settings file to a `var()` that names no design token (and has no fallback) is named by `show` and every later command, with the `undo` that removes it, as `set` refuses it; it is never built. The `font` dial reads any run of spaces or tabs inside a family name as one space, so `font 'Open Sans'` names Open Sans. ([#11440](https://github.com/meta/astryx/pull/11440))
168
+ - `astryx experimental theme editor`: a Yarn Plug'n'Play workspace (its `.pnp.cjs` at the workspace root) gets the Plug'n'Play refusal from a member app or its subfolders; a repository inside an app in the home folder is refused naming that app and its `cd`, never an install into the repository; a suggested `new my-<name>` is a free, valid name, and names the user's own `my-<name>` when there is one; a base typed as its package name (`@astryxdesign/theme-butter`, `theme-butter`) or in other letters stays that base in the suggestion, after its install line when it is not installed. ([#11440](https://github.com/meta/astryx/pull/11440))
169
+ - `astryx experimental theme editor`: the font, text-size and type dials no longer say your theme file sets the tokens they write; a palette token your theme file sets gets no shade note, and your theme file comes first in every note (before an exact setting, before a dial) and after an undo. A token loop inside one part is refused when it closes through the base theme's or your theme file's rule for that part, a setting on a part that your theme file also sets on it says the file's value shows, and undo counts only the steps it can still go back to. ([#11440](https://github.com/meta/astryx/pull/11440))
170
+ - `astryx experimental theme editor set`: a font family list missing a comma (`"Open Sans" serif`) is refused with the comma put back (`"Open Sans", serif`), read with css-tree; a suggestion never folds the list into one family holding an escaped quote. A font pasted with its property name (`font-family: Georgia, serif;`, or a `font:` shorthand) is read as the family list it names, for the `font` dial and exact font tokens. A `var()` with a fallback is never refused as reading nothing; when its name is a slip from a design token, a note says the fallback always shows. ([#11440](https://github.com/meta/astryx/pull/11440))
171
+ - `astryx experimental theme editor`: your theme file comes first in more places. A token loop inside a part's state or variant rule is refused when it closes through the part's plain rule (the base theme's or your file's); a part dial, a group or a variant setting that your file sets on a part says so; undoing a part setting your file also sets names the file's value; `show` names every exact setting your file sets itself; and a note that says to take a token out of your file names the exact setting that then shows. After `compile` of an edited theme file, `show` reads the build as current when `compile --check` would, instead of building it again. ([#11453](https://github.com/meta/astryx/pull/11453))
172
+ - `astryx experimental theme editor`: `undo <theme> headings Tracking` (or `TRACKING`, `Tight`) removes the tracking half, never the weight half; a change removes only the pictures the editor took (and only while they are as it wrote them), never a file of the user's, and marks the section sheets `show --section` made as out of date (in `sheetStale`) instead of deleting them; a link in the theme folder whose target is gone is named with where it points, by `set` and by `undo` alike, instead of a copy step that fails or "Nothing to undo". ([#11453](https://github.com/meta/astryx/pull/11453))
173
+ - `astryx experimental theme editor set`: a font file or link (`./fonts/My.woff2`, `Inter.woff2`, a font service URL, `url(…)`) and a name holding a colon are refused as font family names, for the `font` dial and exact font tokens, with how to load a file (`@font-face` or a font package) and never a suggestion that quotes them. A value pasted with its property name (`color: #e11d48;`, `font-weight: 700`, `font-size: 18px`) is offered as the value given, a `var()` with a fallback as its fallback, and `light-dark()` on a color dial as its light color with a note; `font-family: ;` with no value is refused as no value. A size suggestion is the token's own default instead of `6px`, and a token typed with its colon (`--color-accent:`) is offered without it first. ([#11453](https://github.com/meta/astryx/pull/11453))
174
+ - `astryx experimental theme editor`: its phone rule repeats only your exact font settings, and the notes say what phones show (on top of a base theme, phones show the base theme's type for fonts your file sets as plain tokens; the note says to set them on the theme's typography, or in a rule for the same screens). A `[light, dark]` pair your theme file gives a token that is not a color (a font, a size, a weight) is refused by name, as `--mode` is on those tokens, and a font your file sets through `typography` is seen as the file's. ([#11453](https://github.com/meta/astryx/pull/11453))
175
+ - `astryx experimental theme editor`: `--png` writes a picture only over one the editor took (unchanged since); a file of the user's by that name is named and left as it is, and no picture is taken. The record of the editor's pictures is a file of the theme (`<theme>.pictures.json`), so it moves and is copied with the theme. A `new` refused for its name never suggests a dial value the dial refuses: the value is left out and the refusal says so. A section sheet's out-of-date notice names `show <theme> --section <section>`, the command that makes it again. A theme folder renamed by hand is refused with every step it takes to edit it under the new name: the file renames and the names inside `<theme>.theme.ts`. ([#11453](https://github.com/meta/astryx/pull/11453))
176
+ - `astryx experimental theme editor set`: in a font family name, every Unicode space (a no-break space, a thin space) is one space and zero-width characters are dropped, so `Open<no-break space>Sans` names Open Sans. A dial's value pasted with its property name (`border-radius: pill`, `font-size: 18px;` for text-size, `color: #e11d48` for accent) is read as the value, one path for every dial. A declaration pasted as one argument (`set b '--color-accent: #e11d48'` or `--color-accent:#e11d48`) sets that token to that value; `set`'s usage now shows the value as `[value...]`, and a set with no value gives the same missing-value error as before. ([#11453](https://github.com/meta/astryx/pull/11453))
177
+ - `astryx experimental theme editor`: a `[light, dark]` pair on a token that is not a color (a shadow too) is refused however your theme file writes it (a constant, `as const`, `satisfies`, a spread from an imported module), by `set`, `show` and `undo` and by `experimental theme compile` and `--check`. A state rule your theme file sets on a part (`:hover`) is named like a variant: in `set`, `show` (with no contrast caveat for a setting that does not show) and `undo`. `compile` of a theme whose saved settings hold a value the editor refuses names the `undo` that removes it, and the phone note says to set fonts on the theme's typography, or in a rule for the same screens, to keep them on phones. ([#11468](https://github.com/meta/astryx/pull/11468))
178
+ - `astryx experimental theme editor`: one entry normalizer reads every setting before any check, typed or saved. Every Unicode space (no-break, thin) is a plain space and zero-width characters go, for every value type; a saved value holding one is named with the clean value to set. A declaration typed whole or split (`accent: #e11d48`, `--color-accent=#e11d48`, `font:inter`, `accent:` then the value) is the setting and its value, for dials and tokens; a token typed with an em or en dash or as `var(--x)` is that token, and one typed without its dashes is offered with them. A refused value's suggestion comes from that setting's own check: `text-size 14pt` suggests the size in pixels, `type large` or `type 18px` suggests text-size (never corners), `mode` lists its modes, and a saved size token suggests its own value with a unit. ([#11468](https://github.com/meta/astryx/pull/11468))
179
+ - `astryx experimental theme editor`: an empty theme folder (or one holding only system files such as .DS_Store) is no theme yet: `set`, `show` and `undo` say so and suggest `new <theme>`, which makes it there, instead of calling it a theme the editor did not make. ([#11468](https://github.com/meta/astryx/pull/11468))
180
+ - `astryx experimental theme editor`: `new` and `show` end with `wiring`, the steps that put the theme into this app: `astryx theme add <theme>` for its app copy (a one-mode theme's `mode` for the `<Theme>` too), and what builds it; only when a folder of yours holds the copy's place does it give the root file's imports and the `<Theme>` by hand. The editor's help says the same. A token set on a group names the members that read it and take the change, and what the others read instead; a part that never reads it is still refused. ([#11468](https://github.com/meta/astryx/pull/11468))
181
+ - `astryx experimental theme editor`: every build of a theme (new, set, undo, show, and `experimental theme compile` of its source) also writes its app copy, `src/themes/<theme>/`: a standard local theme (descriptor, a source that re-exports the built module, the built module, its stylesheet and font stylesheet), marked as written by the editor and never edited by hand. `astryx theme add <theme>` then puts the theme into the app, and `theme use`, `remove` and `list` take it as any local theme; `new` and `show` say so in `wiring`. The first time the copy is written (by `new`, or by the first build of a theme made before), the result names its files (`appCopy` in JSON); later builds write it quietly. A folder there that is not the editor's own copy is never written, and the wiring gives the imports by hand instead. ([#11468](https://github.com/meta/astryx/pull/11468))
182
+ - `astryx experimental theme editor`: a part setting saved for one mode no longer locks a theme switched to one mode (it stays saved, is named as not applying, and applies again with both modes); a part's length (padding, a corner radius, a gap) that reads a design token of another kind (a color, a font, a duration) is refused like the token form, naming a length token that works; and a `var()` whose name is not a CSS variable (`var(color-x)`, `var(-x)`, `var()`) is refused for every value, with the repaired form. ([#11468](https://github.com/meta/astryx/pull/11468))
183
+ - `astryx experimental theme editor`: a saved setting written in a form the editor cleans up when typed (`Corners`, `var(--radius-element)`, an em dash, `backgroundColor`, state `Hover`) is removed by the undo its refusal suggests, and only that setting: a valid setting the cleaned name also matches (corners = pill, the real hover rule) stays. A saved value's cleaned form is offered as a set line only when set takes it. Curly quotes in any value are the straight ones CSS reads (a font family in curly quotes is no longer saved with the marks in its name), a quoted CSS string keeps its no-break spaces, and any run of dash-like characters at the start of a token name (em or en dash, non-breaking hyphen, minus sign, full-width hyphen) is its two dashes. ([#11468](https://github.com/meta/astryx/pull/11468))
184
+ - `astryx experimental theme`: `list`, `add`, `use`, `remove` and `eject` given an editor theme with no app copy yet name the same steps `editor new` and `show` give in `wiring` (build it once, then `theme add <theme>`, and a one-mode theme's `mode` for the `<Theme>`). A color change stopped before its settings were saved no longer leaves its color config and `tokens/` behind: the editor records the config before it writes it, and the next build removes it when the saved settings set no color; a config of your own is never removed. ([#11468](https://github.com/meta/astryx/pull/11468))
185
+ - `astryx experimental theme editor how`: a focus ring request keeps its scope ("focus ring on inputs only" sets the ring's tokens `--on inputs`, the other parts keep theirs), and an exact amount ("half", "double", "twice", "50% strength", "x0.5") is worked out from the theme's own value: the ring's width, a part's corner radius or its padding when the theme sets one. An amount alone after a comma ("…, at half strength") belongs to the ask before it. A comparison ("cards with twice the padding of buttons") is of the other part's value, when the theme sets one; otherwise the answer is a step and says so. The answer names the value it starts from and, for "strength", that it reads it as the ring's width. ([#11490](https://github.com/meta/astryx/pull/11490))
186
+ - `astryx experimental theme editor how`: "header(s)" or "title(s)" with a text word (bolder, bigger, font, weight, size, serif) means the headings' type, and with a surface word (background, bar, border, sticky, height) the app header part; a part that owns its header ("table header") keeps it. "just" and "only" keep the scope they name ("just the headers bolder" changes the headings, never the body text). ([#11490](https://github.com/meta/astryx/pull/11490))
187
+ - `astryx experimental theme editor`: a `dark-only` or `light-only` theme keeps both halves of its colors, and its mode is the one the app's `<Theme>` is given. ([#11468](https://github.com/meta/astryx/pull/11468))
188
+
189
+ - The theme's colors keep their light and dark values, so a toast, a lightbox or an overlay Core draws in the other mode stays readable; the generated settings module carries only names Core's types take, so the app type-checks.
190
+ - `set <theme> mode dark-only` (or `light-only`) says to give the app's `<Theme>` `mode="dark"` (or `"light"`), and the wiring after `theme add` says where it goes; the preview passes it already.
191
+ - Settings for the other mode stay out of a one-mode theme and are named, as before.
192
+
193
+ - `astryx experimental theme editor new` ends with how to look at the theme after each change: `editor show <name> --png` writes `themes/<name>/preview.png` and `sheet.png` from real components and changes nothing in the app; open the pictures and check them against what was asked. ([#11500](https://github.com/meta/astryx/pull/11500))
194
+ - `astryx experimental theme editor` reads the page-wide tokens of your own `<theme>.theme.ts` however they are written (inline, a const, a spread, `as const` or `satisfies`), from the `defineTheme` the build loads, never a sibling theme in the same file; a value it cannot read in the file comes from the build. The `experimental theme template --overwrite` and `compile --out` help match what they do. ([#11419](https://github.com/meta/astryx/pull/11419))
195
+ - `astryx experimental theme editor`: shorthands by what they set, and part values Core can carry. ([#11419](https://github.com/meta/astryx/pull/11419))
196
+
197
+ - A shorthand set after its longhands replaces only the longhands it really sets, read from MDN's data (`overflow` keeps `overflow-wrap`, `transform` keeps `transform-origin`, `flex` keeps `flex-direction`), and a part's `background` keeps reaching its variants when `background-blend-mode` comes later.
198
+ - A group's shorthand replaces its members' longhands as a part's does, so the later setting wins either way.
199
+ - On a part whose padding Core writes one variable per side (card), a variant's padding after a side set for every variant is refused, with the commands that work: it would not show.
200
+ - `--on cards`, `dialogs`, `tabs` and other plurals name the part, with the set command.
201
+ - Word hints keep the value given: `shadow none` is `box-shadow none`, `rounded 8px` is `corners 8px`, `bold false` is `font-weight normal`.
202
+
203
+ - `astryx experimental theme editor`: card padding and radius written exactly. ([#11419](https://github.com/meta/astryx/pull/11419))
204
+
205
+ - On a part whose padding Core writes one variable per side (card and the other containers), the editor writes each side itself, split as CSS splits a shorthand: `calc(4px + 2px) 8px`, `clamp(12px, 2vw, 24px)` and four different sides reach the part as typed.
206
+ - A variant's padding after a side set for every variant now shows: the editor writes the variant's side variables too, instead of refusing it.
207
+ - A card radius of more than one value (`12px 12px 0 0`, `10px / 20px`) gives each corner its own radius; the content that reaches the card's edges takes one radius, the first corner's, and the result says so.
208
+
209
+ - `astryx experimental theme editor`: variant values win over lifted base values, and card padding keywords written exactly. ([#11419](https://github.com/meta/astryx/pull/11419))
210
+
211
+ - A part's base value lifted onto a variant (so Core's own variant rule does not hide it) now goes before the variant's own declarations, so a longhand or shorthand set for the variant wins (`border-color` for the destructive button after a base `border`).
212
+
213
+ - `astryx experimental theme editor`: padding sides and inner radii that win as written. ([#11419](https://github.com/meta/astryx/pull/11419))
214
+
215
+ - A later part padding replaces a side its group set.
216
+ - A part's own multi-value radius keeps the content's radius it gives over a single radius from a group, a dial or the base theme's lifted onto a variant.
217
+
218
+ - `astryx experimental theme editor`: the chat composer's box is reached as it is drawn. ([#11419](https://github.com/meta/astryx/pull/11419))
219
+
220
+ - `padding` on chat-composer goes to the padding of the visible composer box, with no gap outside it. Background, border, shadow, a side padding or a padding for one density, which would land on the composer's transparent wrapper, are refused with the reason.
221
+
222
+ - `astryx experimental theme editor`: one padding model for parts whose box reads Core's padding variables. ([#11440](https://github.com/meta/astryx/pull/11440))
223
+
224
+ - On card, clickable-card, selectable-card, dialog, drawer, bottom-sheet, section and number-input, each part's padding is worked out per variant and per state from every padding setting in the order made, side by side for each text direction (a physical left is the start in a left-to-right box and the end in a right-to-left one; so is the `padding` shorthand's left), and written to the variables the box reads. The later setting wins in both directions, a variant or a state out-ranks the base, and the content that reaches the box's edges stays in line.
225
+ - A clickable or selectable card is padded as a card.
226
+ - A part's base rules come before its variants', and its rules for a direction before its states', whatever order the settings were made in.
227
+ - `padding` on chat-composer takes one length, as Core reads it inside calc(): a length, a variable such as `var(--spacing-3)` (Core's own default), or `calc()`, `min()`, `max()` or `clamp()` giving one. Several values, a bare number or a percentage is refused with one that works.
228
+
229
+ - `astryx experimental theme editor`: padding that stays where it is set, and one length wherever Core reads it inside calc(). ([#11453](https://github.com/meta/astryx/pull/11453))
230
+
231
+ - Padding set on a clickable or selectable card, or on a card's variant or state, no longer reaches plain cards nested inside it: each side the narrower rule writes is reset on a plain card inside it, so Core's own fallback holds, and the narrower rule writes each side rather than the whole padding.
232
+ - Every part whose padding Core reads inside calc() (found from Core's own stylesheet: chat-composer, dropdown-menu, context-menu, segmented-control, and an item's inline padding) takes one length there, as chat-composer does, also through a group (`--on menus`).
233
+ - A padding with `--state` on a card, dialog or a group of containers is now taken: the padding model writes the state's own sides.
234
+
235
+ - `astryx experimental theme editor`: nested sections that follow their parent, and lengths Core can calculate with. ([#11453](https://github.com/meta/astryx/pull/11453))
236
+
237
+ - A section padding the same on every side is written as the section's whole padding, which Core reads after the padding a parent section passes down, so nested sections keep following their parent.
238
+ - A padding of `0` is written as `0px` on parts where Core calculates with it (card, section, dialog, drawer, bottom-sheet); `initial` and `unset` leave the padding to Core's own default.
239
+ - A hand edit to the settings file that `set` would refuse is reported by the next `set` with the command that removes it, as `compile` does, instead of being built.
240
+
241
+ - `astryx experimental theme editor`: a part's padding replaces the base theme's, and every padding writes a length Core can calculate with. ([#11453](https://github.com/meta/astryx/pull/11453))
242
+
243
+ - A padding on a card, section, dialog, drawer, bottom-sheet or number-input replaces the base theme's padding there, whichever sides the base theme set: the editor writes it as padding properties Core works out together with the base theme's, where the later one wins.
244
+ - A clickable or selectable card's padding wins over a card's left or right padding in each text direction.
245
+ - A plain part nested in a narrower one is reset only on the sides its own rule leaves unset, so a padding in your own theme source on that part still applies.
246
+ - A zero written any way (`0e0`, `0.0`) is written as `0px`; `initial` and `unset` name the part's own default padding from Core.
247
+ - A hand-edited padding on one part is reported when a `set` changes padding on another part too.
248
+
249
+ - `astryx experimental theme editor`: what the editor builds, `compile --check` takes. ([#11468](https://github.com/meta/astryx/pull/11468))
250
+
251
+ - Two to four corner radii on card, button, dialog, avatar, banner, popover and the other parts with an inner-corner radius are written as CSS properties Core reads (the whole radius, which Core turns into the content's radius, then each corner), never as a private variable, so `compile` and `compile --check` pass.
252
+ - A padding on chat-composer is refused with the reason: the box inside its transparent wrapper reads its padding only from a variable of Core's own, which a theme cannot set, and a padding on the wrapper would add a gap outside the box.
253
+
254
+ - `astryx experimental theme editor`: a padding in your own theme source wins over the editor's on the same part, whatever sides each names. ([#11490](https://github.com/meta/astryx/pull/11490))
255
+
256
+ - A padding your `<theme>.theme.ts` sets on a part's plain rule, a variant or a state wins over an editor padding there (`padding 20px --on card` under your own card padding of 6px shows 6px), and the result says so, also right after an edit to that file, before any build.
257
+ - An editor padding on a part's plain rule that differs by text direction keeps the plain rule's weight, so any variant, your own included, out-ranks it.
258
+ - `padding inherit` (and `revert`) on parts whose padding Core keeps in its own variables is taken like `initial` and `unset`, and the result names the default it means.
259
+
260
+ - `astryx experimental theme editor`: the spacing dial keeps the small, medium and large control sizes apart and in order at every step. ([#11490](https://github.com/meta/astryx/pull/11490))
261
+
262
+ - A denser spacing still makes controls shorter by the plain scale, but no size meets the one below it: one that would keeps its own step, scaled, above it, and none goes under 24px (`spacing tight` on Neutral gives 24px, 27px and 30px, where small and medium both ended at 24px). The dial's help says control heights follow it.
263
+
264
+ - `astryx experimental theme editor`: every picture `--png` takes carries the editor's stamp (a PNG text chunk naming the theme), so it is known as the editor's even without its record; a picture an earlier version took, with no record yet, is taken over when it is the editor's 1280-pixel window, and the result says so once. Only links among the files the editor reads or writes are refused, each named with where it points; a link to a file of yours (notes, a mockup) is left alone. A `new` refused for its name leaves out of its suggestion a vibrancy that would change nothing (no color given), and says so. The `--png` help of new, set, show and undo names the picture record and when no picture is taken. ([#11453](https://github.com/meta/astryx/pull/11453))
265
+ - `astryx experimental theme preview`: the route and pages it writes type-check with `noUncheckedIndexedAccess`, `noImplicitOverride` and `noUnusedLocals`. `add --path` refuses a folder name that is no plain URL segment (a space, an accent, `#`, `%`), suggesting a slugged one. Folder names Windows does not allow are refused in full: reserved characters, a trailing dot or space, and `COM¹`-style device names. The free folder a URL conflict suggests is one whose URL no other page serves. `preview app` leaves out a temp file a stopped command left in the theme folder. ([#11419](https://github.com/meta/astryx/pull/11419))
266
+ - `astryx experimental theme preview`: in the preview's nav, only a plain left click switches the page in place; a Ctrl/Cmd, Shift, Alt or middle click opens the page's URL as a link does. The `see` line after an editor change now leads with a look that changes nothing in the app (the editor's own `preview.html`, current after every change it renders, and `--png`), then the in-app preview page when there is one; adding the preview to the app comes last, as an option. ([#11490](https://github.com/meta/astryx/pull/11490))
267
+ - `astryx experimental theme preview add`: a folder name that Next serves at a plain URL (letters, digits and `. _ ~ ! $ & ' ( ) + , ; = @ -`) is accepted. For any other name, every odd segment is slugged and the suggested folder is a free one. A folder that differs from another only in case is refused, since macOS and Windows treat them as one. In an app with no TypeScript, the result names the install line. When the app's tsconfig turns on `noUncheckedIndexedAccess`, the result names the template pages written as their template ships. The Colors page shows a seed color as it is stored. ([#11419](https://github.com/meta/astryx/pull/11419))
268
+ - `astryx experimental theme`: going back to the preview's bare URL shows its first page, as a reload does. `editor undo` points its `see` line at the page about what it reverted. A preview whose URL depends on the app's routing, or whose folder was renamed by hand, is named where it is, by `see` and by `preview list`, instead of suggesting a new one. `preview add --theme` takes a pasted label (`theme: t`, `name: t`) as the theme t; an editor command given one refuses it and suggests `show t`. A change the editor could not render says why in its `see` line instead of pointing at a `preview.html` it did not write. ([#11490](https://github.com/meta/astryx/pull/11490))
269
+ - `astryx experimental theme preview`: a default page's id beside another page asked for is refused ("drop one of them") instead of dropping the other. `preview add colors` on a theme with no generated colors says how to get them. `preview list` marks a page whose file is gone and notes a change that was stopped part way, and `add` writes a missing page back as added. Running a stopped `preview remove` again finishes it and exits 0. `basePath` is certain only when set as a literal on the exported config at the top of next.config; one set in an `if` or a function, deleted, or added by a wrapper is named as set from code. ([#11378](https://github.com/meta/astryx/pull/11378))
270
+ - `astryx experimental theme preview`: the preview route renders its pages only in the browser, so a component that crashes a server render no longer stops `next build` when Components is the first page. next.config is read the way Next loads it: `.js` before `.mjs`, `.mts`, `export {config as default}`, a key set after the object, and the last of a repeated key; a config changed in other ways gets a note instead of a guess. Table pieces (TableHeader, TableBody, TableFooter) are no longer shown alone on the Components page. `preview add overview` (or another default page's id) brings back the default pages that are missing. ([#11378](https://github.com/meta/astryx/pull/11378))
271
+ - `astryx experimental theme preview app --theme <t>`: the new app installs the Core and base theme versions this project has, the ones the copied build was made on, so the theme is current after install; a note names them and how to move to this CLI's release. ([#11468](https://github.com/meta/astryx/pull/11468))
272
+ - `astryx experimental theme preview`: `add` rebuilds the theme whenever its build is not current (an output missing, or a build that does not match the settings), the same rule `preview app` uses, so the route never imports a missing file. A pasted `--theme 'theme: t'` names the theme t. A `distDir` with a subfolder blocks only that folder. `remove --path` on a folder with no preview names the preview there is, with its remove. The `preview app` help says that with `--theme` Core and the base theme are pinned to the project's versions. ([#11468](https://github.com/meta/astryx/pull/11468))
273
+ - `astryx experimental theme`: every in-app preview page has its own URL (`/theme-preview?page=components`), which the nav links to, so a link, a reload, the back button or a screenshot reaches any page; `preview add`, `list` and `app` give each page's URL. Every editor change carries a `see` line: first a look that changes nothing in the app (the editor's `preview.html`, current after the change, and `--png`, which takes pictures with no dev server), then the in-app preview page most about it (Colors after a color, Components after a part, Overview otherwise) at its URL when there is a preview, and adding one last, as an option. The `--png` help says it needs a Playwright or a Chrome and adds a few seconds. ([#11490](https://github.com/meta/astryx/pull/11490))
274
+ - `astryx experimental theme preview`: a `--path` that goes through a file, has a folder name longer than 255 bytes, or is longer than 3,500 bytes, is refused with a reason. A folder that differs from another only in case is refused for `preview app` and for a `--path` outside the routes folder too. `preview remove` leaves a page file it cannot read in place, says so and keeps it recorded. A preview flag given twice with different values is refused. ([#11419](https://github.com/meta/astryx/pull/11419))
275
+ - `astryx experimental theme preview remove`: a page the app's own code imports is kept, and the importing file is named, for one page and for the whole preview. The check reads the whole project, following relative imports, `@/` and tsconfig path aliases. ([#11453](https://github.com/meta/astryx/pull/11453))
276
+ - `astryx experimental theme preview`: popovers shown open on the Overview and Components pages no longer take focus, so the page stays where it opened. The Overview points to the Colors page only when the preview has one, and a color `set` on a theme whose preview has no Colors page says which `preview add` adds it. `preview remove` takes away the empty folders the preview's first `add` made, never one that was there before. The Overview reads its font line again when the theme changes while the page is open. The `preview app` starter lists `@types/node`, so its first `npm run dev` installs nothing. ([#11440](https://github.com/meta/astryx/pull/11440))
277
+ - `astryx experimental theme preview add`: an app frame's exact name as the description (`blank`, `shell-top-nav`) is refused with a clear reason and the `--template` command. An exact template name is called the page named, not the closest page. With no routes folder, the refusal names the Next apps below with a `--path` into each, and a `--path` that would make a routes folder with no root layout is refused before writing. Page packages are read from the app the preview is in. The Core stylesheet check starts from the root layout over the preview, route groups included, and follows tsconfig path aliases. ([#11440](https://github.com/meta/astryx/pull/11440))
278
+ - `astryx experimental theme preview add`: a short description that names a page template (`checkout`, `hero`, `a landing page`) takes the page `build` ranks first, instead of being refused. A description that is exactly a template's id or display name adds that page, or says why it was skipped. The Core stylesheet note follows the root layout's imports, so a stylesheet imported from a root `styles/` file counts. A theme font whose package the app lacks gets a note with the install line, and the Overview marks a font that is not installed. ([#11440](https://github.com/meta/astryx/pull/11440))
279
+ - `astryx experimental theme preview remove`: the check that keeps a page your code imports now reads the whole project (every source file outside installs, build output and dot folders), parses each file's imports, exports, `import()` and `require()` calls, template-string ones included, and also guards the route a file re-exports. A project too big to check is refused rather than half-checked. A route changed by hand is told to move out of the preview folder. `preview add --template overview|components|colors` adds just that page when it is missing, or says why not. Temp files a stopped preview command left are cleaned by the next one and by a full remove. ([#11453](https://github.com/meta/astryx/pull/11453))
280
+ - `astryx experimental theme preview`: when both spellings of a folder are already there, the case-clash refusal suggests a new folder beside them, and names `preview remove` for a preview already inside. A `theme-preview.json` entry that leads outside the folder (`../`) is reported as damaged by `add` and `list`. `remove` drops such an entry and deletes nothing outside, and its messages show paths from the project. ([#11419](https://github.com/meta/astryx/pull/11419))
281
+ - `astryx experimental theme preview`: the route of a one-mode theme no longer imports the mode switch it does not draw, so apps with `noUnusedLocals` build. A refused `--theme` says exactly what leaving it out does in this app: the theme the preview keeps wearing, or the one theme under `themes/` it picks. ([#11453](https://github.com/meta/astryx/pull/11453))
282
+ - `astryx experimental theme preview`: no demo on the Components page takes focus as it mounts. A dialog part such as DialogHeader shows inside an open inline Dialog, and an open Popover is named. When the preview's theme is gone, its Colors page goes with it. `preview remove` refuses while a file of yours in the folder imports the preview pages, and its advice for a route changed by hand is to move it out of the folder. `preview list` with no preview says why `add` would refuse the folder instead of suggesting it. `remove` takes away the empty folders `add` made outside the routes folder too. Every page-template list suggestion names the command the way the app runs the CLI, in `--json` as in text. ([#11453](https://github.com/meta/astryx/pull/11453))
283
+ - `astryx experimental theme preview`: the base theme's fonts stylesheet is imported only while the theme's build still names a family it loads, so a theme on `font system` or its own fonts fetches nothing it does not use. `preview add` names every page it writes again, the Colors page included, when the preview switches theme. ([#11419](https://github.com/meta/astryx/pull/11419))
284
+ - `astryx experimental theme preview`: `add --path` refuses an intercepting route folder (`(.)x`, `(..)x`, `(..)(..)x`, `(...)x`), where a page breaks the whole app. The preview loads the fonts stylesheet of the theme it is built on (Figtree for neutral), and so does the `preview app` starter, so the Overview shows the family it names. `preview list` text marks a page whose file is gone as missing, matching `--json`. ([#11419](https://github.com/meta/astryx/pull/11419))
285
+ - `astryx experimental theme`: padding sides by direction, a failed show leaves the folder as it was, and `how` reads "not dark enough". ([#11419](https://github.com/meta/astryx/pull/11419))
286
+
287
+ - On dropdown-menu, context-menu and segmented-control, one logical padding side is written for each direction (the left in a left-to-right box, the right in a right-to-left one), so it changes that side only; under a state it is one rule per direction (`:hover:dir(ltr)`), and a later padding or physical side replaces it.
288
+ - `show` whose render fails puts back every output it touched, removing one it made new and restoring the palette files in `tokens/`.
289
+ - `how "not dark enough"` / `"not light enough"` asks for darker or lighter, not for one mode.
290
+
291
+ - `astryx experimental theme editor`: a card's physical padding side beside others, a failed show beside your own folders, and the busy-lock suggestion from the API. ([#11419](https://github.com/meta/astryx/pull/11419))
292
+
293
+ - A card `padding-left` or `padding-right` set beside another side, as a keyword (`initial`) or as math (`calc()`), reaches that side.
294
+ - `show` whose render fails leaves a folder you put in `tokens/` alone.
295
+ - When another command holds the theme, the suggestion to run again names the call's own command with every option it got (`--only`, `--like` and each dial of `new`, `--png`), never the arguments of the process the API runs in; a preview command waiting on another names `preview list`.
296
+
297
+ - `astryx experimental theme editor`: every `set` a refusal suggests is now checked the way `set` checks it, without writing anything, and a suggestion `set` would refuse is left out. Suggestions carry what was asked instead of a fixed example. `headings light --on heading` offers `headings light` and weight 300 on one level. `text-size large --on card` offers that size on the card. A number token reads the number meant (`700px` is 700, `1,5` is 1.5, `calc(1rem+2px)` gets its spaces). A word dial given a number offers its own words, or the nearest `type` preset for a scale ratio. An invalid color is never copied into the text color token. A color property refuses a `var()` fallback inside `color-mix()` that is not a color. `how "more washed out colors"` lowers vibrancy. ([#11419](https://github.com/meta/astryx/pull/11419))
298
+ - Icon sets: a project picks one look for every icon. `astryx experimental icon use <main> --variant <variant>` writes `experimental.iconVariant` beside `experimental.iconSet`, in one write, and refuses a variant the main set does not declare; without `--variant` it removes the key. Each set in the list draws its variant of that name, or its default look when it declares none, and the receipt (`icon.use`) adds `variant`, `previousVariant`, `looks`, and `themeMap`. A copied template imports each icon in that look where its set has it, reports the look as `icons.variant`, and moves an icon a template imports from the main set's own library, or from a listed set in another look (`by: 'variant'`), to that look. A set's generated module also writes a theme map for each other look an icon draws (`themeIconsFilled`), and `integration check` holds it to `map`. `astryx doctor` fails when the main set does not declare the variant, and `experimental icon --list` shows the variant and each set's look. A CLI before 0.7.16 refuses an astryx.config that sets `experimental.iconVariant`, so `use` warns when the project's CLI range admits one. An icon-set package whose generated module an earlier CLI wrote, and whose icons draw a look other than the default, fails `integration check` until it runs `experimental icon add --variant <variant> --from <module> --all` again; the finding names that run. Projects that do not set `experimental.iconSet` see no change. ([#11499](https://github.com/meta/astryx/pull/11499))
299
+ - `astryx experimental theme editor` counts a base theme as installed only when the project installs it, in its `node_modules` folders or through Yarn Plug'n'Play, as the app's bundler sees it. A theme found only through `NODE_PATH` or Node's global folders is no longer taken as installed: `new` and `set base` offer to install it instead of writing a theme the app could not build. ([#11444](https://github.com/meta/astryx/pull/11444))
300
+
301
+ #### New Features
302
+
303
+ - `astryx doctor` warns when the `@astryxdesign/core` peer range of a loaded integration, other than the packages of added themes, which `theme-core-peers` already checks, excludes the installed Core (`integration-core-range`). A package made for another Core installs with only a package manager warning, and its components, themes and docs may not work; the warning names the package, its version and range, and the installed Core, and the fix names the release to look for. A project whose other integrations all declare a range that includes its Core gets a passing row naming them; a project where none of them declares one sees no new row. It is a warning, so no project that passed before fails. ([#10350](https://github.com/meta/astryx/pull/10350))
304
+ - Doc examples take an optional `kind: 'demo' | 'setup'` (default `'demo'`), on component, sub-component and function examples. A `setup` example is code that cannot run on its own, such as an app setup file, a server route, or a snippet that uses variables defined elsewhere: `astryx component <Name>` labels it "(setup, code only)", and a docs site shows it as code with no live preview. In `astryx component <Name> --json`, every example carries its `kind`. Any other value fails to load with a message that names both kinds. `astryx docs authoring` explains when to use `setup`. ([#11434](https://github.com/meta/astryx/pull/11434))
305
+ - Add Table infinite loading with `useTableInfiniteScroll({hasMore, isLoading, onLoadMore})`. One Promise request latch coordinates automatic and manual loading, failures pause automatic retry, and the persistent busy Button owns progress announcements and focus continuity. ([#10570](https://github.com/meta/astryx/pull/10570))
306
+
307
+ #### Fixes
308
+
309
+ - In the AI Chat page template, the chevron on the artifact card now points toward the end of the line in right-to-left layouts, as it does in left-to-right. ([#11477](https://github.com/meta/astryx/pull/11477))
310
+ - In the AI Chat page template, the message list's scrollbar no longer sits under the artifact panel's resize handle. On desktop the chat column keeps a small gap before the handle, so the whole scrollbar scrolls the messages; before, a press on the half of the scrollbar nearest the handle resized the panel. Mobile, where the handle is hidden, is unchanged. ([#11473](https://github.com/meta/astryx/pull/11473))
311
+ - `astryx build` starts more whole-page ideas from a page template instead of the empty app shell. When build would start an idea on an app shell and search matched no template directly, a fixed decision over the scores build already computes (plus a fixed word table) gives a whole-page probability; at 0.30 or more, the start is build's best-ranked page template. Ideas with an edit phrase keep the shell, and block suggestions do not change. The decision picks only templates build's word tables list, so an integration's own template is never the lifted start; its other results are unchanged. ([#11519](https://github.com/meta/astryx/pull/11519))
312
+ - Running any command from a folder that no longer exists now gives a plain error with a `cd` to the nearest existing folder (text and `--json`, code `ERR_PROJECT_REQUIRED`) instead of a stack trace; `--help`, `--version` and `docs` still answer. ([#11440](https://github.com/meta/astryx/pull/11440))
313
+ - `astryx doctor`'s theme stylesheet check no longer fails on a theme's own files when the theme it extends is added too (`theme add d` and `theme add neutral`): a theme source, its build and the editor's generated files only extend the other theme, so they are not asked to import its stylesheet. An app file that imports an added theme's module without its stylesheet still fails the check. ([#11506](https://github.com/meta/astryx/pull/11506))
314
+ - A refusal longer than a pipe holds (64 KiB) reaches a slow reader whole, such as bash `$(…)` or a reader that takes its time: the `--json` envelope stays valid JSON with its code, and the text refusal keeps its last line. The CLI writes its final error output out before it exits. This is a small change to the shared error output, made for the theme editor's long refusals. ([#11419](https://github.com/meta/astryx/pull/11419))
315
+ - No public API function takes an undocumented `__`-prefixed option. `themeBuild()` reads only its documented `out`, `check`, and `iconsSpecifier` options; what `theme build` hands a batch, family, or package-check build now travels through the CLI's own internal path, so `theme build` and `integration pack-check` behave and print exactly as before. A test fails if a hidden option comes back on any exported function. ([#11446](https://github.com/meta/astryx/pull/11446))
316
+ - Kept catalogs and check results no longer depend on the value of every environment variable when code only lists the variables' names (as a TypeScript transform does). Tools that set a new value per call, such as AI agent harnesses, missed every kept answer on every call; they now hit like any other run. A variable whose value is read still decides the kept answer, including one read inside a kept gather that another one wraps. ([#11427](https://github.com/meta/astryx/pull/11427))
317
+ - `astryx doctor integration validate` and `astryx integration check` name unreachable contribution metadata with forward slashes on every platform. On Windows the path in "Found contribution metadata ... outside every declared integration root" used backslashes, while the fix in the same message used forward slashes. ([#11084](https://github.com/meta/astryx/pull/11084))
318
+ - A kept entry in the per-user cache whose value is missing or has the wrong shape for what it holds is now worked out again and stored over, instead of being used: a damaged entry could make `search`, `doctor` or `template --list` fail until the folder was cleared. ([#11474](https://github.com/meta/astryx/pull/11474))
319
+ - `astryx theme palette generate` and `generateTonalPalette()` honor `darkChromaTaper`, so every official theme palette regenerates from its saved config exactly as committed. Neutral's config asks for a muted dark edge on its chromatic families, but the generator dropped the field: 99 of Neutral's 420 colors came out more saturated than the committed ones (`blue.dark[25]` was `#003978`, not `#253c5a`). A dark stop now keeps `edgeMultiplier` of its in-gamut chroma through `throughStop`, then recovers along a smoothstep to the standard recipe at `recoverAtStop`; `familyMultipliers` sets the edge share for one family. Light ramps, neutral families, the black and white endpoints, and configs without the field generate the same colors as before. A taper with a field it does not read, a stop outside the layout, a family the request does not have, a neutral family, or a multiplier outside 0 to 1 is refused. ([#11491](https://github.com/meta/astryx/pull/11491))
320
+ - `astryx experimental render` says why a page ended without an answer: the stage it reached (such as importing the page or rendering on the server), how long it ran, the memory left, and the page's last error output. A page process that loses its channel or reaches its own time limit is reported as that, never as a clean exit. ([#11398](https://github.com/meta/astryx/pull/11398))
321
+ - `theme build`: the refusal for a quoted glob keeps `--family` and `--family-key` in a family run, and builds its suggestion with the same builder as the build's other refusals of a source; the experimental compile's refusals for the editor's settings file and for a subfolder keep `--out` (rebased onto the app root for the `cd` one), so the suggested check reads the output you asked about. (Minimal change to shared code: `buildSuggestion` gains an optional shape for a glob or a family run, and the build command passes `--out` to a group's preflight.) ([#11461](https://github.com/meta/astryx/pull/11461))
322
+ - On Windows, `astryx theme build` prints install snippets that import the built theme with a working path. The import path joined the output folder with backslashes and kept a stray one after the dropped `src/`, so the snippet read `import { oceanTheme } from './\themes\ocean/ocean';`, which is not a valid specifier (and `\t` is a tab in a JS string). It now reads `./themes/ocean/ocean` on every platform. ([#11288](https://github.com/meta/astryx/pull/11288))
323
+ - From a project subfolder, `theme template` and `theme eject` print a build step that works from that folder (`cd ../.. && … theme build theme.template.ts` when the file is above it), and a blank template path is refused with `theme template` (no path) suggested, which writes at the project root; an absolute template path is told that paths are read from the current folder. `theme build --out` warns that it replaces another source's output only once every output may be written, reads a backslash in `--out` as a folder separator, and its `--check` "Rebuild with" line uses the project's invocation and quotes a path with a space. Building a theme the theme editor made with `theme build` still works, as released, and now warns (once per `--watch` session), naming `experimental theme editor show <theme>`. A theme file that is a link and fails on a relative import is named with the file it points to, with a build of that file that keeps its outputs in the working folder; no load error shows Node's require stack. ([#11422](https://github.com/meta/astryx/pull/11422))
324
+ - A command `theme build` (or `experimental theme compile`) suggests after refusing a source (a Windows-style path, a folder, a file that is not a theme module, or a build output) keeps the `--check`, `--out` and `--icons-specifier` it was given, so following it still checks instead of writing outputs. This holds for a family check, a theme file that is a link, a plain-object family member and a file that changed while loading, and the suggested command is quoted for the shell it runs in (PowerShell too). ([#11461](https://github.com/meta/astryx/pull/11461))
325
+ - The install example `theme build --detail full` (and `experimental theme compile --detail full`) prints says its paths are relative to a file in src/, and now they are, from whichever folder you run it: an output beside src/, such as `themes/ocean/ocean`, is imported as `../themes/ocean/ocean`, not `./themes/ocean/ocean`, which does not resolve from src/. The `theme build --family` snippet uses the same paths and says the same thing in its header. ([#11471](https://github.com/meta/astryx/pull/11471))
326
+ - `theme build` and `experimental theme compile` refuse a theme that sets a private `--_*` variable: the build fails with `ERR_THEME_INVALID` (exit 1, a JSON error envelope) and writes nothing, a `--check` included. Before, it printed the errors and exited 1 but still wrote the outputs and reported `[ok]` and a success receipt, so a reader of the JSON saw a pass. ([#11475](https://github.com/meta/astryx/pull/11475))
327
+ - `theme template` run from a folder inside a project reads its path from that folder within the project root, and with no path writes `theme.template.ts` at the project root, as its help says; a backslash in the path separates folders, as for `theme eject`; `astryx init --features theme`, run below the project root, writes `theme.template.ts` at that root too, because it uses the same template step. Outside any project (no `package.json` in the folder or above it) it writes in the current folder, as released CLIs did, and when it writes the file it warns once on stderr in text mode, naming how to write it at a project root (run it inside a project, or `npm init -y` first); `--json` stays silent. A stale `theme build --check` (and `experimental theme compile --check`) result carries `code: "ERR_THEME_STALE"` beside `upToDate: false`, the code it exits 1 with. A file at an `--out` path that the build did not write is left alone with its real reason and, when one exists, an `--out` path where no output of this build exists yet (a new folder when the theme's module beside it is taken); the build never suggests deleting it. The build-beside-the-source suggestion keeps `--icons-specifier`. `--out` into a folder the theme editor made, for a theme source outside that folder, writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (build beside the source, or pick another `--out`); `--json` stays silent, and `--watch` prints it once per session, not on every rebuild. ([#11389](https://github.com/meta/astryx/pull/11389))
328
+ - `theme build --check` (and `experimental theme compile --check`) names every output the build writes as checked, the `.css.d.ts` stylesheet types too. When the only missing output is a `.css.d.ts` stub, as in projects that keep it out of version control, the check prints one warning line in text mode naming it, and the stub alone does not fail it; `--json` stays silent and the result is unchanged. Every output the check failed on before still fails it, a missing `.d.ts` or `.variants.d.ts` included. `theme eject` into a subfolder of a folder the theme editor made (`themes/g/sub`, where `themes/g/g.settings.json` exists) writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (fork into the project's local themes folder, or pick a path outside the editor's folder); `--json` stays silent and the receipt is unchanged. ([#11410](https://github.com/meta/astryx/pull/11410))
329
+ - The dashboard page template typechecks in an app with `noUncheckedIndexedAccess` (it renders the same), so `experimental theme preview add --template dashboard` no longer adds a type error to a strict app. `themeBuild()` no longer takes internal hand-off options for `theme build --watch` or the private-var exit code; `--watch` still warns once per session about a theme editor folder. ([#11420](https://github.com/meta/astryx/pull/11420))
330
+ - `astryx theme template --overwrite` no longer replaces a theme editor file reached through a link to its folder. ([#11419](https://github.com/meta/astryx/pull/11419))
331
+ - An installed dependency that ships an Astryx integration manifest which fails to load because a package it requires (a `dependencies` entry or a peer not marked optional) is missing (a broken install) is now reported as that package's integration issue: `component`, `template`, `theme`, `discover` and `search` print the usual one-line warning, and `doctor`'s integration contributions check names it with the load error. Exit codes are unchanged. A command that cannot load also reports why whatever options it was given (`component --list` used to answer "unknown option"). ([#11486](https://github.com/meta/astryx/pull/11486))
332
+ - A dry run of `astryx upgrade` no longer tells you to review a `.astryx-conflict` file it has not written. When a copied ShadCN composition conflicts with a newer release, the dry run now says that `--apply` writes the file for review, and an apply still names the file it wrote. The JSON result is unchanged. ([#11356](https://github.com/meta/astryx/pull/11356))
333
+
334
+ #### Performance
335
+
336
+ - In a project with integrations, `docs` keeps the integration check results it gathers, with the theme records they include, so a repeated `docs` call reads them back instead of checking every integration again. An edit to a doc topic shows on the very next call. `doctor`'s cache row names `docs` among the commands that keep what they gather. ([#11483](https://github.com/meta/astryx/pull/11483))
337
+ - Once the per-user cache folder exists, `doctor` keeps its three checks that read only files (the docs tree, progressive disclosure and the CLI's docs) beside search's catalogs, and reads each back while every file it read is unchanged, so a later `doctor` skips them (about 0.2 s, more with large integrations). An edit to any doc shows on the very next run. Its cache row names doctor among the commands that keep what they gather, and `doctor --help` no longer calls it read-only. ([#11394](https://github.com/meta/astryx/pull/11394))
338
+ - In a project where no integration can load (no Astryx config, no integration manifest of its own, and no installed dependency that ships one), help and commands that don't need the project no longer load it first just to read the commands integrations declare: `--help`, `manifest` and `blog` answer about 65 ms sooner. Output is unchanged. ([#11495](https://github.com/meta/astryx/pull/11495))
339
+ - In a project with integrations, each integration's discovered themes are kept beside search's catalogs and read back while every file they read is unchanged, so `theme list` and the other theme commands skip re-reading an integration's themes on later calls (about 0.1 s with a large integration). An edit to a theme, or to a module it imports, shows on the next run. `doctor`'s cache row names the kept theme records. ([#11469](https://github.com/meta/astryx/pull/11469))
340
+ - In a project with integrations, the whole integration issue list is kept beside search's catalogs (the template and component replacement checks over Core and every integration, as well as each integration's own checks) and read back while every file it read is unchanged, so `component`, `template`, `theme` and `search` skip those passes on later calls (about 0.1–0.25 s each with a large integration). ([#11384](https://github.com/meta/astryx/pull/11384))
341
+ - In a project with integrations, template discovery's records are kept beside search's catalogs and read back while every file and folder discovery read is unchanged, so `template --list`, `template <name>` and `build` skip discovering templates on later calls (about 0.1 s with a large integration), and a template added, renamed or edited in an integration shows on the next call. A record that would not read back exactly (a function, a Map, a shared object, -0 and the like) is never kept. `doctor`'s cache row names template discovery's records. ([#11393](https://github.com/meta/astryx/pull/11393))
342
+ - Importing `@astryxdesign/cli/api`, as integration codemods and other integration code do, no longer loads Babel, recast, jscodeshift and postcss-selector-parser up front: each loads the first time it is used (about 0.25 s and 350 fewer modules per import). The API's exports are unchanged. ([#11432](https://github.com/meta/astryx/pull/11432))
343
+ - `component --list` finds a component that has no folder of its own about 20 ms sooner: one index of Core's folders replaces a check of each folder in turn. Output is unchanged. ([#11504](https://github.com/meta/astryx/pull/11504))
344
+ - The published CLI reads the icon definitions and built-in theme descriptors it ships from values stored at publish instead of parsing each file, so `docs` answers about 45 ms sooner and `doctor` and `theme list` about 10 ms sooner. An edited or unknown descriptor is parsed as before. Output is unchanged. ([#11496](https://github.com/meta/astryx/pull/11496))
345
+ - `experimental theme` commands read each folder of Core's sources once while they build Core's component docs. `experimental theme preview app` and `experimental theme preview add` do the same as they write the Overview and Components pages, instead of once per component name. Every run writes and prints the same. ([#11426](https://github.com/meta/astryx/pull/11426))
346
+
347
+ #### Documentation
348
+
349
+ - The CLI points agents and people to the experimental theme editor for making or changing a theme, labeled experimental each time: the agent block `astryx init` writes (its one theme line, which also keeps extending an imported theme before ejecting one to fork it), one added line in `astryx init`'s next steps (its other steps stay), `astryx --help`, the theme docs (`astryx docs theme`, the author-a-theme guide, in English and Chinese) and the `theme` command's help and summary name `astryx experimental theme editor new <name> --like neutral`, then `editor set` / `editor how`, `theme add <name>` to wire it, and `editor show <name> --png` to look at each change. `theme eject` adds one line, `experimental theme editor new <name> --like <base>` (the ejected theme when it is a built-in base the editor knows and its package is installed, else `neutral`), and `theme palette generate` adds one line, `experimental theme editor set <name> accent <color>`. ([#11500](https://github.com/meta/astryx/pull/11500))
350
+ - Hook docs for `useOutlineFromDOM`, so `astryx hook useOutlineFromDOM` and `astryx search` return it, and a `useOutlineFromDOM — Article` example block: an article and an Outline built from its headings through the hook, with a button that adds a section and its linked entry. ([#11234](https://github.com/meta/astryx/pull/11234))
351
+ - MetadataList's guidance now says that assistive technology reads each label with its value, and that the title does not name the list or add a heading. Its prop docs now list `className` and `style`, and the `label` docs say that `position: 'start'` places a label at the inline start of its value, not on the left. ([#11391](https://github.com/meta/astryx/pull/11391))
352
+ - `astryx docs styling/tokens-and-setup` has a Next.js with webpack section. It shows `experimental.optimizePackageImports: ['@astryxdesign/core']` in `next.config.mjs` and recommends a component entry, such as `@astryxdesign/core/Button`, in Server Components. Without either, a webpack build ships every Astryx client component to a page whose Server Component imports from the package root. The theme preview starter app that `astryx experimental theme preview app` copies has the same setting. No API changes. ([#11305](https://github.com/meta/astryx/pull/11305))
353
+ - A new example block shows `useTableColumnsVirtualization`: a 121-column Table with a pinned first column that mounts only the columns near its horizontal scroll position. ([#11014](https://github.com/meta/astryx/pull/11014))
354
+
355
+ #### Contributors
356
+
357
+ Thanks to everyone who contributed to this release:
358
+
359
+ - @charlie5188
360
+ - @cixzhang
361
+ - @HelloOjasMutreja
362
+ - @humbertovirtudes
363
+ - @josephfarina
364
+ - @korkt-kim
365
+ - @parinith-web
366
+ - @popsiclelmlm
367
+ - @prath47
368
+ - @vjeux
369
+
370
+ ---
371
+
3
372
  # 0.7.15
4
373
 
5
374
  #### Experimental APIs
@@ -69,6 +69,15 @@ export function loadComponents(cwd: string): Promise<ComponentWords[]>;
69
69
  * @returns {import('./kit/weights.mjs').WeightsFile | null}
70
70
  */
71
71
  export function loadWeights(): import("./kit/weights.mjs").WeightsFile | null;
72
+ /**
73
+ * The fixed word table of the shell-start check (kit/shell.weights.json), read
74
+ * once. Null when the file is missing or unreadable.
75
+ * @returns {{threshold: number, weights: Record<string, number>} | null}
76
+ */
77
+ export function loadShellWeights(): {
78
+ threshold: number;
79
+ weights: Record<string, number>;
80
+ } | null;
72
81
  /**
73
82
  * The classifier weights of build's root (tree.weights.json), read once.
74
83
  * @returns {import('../../foundation/route/route.mjs').ClassifierWeights}
@@ -164,6 +164,30 @@ export function loadWeights() {
164
164
  return weights ?? null;
165
165
  }
166
166
 
167
+ /** @type {{threshold: number, weights: Record<string, number>} | null | undefined} */
168
+ let shellWeights;
169
+
170
+ /**
171
+ * The fixed word table of the shell-start check (kit/shell.weights.json), read
172
+ * once. Null when the file is missing or unreadable.
173
+ * @returns {{threshold: number, weights: Record<string, number>} | null}
174
+ */
175
+ export function loadShellWeights() {
176
+ if (shellWeights === undefined) {
177
+ try {
178
+ shellWeights = JSON.parse(
179
+ fs.readFileSync(
180
+ new URL('./kit/shell.weights.json', import.meta.url),
181
+ 'utf8',
182
+ ),
183
+ );
184
+ } catch {
185
+ shellWeights = null;
186
+ }
187
+ }
188
+ return shellWeights ?? null;
189
+ }
190
+
167
191
  /** @type {import('../../foundation/route/route.mjs').ClassifierWeights | undefined} */
168
192
  let treeWeights;
169
193