Skip to content

Propose theme-defined Icon capabilities (AST-054) - #6891

Closed
rubyycheung wants to merge 13 commits into
mainfrom
feat/theme-aware-icon-weight
Closed

rubyycheung wants to merge 13 commits into
mainfrom
feat/theme-aware-icon-weight

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Decision needed

Adopt the complete AST-054 capability model with four additions:

  1. direct unregistered product icons can participate through a typed adapter;
  2. one theme policy controls default/per-size appearance and weight plus appearance-only state presentation;
  3. themes can override the default size of declared component icon roles; and
  4. declared role/state metadata generates a visual inventory and conformance checks.

The formal deciders for DEC-7 through DEC-10 remain pending. Approval to prepare this preview is not recorded as architecture approval.

Simple authoring experience

Component maintainers declare structure once

An icon role is the stable place or purpose of an icon inside a component: a Button leading icon, a SideNav item icon, a Selector selected marker, or an input status icon.

A state is one finite literal condition declared by a role. In this example the
exact literals are selected, pressed, disabled, and loading; other roles may declare
another finite set.

The approved public ComponentIconSlotMap remains the role-name owner. Its original
true value remains valid, stateless, and nonparticipating. A metadata-bearing value
owns a finite literal state vocabulary. Public ComponentIconStateName and theme
byState keys conditionally derive only from metadata-bearing values. The role's
precedence contains only its own states and produces at most one effective state. The
component still owns source, transitions, placement, interaction, and accessibility.

Conceptually, with helper and metadata field spelling still under API review:

declare module "@astryxdesign/core/Icon" {
  interface ComponentIconSlotMap {
    "selector-selected-option": true;
    "button-leading": {
      states: "pressed" | "disabled" | "loading";
    };
    "selector-selected-marker": {
      states: "selected" | "disabled";
    };
  }
}

type StatesOf<T> = T extends { states: infer State extends string }
  ? State
  : never;

type ComponentIconStateName = StatesOf<
  ComponentIconSlotMap[keyof ComponentIconSlotMap]
>;

declareComponentIconRole({
  slot: "button-leading",
  defaultSize: "sm",
  statePrecedence: ["disabled", "loading", "pressed"],
});

Existing {slot: true} augmentations continue to type-check, contribute no state
name, and retain only their componentIcons source mapping. A component opts into
role size and state appearance only through a metadata-bearing value. Its
contract-default path remains pixel-equivalent to its nonparticipating baseline.

Theme authors set one policy

defineTheme({
  iconCapabilities: {
    contract: capabilities,
    presentation: {
      default: { appearance: "outline", weight: 500 },
      bySize: {
        compact: { weight: 600 },
        display: { appearance: "duotone", weight: 400 },
      },
      byState: {
        selected: { appearance: "filled" },
        pressed: { appearance: "duotone" },
        disabled: { appearance: "outline" },
        loading: { appearance: "duotone" },
      },
    },
    roleSizeOverrides: {
      "button-leading": "compact",
    },
  },
});

State presentation chooses appearance only—never weight. byState keys conditionally
derive from metadata-bearing role values; a true entry contributes none. Final size
selects the theme's default weight. An explicit <Icon weight> remains the only
override.

Theme inheritance is settled:

  • absent presentation inherits;
  • an explicit presentation object replaces the inherited object atomically;
  • presentation: null resets to contract/source defaults;
  • role-size overrides merge per role, and null clears one inherited override.

Product icon libraries adapt once

const adaptProductIcon = createIconAdapter({
  capabilities,
  resolveProps(request) {
    return {
      appearance: mapAppearance(request.appearance),
      weight: mapWeight(request.weight),
    };
  },
});

export const ProductIcon = adaptProductIcon(ProductIconImpl);

The bound adapter contract joins the application capability set. The adapter receives
only admitted axes it supports. An unsupported axis is omitted so the wrapped
library's declared default applies. An explicit caller appearance/weight mismatch
warns once in development; theme-policy fallback is inspection-only. Malformed mapped
output warns once in development and safely renders the wrapped component without
mapped presentation props.

Ordinary direct components stay fixed. Astryx never spreads presentation data or unknown props onto them or the DOM.

Theme owners review one generated inventory

The declarations generate one visual inventory showing every role's source mode, default/resolved size, state precedence, effective state, appearance, and weight under each theme. The same metadata drives generated types, docs, inspection, runtime, and static builds.

Conformance checks flag undeclared roles/states, shared-path bypasses, hardcoded state appearance, dropped role-size rules, missing inventory coverage, and default-policy pixel changes.

Normative precedence

  1. Source and state: explicit caller source override; otherwise componentIcons role mapping and ordinary registry precedence. A metadata-bearing role reports zero or one effective state; a true role reports none.
  2. Size: admitted explicit Icon size → theme override for a metadata-bearing role → component/family default → standalone md. A true role has no role-size override. Invalid theme or role-size authoring rejects before use. An untyped unadmitted consumer size is ignored, continues through the remaining cascade, and warns once in development.
  3. Appearance: explicit Icon appearance → theme appearance for the one effective state → theme default plus matching final-size appearance → source default.
  4. Weight: explicit Icon weight → theme default plus matching final-size weight → source default. State never participates.
  5. Version: exact size, appearance, then weight/parameterized range inside one atomic source.

Dimension application is participation-aware. An admitted explicit Icon size and a
standalone icon's final md use the active theme dimension. An implicit size inside a
legacy nonparticipating component keeps its released dimension until that component
declares metadata participation. A participating role uses its final resolved theme
dimension for both the glyph and its component-owned wrapper.

Missing size artwork uses the root branch in the resolved box. Fixed and ordinary
direct sources ignore theme presentation without warning; only an explicit unsupported
caller request warns. Malformed registry entries skip to normal registry precedence.
Adapter failure is separate and safely renders the wrapped default. A missing or
unresolved namespaced key renders nothing through Icon, returns no node from
getIcon, and preserves the caller-supplied fallback in getExtendedIcon.

Existing caller-supplied selectedIcon and pressedIcon values remain source overrides for compatibility. Without one, the normal source remains and theme state appearance supplies the visual state.

Exact original-versus-preview checklist

Original 9647aa contract Disposition Preview result
Independent optional size, appearance, and weight requests Unchanged and clarified Explicit requests remain independent; final size selects only the default weight.
One grouped reusable capability contract Unchanged Registry integrations and adapter-bound contracts compose into one application set.
Generated types/docs/runtime/build/inspection Unchanged and extended Role/state metadata and inventory derive from the same declarations.
xsm, sm, md, and lg dimensions Unchanged 12/16/20/24px defaults remain.
Custom icon-only sizes with canonical defaults Unchanged Conflicting defaults fail validation; themes may override dimensions.
Theme dimension overrides Unchanged and clarified Explicit and standalone sizes use the active override; implicit legacy component defaults retain released dimensions until metadata participation; participating roles size wrapper and glyph together.
Sparse size-specific artwork Unchanged Missing size artwork uses the root branch in the resolved box.
Theme-defined appearance names Unchanged Examples now admit every value they request, including duotone.
Exact named/numeric weights and continuous ranges Unchanged No clamping or universal scale.
Fixed and adaptive entries with supplied defaults Unchanged Every path still terminates at a supplied fixed or parameterized version.
Public per-Icon appearance/weight overrides Unchanged Explicit requests remain highest precedence.
Component/family structural defaults Restored and clarified Families may derive source/default size/state transitions and document structural exceptions.
Component/family appearance or weight defaults Intentionally removed DEC-4 is structural only; themes/explicit requests/source defaults own visual axes.
Resolution narrows source → size → appearance → weight Unchanged One normative sequence replaces repeated prose.
Registry source precedence and atomic entries Unchanged Malformed source skips to the next normal source; missing branches never mix sources.
One-argument reads, hooks, and programmatic parity Unchanged Existing reads remain compatible; request-aware paths match Icon.
Fallback and diagnostics Unchanged and repaired Invalid theme/role authoring rejects; invalid untyped consumer size falls back and warns; explicit adapter mismatch warns while theme fallback is inspection-only.
No SVG synthesis or mutation Unchanged Every render uses supplied artwork.
Runtime/build/server/client parity Unchanged and extended Inheritance, adapters, role size, state appearance, and inventory share parity.
Default structure and pixels Explicitly preserved Undeclared components, true roles, and themes without capability fields remain byte/pixel compatible; metadata-bearing defaults match the nonparticipating baseline.
Missing or unresolved namespaced icon keys Unchanged Icon renders nothing, getIcon returns no node, and getExtendedIcon uses its caller-supplied fallback.
Direct unregistered product icons Added Typed adapter, contract composition, admitted-axis filtering, and safe malformed fallback.
Theme default plus per-size presentation Added Default/per-size appearance and weight after final-size resolution.
Theme visual state Added, appearance only Selected/pressed/disabled/loading may choose appearance; state can never choose weight.
Theme role-size override Added Exact four-level size precedence and per-role inheritance/clearing.
Role/state owner Settled additively A ComponentIconSlotMap value remains true or carries finite literal states; ComponentIconStateName/byState conditionally derive only from metadata-bearing entries; one role emits at most one state.
Generated visual inventory and conformance Added true roles are marked stateless/nonparticipating; metadata-bearing roles receive the complete state/size/presentation review surface and checks.
selectedIcon / pressedIcon Preserved Explicit compatibility source overrides, not the required visual-state mechanism.
Existing componentIcons authority Preserved with additive value extension and ownership refinement The slot map still accepts true and maps roles to an IconName or null; metadata-bearing values add participation. Under INV8, structural ownership stays component-owned while opted-in roles permit theme default size and one-state appearance.

Public library survey moved out of the standing spec

The original research remains useful context but is not normative content:

  • Material Symbols: continuous numeric weight and a separate fill axis justify independent appearance and range-backed weight.
  • Phosphor: named weights including thin, regular, bold, fill, and duotone justify library-owned names.
  • Lucide: numeric stroke width justifies parameterized renderers without Astryx assigning library meaning.
  • Heroicons: sparse size/appearance artwork justifies exact size branches and supplied defaults.
  • Fluent UI System Icons: broad regular/filled support with lighter subsets justifies sparse per-source capability support.

Durable conclusion retained in the record: contracts support library-owned appearance names, exact or continuous weights, sparse size artwork, and supplied parameterized renderers without SVG mutation.

Related-work map

Work Classification Relationship and disposition
Issue #44 Original need Establishes the themeable-icon need across SVG/font libraries. Rationale only; no standing authority.
PR #6891 Canonical preview target AST-054 review surface to update with this restored-and-reconciled contract.
9647aa Exact baseline Complete pre-narrow spec restored before the explicit changes in this preview.
c855f993 and 63b11cf Earlier contract evidence Preserve the broad independent size/appearance/weight, sparse tree, range, family, and parity requirements; not standalone authority.
PR #6244 Overlapping owner Size-aware registry draft overlaps size-specific entry resolution. Reconcile to one canonical owner before either record becomes current.
PR #6025 and PR #6028 Closed historical attempts Earlier theme-owned Icon-size specification/implementation attempts. No authority; lessons are absorbed by canonical size/default/parity rules.
Issue #1267 Rejected alternative exploration Explored CSS/SVG mutation. AST-054 instead requires supplied fixed or parameterized versions.
Issue #5058 Current implementation constraint Theme builds can lose registry data. Rich capability/presentation/role metadata must not preserve that source/build divergence.
PR #5475 Shipped foundation Added typed namespaced extension keys to Icon, hooks, and themes; enables fixed component-owned artwork without growing IconName. Preserve compatibility.
PR #5466 Shipped dependent path NumberInput uses the namespaced component/library artwork path enabled by #5475. It remains a fixed-source compatibility case, not the adaptive default.
PR #5733 Approved current architecture Preserves ComponentIconSlotMap, componentIcons, true slot declarations, role-to-IconName/null mapping, fallback precedence, and structural ownership. Corrected AST-054 conditionally extends slot values with metadata while keeping true valid, and refines INV8 so source/transitions/transforms/placement/color/accessibility stay component-owned while opted-in roles permit theme default size and one-state appearance.
PR #7116 Corrected authority projection Projects the restored AST-054 contract into the existing Icon, theme, component-slot, Button-family, and API owners. It remains blocked until AST-054 becomes current and affected owners approve it.
PR #7117 Closed narrow authority path Closed as superseded so reviewers do not spend time on the discarded static-only direction. Existing true slot declarations and name/null mapping remain compatibility requirements in the focused replacement stack.
PR #7122 Closed narrow Core implementation Closed with #7117. Its useful compatibility behavior is being replaced by smaller stacked PRs for the Core capability engine/build parity, direct-icon adapters, and component role/state infrastructure.
PR #7131 Closed narrow build-parity implementation Closed with #7117/#7122. Its source/build parity obligation remains mandatory and moves into the first replacement implementation PR so no intermediate layer silently loses icon theme data.

The replacement implementation keeps every AST-054 use case but is split for review:

  1. #7214 — Core capability engine plus source/built-theme parity;
  2. #7222 — Direct-icon library adapter;
  3. #7219 — Component role/state infrastructure;
  4. #7221 — Apply theme-owned icon styling to the Button family;
  5. grouped component adoption; and
  6. #7223 — Generated inventory, conformance checks, and authoring guidance.

A slice that cannot safely land independently remains stacked and blocked. #7117,
#7122, and #7131 are closed as superseded; their branches and discussion remain as
historical context. Replacement links will be added here as each focused PR opens.

Proposed decisions

  • DEC-7, pending: direct adapters bind contributing contracts, receive only admitted supported axes, and fail safely to the wrapped default.
  • DEC-8, pending: theme weight comes only from default/per-final-size policy; state presentation is appearance-only.
  • DEC-9, pending: ComponentIconSlotMap keeps true as stateless/nonparticipating and adds metadata-bearing values; public ComponentIconStateName/byState conditionally derive only from metadata states; each participating role reports at most one state by declared precedence.
  • DEC-10, pending: presentation inheritance is absent/inherit, explicit/atomic replace, null/reset; role sizes merge per role with null clearing; declarations generate inventory and conformance.

Existing DEC-1 through DEC-6 remain, with DEC-4 clarified as structural defaults only.

Open API decisions

  1. Final exported spellings and module paths for capability, adapter, presentation, role-metadata, request-aware lookup, and inspection APIs.
  2. Shipped location and command entry point for the generated visual inventory and conformance check.

Inheritance, role ownership, state precedence, adapter fallback, and participation are no longer open.

Scope and migration

  • The baseline before local edits matched exact 9647aa blob a5d6b1152a79a35199299fa12c98d99e081375db (30,570 bytes).
  • Existing fixed entries, custom sizes, adaptive trees, callers, themes, diagnostics, and one-argument reads retain their original contract.
  • Existing ordinary direct components and undeclared components require no migration.
  • Existing {slot: true} augmentations remain valid, stateless, and nonparticipating; no metadata migration is required.
  • Product libraries opt in once through the adapter; callsites need no registry key.
  • Participating components declare role/state metadata once and preserve default pixels.
  • Existing selectedIcon, pressedIcon, namespaced keys, and componentIcons callsites remain valid.
  • This PR changes only the AST-054 standing record. Runtime, package, CLI, generated inventory, component adoption, and consumer-documentation work remains in blocked dependent PRs.
  • No implementation PR may land before this draft becomes current and the affected authority owners approve the projection.

Writing rubric results

R1 narration: project-stage phrases using current/new additive, before adoption,
acceptance requires, and migration language were rewritten as durable compatibility,
ownership, and participation constraints; none remain in the standing record.

R2 research: the public icon-library survey was removed from the standing record and retained above; only its durable capability conclusion remains in DEC-1/DEC-6.

R3 evidence: verification names observable type, runtime, build, browser, inventory, diagnostic, and accessibility facts; no verification cell cites a PR, issue, or commit.

R4 rejected alternatives: each retained rejection is one line inside DEC-1 through DEC-10; comparison and historical alternatives live only in this PR body.

R5 change references: none remain in the standing spec; the related PR/issue/commit map lives only in this PR body.

R6 open questions: OQ1 retains unresolved spelling/module-path choices and OQ2 retains unresolved inventory/tool location; inheritance, role ownership, state precedence, participation, and adapter fallback were settled and removed from open questions.

Validation

  • Standing spec: 671 lines, below the 750-line review target; PR body: 281 lines.
  • Prettier write/check: passed for the standing spec and local PR body.
  • node scripts/check-knowledge.mjs: passed (Knowledge templates and records are aligned).
  • vitest run scripts/check-knowledge.test.mjs: 100/100 tests passed. Vite also emitted its existing non-failing SSR warning for the dynamic file://${file} import in the doc compiler; that unrelated source is unchanged.
  • git diff --no-index --check: passed for both files.
  • Targeted structural checks passed: FR1–FR23, DEC-1–DEC-10, and OQ1–OQ2 are contiguous; true slot entries still type-check and remain stateless/nonparticipating; the conditional state union excludes true; invalid consumer-size fallback and invalid theme authoring are distinct; adapter warnings retain caller/theme provenance; all namespaced-key outcomes are present; project-stage narration, amendment narration, and standing change references are absent; both Markdown tables have stable columns; docs: define icon resolution and component slots #5733 records the additive slot-value extension and durable INV8 ownership refinement.
  • Writing-rubric scan: no PR/issue references or library-survey names remain in the standing spec; R1–R6 are present literally and every related-work link required for review is in this PR body.

@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 9, 2026 12:58am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 2, 2026
@astracat-bot

astracat-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 15, 2026, 1:59 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for recording this as a focused draft proposal with clear compatibility boundaries.

Approval needs a maintainer decision first, because the proposal intentionally changes established Icon and theming rules and adds new contract surface that has no governing spec yet. A maintainer needs to accept this record as the owner for the broader size, appearance, and weight contract, update the current baseline and closed-size rules it amends, confirm the coordinated changes with the affected theme, icon, API, and Button owners, settle how final helper names are handled, and coordinate the overlapping size-aware draft so the two do not compete.

Record fixes will also be needed before acceptance: move pull-request history and the library survey out of the standing record (keeping only durable facts and conclusions), rewrite proposal narration as present-tense system statements, and add the writing-rubric results to the description. No runtime behavior changes in this pull request, and existing fixed icons and lookups are preserved by the proposal as written.

[Automated review]

@imdreamrunner

Copy link
Copy Markdown
Contributor

Aligned with the direction and the added icon behaviors!

One thing to highlight to eng owner, this spec allow theme to expand the flow type for icon size (currently xsm, sm, md and lg) and 2 new <Icon> property appearance and weight's type will be set by theme.

@cixzhang would love your inputs on this as it's more about core component prop and types.

@rubyycheung
rubyycheung force-pushed the feat/theme-aware-icon-weight branch from d12a0bb to 897f631 Compare October 7, 2026 17:30
@rubyycheung rubyycheung changed the title Propose theme-owned Icon capabilities (AST-054) Propose registry-backed Icon variant resolvers (AST-054) Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

View Storybook for this PR · View Sandbox for this PR

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for narrowing this to one registry-backed variant request and one typed slot resolver with clear compatibility boundaries.

Approval needs a maintainer decision first, because the new variant and resolver contract has no governing specification yet and the variant fallback intentionally departs from the current rule that an extensible axis needs a theme-independent baseline expressed through a public vocabulary map. A maintainer needs to accept this record as the governing specification, decide its eight proposals, settle the final type and overload names and what public theme data exposes for a resolver-valued slot, and update the current baseline, Icon, slot-resolution, and theme records it amends.

No runtime behavior changes in this pull request, and the proposal as written preserves fixed icons, the four sizes, direct component-mode Icons, instance precedence, and existing node-valued reads.

[Automated review]

@imdreamrunner

Copy link
Copy Markdown
Contributor

@cixzhang @rubyycheung a thought on variant:

Could variant stay theme-extensible but be typed with the standard *Map pattern, instead of as a plain string? The spec calls it "opaque", but since it's typed variant?: string, any value type-checks, typos included.

export interface IconVariantMap {}   // themes augment, e.g. { filled: true; outline: true }
export type IconVariant = keyof IconVariantMap & string;

IconVariant could then type the <Icon> prop, the icons resolver request, and componentIcons results. A variant an entry doesn't handle would render its no-variant artwork, with the same name and the same box, similar to how Heading.type falls back to level. If that holds, INV14 might not need an exception, and neither would the *Map rule.

Cindy, I may be misreading "no cross-theme unions". Was it meant to rule out something like this? I'm also curious whether you see variant as a public <Icon> prop, or only something that flows from componentIcons resolvers to icons resolvers.

@rubyycheung rubyycheung changed the title Propose registry-backed Icon variant resolvers (AST-054) Propose theme-defined Icon capabilities (AST-054) Oct 8, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for restoring the complete contract with clear compatibility boundaries for fixed icons, existing sizes, marker-only slots, and current lookups.

Approval needs a maintainer decision first, because the proposal opens new Icon and theme contract surface and intentionally revises current closed-size and component-ownership rules that have no governing acceptance yet. A maintainer needs to accept this record as the governing specification, decide its proposals including the pending adapter, presentation, slot-state, and inventory additions, settle the final exported names and where the generated inventory and checks ship, update the affected theming, Icon, slot, public-API, and theme records, settle the single owner for size-specific artwork selection, and confirm this broad direction in place of the previously directed narrow model together with overlapping slot work.

No runtime behavior changes in this pull request, and the proposal as written preserves existing fixed entries, direct components, shared-name slot mapping, and one-argument reads.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for restoring the complete contract with clear compatibility boundaries for fixed icons, existing sizes, marker-only slots, and current lookups.

Approval needs a maintainer decision first, because the proposal opens new Icon and theme contract surface and intentionally revises current closed-size and component-ownership rules that have no governing acceptance yet. A maintainer needs to accept this record as the governing specification, decide its pending adapter, theme-presentation, slot-state, and inheritance and inventory proposals, settle the final exported names and where the generated inventory and checks ship, update the affected theming, Icon, slot, public-API, Button-family, and theme records, settle the single owner for size-specific artwork selection, and confirm this broader direction in place of the previously directed narrower model together with overlapping slot work.

No runtime behavior changes in this pull request, and the proposal as written preserves existing fixed entries, ordinary direct components, shared-name slot mapping, caller source overrides, and one-argument reads.

[Automated review]

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval needs a maintainer decision first: this draft adds Icon and theme contract surface that has no governing spec yet (appearance and weight requests, a theme presentation policy, a direct-icon adapter, and a generated inventory), and it intentionally changes current rules that keep Icon sizes closed and keep a component icon slot's size and state with the component. A maintainer needs to identify or accept the governing spec for those additions in place of the earlier, narrower direction, update the existing Icon, slot, theming, and Button-family specs for the intentional changes, decide the four pending decisions and both open API questions, and name the single owner for size-specific icon artwork. Before acceptance, please also fix these record issues:

  • State the built-in Icon sizes as their shipped rem values (12–24px only at a 16px root), so they keep scaling with the root font size.
  • Explain how sizeOverrides relates to the existing icon theme target size styles, which already resize icons.
  • Keep theme role-size overrides inside the owning control's geometry, as the Button family's size contract requires.
  • Name one owner for size-specific entry resolution, describe the private size context without its internal name, and refresh the 671-line figure in the description (the record has 719 lines).

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 51c94953 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants