Skip to content

v0.11.0 — Library-derived focus states + Figma build-hardening

Choose a tag to compare

@jrpease jrpease released this 02 Jul 13:41

Reframes focus construction and closes the skill/reference gaps surfaced by a greenfield build run. Documentation/instruction only — tokens and code-gen untouched.

Library-derived focus states

  • Focus idiom now derives from project.uiFramework: shadcn/default 0 0 0 3px spread-shadow ring, vanilla-css outline stroke, MUI per-component, ios-swift skip, tier-2 researched — no more single house-style stroke.
  • Ring mechanism chosen by control fill: drop-shadow effect for filled controls, absolutely-positioned ring child for transparent ones (a Figma drop-shadow only casts from opaque pixels). Padded wrapper forbidden.
  • clipsContent=true on the shadow-casting control frame, false on ancestors. Retrofit clause + audit item so legacy components get fixed when touched.

Figma scripting gotchas (figma-scripting.md)

setBoundVariableForEffect geometry reset · drop-shadow opacity · text-style before .characters (Inter font order) · VERTICAL resize() axis mapping · read-after-write refreshCache · placeholder paint + bind read-back · ~30s figma_execute cap → chunk.

Component standards

Deterministic grid coordinates over minWidth/layoutMode="GRID" for large matrices · component-area must contrast every variant fill · audit exemption for coordinate-laid sets.

Publishing

Self-publish is not tool-verifiable — trust the user's confirmation; an INSTANCE_SWAP key rejection is the authoritative signal.

Icons & components

Tabler + Phosphor promoted to first-class fetch libraries · warning when rebuilding a published/consumed component set detaches downstream instances.

Full diff: v0.10.0...v0.11.0