From 9b5f2995b472e60be30d271aad24380ed7ac6d99 Mon Sep 17 00:00:00 2001 From: Pedro Brito <74918167+pedrobritx@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:08:21 -0300 Subject: [PATCH] Complete the component consistency contract and retire its proposal --- CHANGELOG.md | 12 ++ docs/ACCEPTANCE.md | 26 +++- docs/CI_RELIABILITY.md | 7 +- docs/COMPONENTS.md | 74 +++++++++++ docs/LIQUID_INTERFACE.md | 7 +- docs/assets/app.mjs | 2 + docs/assets/liquid.css | 43 +++++-- docs/assets/liquid.mjs | 5 + docs/assets/style.css | 172 +++++++++++++++++-------- docs/design-tokens.json | 40 ++++-- docs/index.html | 12 +- outputs/consistency-review/REVIEW.md | 130 ------------------- outputs/figma/README.md | 7 +- outputs/verification.json | 54 ++++++++ tests/acceptance/production.spec.mjs | 2 + tests/browser/components.spec.mjs | 179 +++++++++++++++++++++++++++ tests/browser/languages.spec.mjs | 56 +++++++-- tests/browser/setup.spec.mjs | 20 +-- tests/browser/visual.spec.mjs | 9 +- 19 files changed, 617 insertions(+), 240 deletions(-) create mode 100644 docs/COMPONENTS.md delete mode 100644 outputs/consistency-review/REVIEW.md create mode 100644 tests/browser/components.spec.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index 723f0ba..878b8c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed — shared component contract + +- Consolidated control geometry, spacing and response tokens; kept geometry in + the component stylesheet and reused catalogue checkmarks for installation + confirmation. Aligned comparable Review headings and panel insets. +- Installation starts expose busy state and suppress duplicate activation and + decorative disabled/busy response. Added an internal real-control reference + and busy/error retry coverage, with both themes and Calm captures. +- Split independent locale, viewport and capture checks into bounded tests + without removing assertions or raising timeouts. Removed the completed + consistency proposal; the component contract and acceptance checklist remain. + ### Changed — languages and softer window motion - Added a keyboard-operable round flag picker for English (UK), Brazilian diff --git a/docs/ACCEPTANCE.md b/docs/ACCEPTANCE.md index 249586c..224b3cb 100644 --- a/docs/ACCEPTANCE.md +++ b/docs/ACCEPTANCE.md @@ -42,10 +42,12 @@ browser report metadata use the triggering CI's source SHA. The first PR #10 merge (`dfbed94`) passed main CI and Pages, but the original `workflow_run` subscription to the GitHub-managed dynamic Pages workflow did -not start any acceptance run. The follow-up uses the repository's normal CI -workflow as its entry point and checks Pages explicitly. Its actual hosted -trigger remains unverified until the follow-up merges and runs; a configured -trigger alone is not evidence of execution. +not start any acceptance run. PR #11 corrected the entry point to normal CI +and checks Pages explicitly. This trigger is verified for merged main `18abe0a`: +[deployed acceptance run 40231047013](https://github.com/pedrobritx/mac-setup/actions/runs/40231047013) +passed all three cases in each of Chromium, Firefox and WebKit, after the +exact-revision Pages gates passed. This is automated dry-run evidence; the human +and real-installation rows below remain unperformed. ## Native macOS dry-run compatibility @@ -116,3 +118,19 @@ Reviewer/date: ____________________ CI artifact for the tested commit; they cannot be inferred from Linux. - The historical motion timeout remains unreproduced. New acceptance coverage does not retrospectively establish its internal cause. + +## Merged-main checkpoint — 26 October 2026 + +For `18abe0acd4f6bdbaedc980c099084ce4c0881345`, all five +[main CI jobs](https://github.com/pedrobritx/mac-setup/actions/runs/40230732341), +[Pages](https://github.com/pedrobritx/mac-setup/actions/runs/40230731914) and the +three-engine deployed suite linked above passed. Native macOS compatibility +passed its isolated dry-run job. None of these checks installed software on a +real test Mac or supplied human acceptance. + +The next real-installation test needs an explicitly chosen disposable Mac or +macOS VM, a recoverable snapshot, and a reviewed minimal plan for the candidate +revision. Run the native collector and `./web.sh --dry-run --plan FILE` first; +record actual install/repeat-run outcomes only after real installation on that +disposable environment is separately authorized. Later source changes require +their own main CI, Pages and deployed-suite evidence. diff --git a/docs/CI_RELIABILITY.md b/docs/CI_RELIABILITY.md index 6e2281e..d2bfbf4 100644 --- a/docs/CI_RELIABILITY.md +++ b/docs/CI_RELIABILITY.md @@ -78,12 +78,17 @@ The live home page, Safety page, catalogue, `liquid.mjs` and `app.mjs` all retur HTTP 200 and matched the merged main revision byte-for-byte. This establishes asset availability and version consistency, not interactive production acceptance. -Still pending: installation on an isolated Mac; real sudo and App Store flows; +Pending at this checkpoint: installation on an isolated Mac; real sudo and App Store flows; licences and vendor/MCP account authentication; human VoiceOver acceptance; physical touch hardware; human cross-browser visual review; production FPS; native-language editorial review; and interactive production/local-companion acceptance. Existing dry-run specimens do not establish real installation. +The later [acceptance checkpoint](ACCEPTANCE.md#merged-main-checkpoint--26-october-2026) +records three-engine deployed browser/local-companion dry-run success for merged +main `18abe0a`. It supersedes the interactive automated-acceptance gap above; +real installation and human checks remain open. + ## Evidence links - [Historical failed PR workflow](https://github.com/pedrobritx/mac-setup/actions/runs/39888755209) diff --git a/docs/COMPONENTS.md b/docs/COMPONENTS.md new file mode 100644 index 0000000..c46813f --- /dev/null +++ b/docs/COMPONENTS.md @@ -0,0 +1,74 @@ +# Component contract + +The component consistency work uses the existing HTML controls and CSS layers; +it adds no UI framework. `style.css` owns geometry, spacing and semantic +materials. `liquid.css` consumes that geometry and owns decorative response. + +Primary, secondary and tertiary actions differ in emphasis, with capsule action +surfaces and circular icon controls. Persistent selected/checked states belong +to profiles, categories, sources and checkboxes, not ordinary action buttons. +Catalogue and installation-confirmation checkboxes share the drawn mark while +retaining native checkbox semantics and keyboard focus. + +Geometry uses named control, panel, window and mark radii, a 4/8/12/16/24/32/48 +spacing vocabulary, 44px normal actions and 48px prominent actions. Dense source +links, compact navigation and nested corners retain their responsive/optical +exceptions in the component stylesheet. The motion layer must not override +component radii. Comparable review panels share their inset and heading origin. + +Immediate feedback, elastic surface response and spatial transitions use the +shared quick/fast/slow duration and easing tokens. Ambient breathing and checkbox +stroke drawing retain their documented expressive timing. +Calm and system reduced motion override decoration. Disabled or busy actions +suppress press/hover deformation and pointer sheen. Starting an installation +sets `aria-busy`, disables duplicate activation, and clears busy state on success +or error; a failed start permits retry. Copy completion uses the existing Copied +feedback; normal actions do not acquire a persistent selected appearance. + +## Internal control reference + +Run from the repository root: + +```bash +npm run test:browser -- --browser=chromium tests/browser/components.spec.mjs +``` + +The reference test clones the real current controls rather than maintaining a +second markup implementation. Screenshots under `test-results/` cover both +themes, Fluid/Calm, applicable states and long translated labels; compact width, +focus, geometry, native confirmation and a controlled busy/error transition are +checked. These are test artifacts, not another public product page or simulated +installation. The full browser suite also checks five locales, responsive +layouts, interrupted springs, reduced motion, accessibility and actual dry runs. + +The completed implementation proposal was removed from +`outputs/consistency-review/REVIEW.md`; its original captures and Git history +remain historical evidence. Human VoiceOver, touch, visual/editorial review and +real installation acceptance remain in [ACCEPTANCE.md](ACCEPTANCE.md). + +The Figma file still represents its saved desktop baseline. This runtime change +does not claim new Figma variants, editable phone layouts or automatic sync. + +## Verification — 26 October 2026 + +The local Chromium suite passed all 26 cases, without retries, on the changed +source based on main `18abe0a`. Node 15/Python 21, catalogue and formatting checks +also passed. Source fingerprints are in `outputs/verification.json`. + +Before splitting independent checks, the combined language journey exceeded its +60-second budget after successful interactions. Unchanged main also exhausted +the combined viewport/accessibility test's budget. An additional combined-language +repetition timed out at screenshot capture; another used almost the full budget. +Locale switching, keyboard/search/Safety, locale audits, viewport audits and +companion captures now have independent tests with the original deadlines and +assertions. The final locale-switching journey took 14.8 seconds, the keyboard/ +search/Safety journey 12.0 seconds and the slowest viewport audit 28.7 seconds. +An earlier intermittent overflow observation was not reproduced in the final +suite; it is not assigned a speculative root cause. +The historical PR #8 timeout remains unresolved. + +Local verification used Linux, Node 24.22.1, Python 3.12.14, Playwright 1.64.1 and +its pinned Chromium 156.0.8078.4 with an isolated browser dependency sysroot. +Docker, native macOS, Firefox and WebKit were unavailable locally for this pass; +hosted three-engine and native dry-run checks remain publication gates. A dry +run never establishes real Mac installation or human acceptance. diff --git a/docs/LIQUID_INTERFACE.md b/docs/LIQUID_INTERFACE.md index 7009f98..15d29a0 100644 --- a/docs/LIQUID_INTERFACE.md +++ b/docs/LIQUID_INTERFACE.md @@ -148,5 +148,8 @@ behaviour. Visual references and the comparison ledger live under `outputs/`. The built-in browser is also used to inspect the actual local companion. These checks do not install applications or apply macOS preferences on the -developer's Mac. Native touch hardware, VoiceOver and current Firefox/Chromium -rendering remain manual verification areas. +developer's Mac. Chromium, Firefox and WebKit now run in CI; native touch +hardware, VoiceOver and human browser rendering review remain acceptance areas. + +The implemented [component contract](COMPONENTS.md) defines geometry ownership, +shared states, confirmation marks and the internal real-control reference. diff --git a/docs/assets/app.mjs b/docs/assets/app.mjs index a483bff..8114f64 100644 --- a/docs/assets/app.mjs +++ b/docs/assets/app.mjs @@ -684,6 +684,7 @@ async function startInstallation() { } if (!$("git-email").reportValidity()) return; starting = true; + $("continue-button").setAttribute("aria-busy", "true"); $("continue-button").disabled = true; // Discard the previous run's presentation before the new request can yield. // A completed, hidden view must not look like the new run has finished. @@ -716,6 +717,7 @@ async function startInstallation() { showError(error.message); $("continue-button").disabled = false; } finally { + $("continue-button").removeAttribute("aria-busy"); starting = false; } } diff --git a/docs/assets/liquid.css b/docs/assets/liquid.css index adf03bb..215b3f2 100644 --- a/docs/assets/liquid.css +++ b/docs/assets/liquid.css @@ -5,15 +5,15 @@ --duration-slow: 400ms; --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-liquid: cubic-bezier(0.2, 1.45, 0.4, 1); - --modal-open-dur: 250ms; - --modal-close-dur: 150ms; + --modal-open-dur: var(--duration-fast); + --modal-close-dur: var(--duration-quick); --modal-scale: 0.96; --modal-scale-close: 0.96; - --modal-ease: cubic-bezier(0.22, 1, 0.36, 1); - --check-box: 150ms; + --modal-ease: var(--ease-smooth-out); + --check-box: var(--duration-quick); --check-draw: 350ms; - --check-uncheck: 150ms; - --check-ease: cubic-bezier(0.22, 1, 0.36, 1); + --check-uncheck: var(--duration-quick); + --check-ease: var(--ease-smooth-out); --liquid-opacity: 0.3; } html[data-theme="light"] { @@ -120,7 +120,6 @@ html[data-theme="light"] { ) { position: relative; isolation: isolate; - border-radius: 24px; } :is( .text-button, @@ -145,8 +144,8 @@ html[data-theme="light"] { opacity: 0; transform: scale(0.82, 0.7); transition: - transform 400ms var(--ease-liquid), - opacity 180ms ease; + transform var(--duration-slow) var(--ease-liquid), + opacity var(--duration-quick) var(--ease-smooth-out); } :is( .text-button, @@ -286,7 +285,7 @@ html[data-theme="light"] { width: 19px; height: 19px; border: 1px solid var(--control-border); - border-radius: 6px; + border-radius: var(--radius-mark); background: var(--field); box-shadow: inset 0 1px 2px #0002; transition: @@ -300,8 +299,8 @@ html[data-theme="light"] { stroke-width: 2.4; } .choice-mark path { - stroke-dasharray: var(--check-len); - stroke-dashoffset: var(--check-len); + stroke-dasharray: var(--check-len, 32); + stroke-dashoffset: var(--check-len, 32); transition: stroke-dashoffset var(--check-uncheck) var(--check-ease); } .app-choice input:checked + .choice-mark { @@ -527,3 +526,23 @@ html[data-transparency="solid"] .catalog-panel { outline: 2px solid Highlight; } } + +/* Disabled/busy controls never retain decorative hover or press surfaces. */ +:is(button:disabled, [aria-busy="true"])::before { + transform: none !important; + box-shadow: none !important; +} +:is( + .text-button, + .back-button, + .icon-button, + .filter-button, + .source-option, + .category-button, + .effects-button + ):is(:disabled, [aria-busy="true"])::before { + opacity: 0 !important; +} +:is(button:disabled, [aria-busy="true"]).has-liquid-light::after { + opacity: 0; +} diff --git a/docs/assets/liquid.mjs b/docs/assets/liquid.mjs index d27bee3..220a5cd 100644 --- a/docs/assets/liquid.mjs +++ b/docs/assets/liquid.mjs @@ -404,6 +404,10 @@ export function createLiquidUI() { "pointermove", (event) => { if (!motionAllowed() || event.pointerType === "touch") return; + if (event.target.closest('button:disabled, [aria-busy="true"]')) { + clearHover(); + return; + } if (appWindow && event.target.closest(".setup-window") === appWindow) { const bounds = appWindow.getBoundingClientRect(); const x = clamp( @@ -460,6 +464,7 @@ export function createLiquidUI() { pressed = event.target.closest( ".primary-button, .secondary-button, .icon-button, .filter-button, .text-button, .back-button, .nav-link, .source-option, .app-source", ); + if (pressed?.matches(':disabled, [aria-busy="true"]')) pressed = null; pressed?.classList.add("is-liquid-pressed"); }, { passive: true }, diff --git a/docs/assets/style.css b/docs/assets/style.css index bfdf4bf..44851e5 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -1,4 +1,19 @@ :root { + --space-1: 4px; + --space-2: 8px; + --space-3: 12px; + --space-4: 16px; + --space-6: 24px; + --space-8: 32px; + --space-12: 48px; + --radius-mark: 6px; + --radius-control: 16px; + --radius-panel: 24px; + --radius-window: 28px; + --radius-action: 999px; + --control-compact: 32px; + --control-default: 44px; + --control-prominent: 48px; --bg: #10131a; --window: rgb(17 24 37 / 84%); --popover: rgb(21 30 45 / 96%); @@ -187,7 +202,7 @@ input:disabled { .top-nav { display: flex; align-items: center; - gap: 24px; + gap: var(--space-6); min-height: 60px; padding: 7px 12px 7px 20px; border: 1px solid var(--rim); @@ -236,18 +251,18 @@ input:disabled { .nav-actions a, .nav-actions .text-button { padding: 11px 12px; - min-height: 44px; + min-height: var(--control-default); display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 13px; - border-radius: 24px; + border-radius: var(--radius-panel); font-weight: 500; } .text-button { - padding: 8px 12px; - min-height: 32px; + padding: var(--space-2) var(--space-3); + min-height: var(--control-compact); border: 0; background: none; color: var(--accent); @@ -262,7 +277,7 @@ input:disabled { align-items: center; justify-content: center; min-width: 44px; - min-height: 44px; + min-height: var(--control-default); padding: 10px; border: 0; background: none; @@ -282,7 +297,7 @@ input:disabled { min-height: 40px; padding: 7px 11px; border: 1px solid var(--border); - border-radius: 24px; + border-radius: var(--radius-panel); background: var(--surface-soft); font-size: 12px; } @@ -341,7 +356,7 @@ input:disabled { .setup-window { position: relative; border: 1px solid var(--rim); - border-radius: 28px; + border-radius: var(--radius-window); background: var(--window); box-shadow: inset 0 1px 0 var(--sheen), @@ -419,7 +434,7 @@ input:disabled { margin: 0 auto 18px; padding: 0; list-style: none; - gap: 24px; + gap: var(--space-6); } .stepper li { position: relative; @@ -430,7 +445,7 @@ input:disabled { min-height: 42px; padding: 6px 14px; border: 1px solid transparent; - border-radius: 24px; + border-radius: var(--radius-panel); color: var(--muted); font-size: 12px; white-space: nowrap; @@ -606,8 +621,8 @@ html[data-theme="light"] .profile-option:last-child > svg { align-items: center; gap: 11px; border: 1px solid transparent; - border-radius: 16px; - min-height: 44px; + border-radius: var(--radius-control); + min-height: var(--control-default); padding: 10px 12px; background: none; text-align: left; @@ -634,7 +649,7 @@ html[data-theme="light"] .profile-option:last-child > svg { display: flex; flex-direction: column; align-items: stretch; - gap: 4px; + gap: var(--space-1); margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--border); @@ -665,9 +680,9 @@ html[data-theme="light"] .catalog-panel { align-items: center; flex: 1; min-width: 0; - min-height: 44px; + min-height: var(--control-default); border: 1px solid var(--control-border); - border-radius: 16px; + border-radius: var(--radius-control); padding: 10px 12px; color: var(--muted); background: var(--field); @@ -705,9 +720,9 @@ html[data-theme="light"] .catalog-panel { justify-content: center; gap: 7px; padding: 10px 12px; - min-height: 44px; + min-height: var(--control-default); border: 1px solid var(--border); - border-radius: 16px; + border-radius: var(--radius-control); background: var(--surface-soft); color: var(--muted); font-size: 11px; @@ -758,7 +773,7 @@ html[data-theme="light"] .catalog-panel { .source-trigger svg { width: 14px; height: 14px; - transition: rotate 250ms var(--ease-liquid); + transition: rotate var(--duration-fast) var(--ease-liquid); } .source-trigger[aria-expanded="true"] svg { rotate: 180deg; @@ -783,8 +798,8 @@ html[data-theme="light"] .catalog-panel { transform: translateY(-6px) scale(0.94); opacity: 0; transition: - transform 150ms var(--ease-smooth-out), - opacity 150ms ease; + transform var(--duration-quick) var(--ease-smooth-out), + opacity var(--duration-quick) var(--ease-smooth-out); } .source-options[data-side="above"] { top: auto; @@ -802,11 +817,11 @@ html[data-theme="light"] .catalog-panel { display: flex; justify-content: space-between; width: 100%; - min-height: 44px; + min-height: var(--control-default); align-items: center; padding: 10px 14px; border: 0; - border-radius: 17px; + border-radius: var(--radius-control); background: none; font-size: 12px; text-align: left; @@ -857,7 +872,7 @@ html[data-theme="light"] .catalog-panel { height: 19px; } .catalog-meta select { - min-height: 32px; + min-height: var(--control-compact); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); @@ -966,7 +981,7 @@ html[data-theme="light"] .catalog-panel { color: var(--muted); font-size: 9px; white-space: nowrap; - min-height: 44px; + min-height: var(--control-default); max-width: 65px; } .app-source:hover { @@ -1134,10 +1149,10 @@ html[data-theme="light"] .catalog-panel { align-items: center; justify-content: center; gap: 12px; - border-radius: 24px; + border-radius: var(--radius-action); font-weight: 600; line-height: 1.5; - min-height: 46px; + min-height: var(--control-prominent); padding: 11px 18px; border: 1px solid transparent; text-decoration: none; @@ -1238,8 +1253,8 @@ html[data-theme="light"] .catalog-panel { background: none; border: 0; color: var(--accent); - min-height: 44px; - padding: 8px 12px; + min-height: var(--control-default); + padding: var(--space-2) var(--space-3); margin-bottom: 14px; font-size: 12px; } @@ -1250,7 +1265,7 @@ html[data-theme="light"] .catalog-panel { .review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; - gap: 24px; + gap: var(--space-6); align-items: start; } .review-heading { @@ -1324,7 +1339,7 @@ html[data-theme="light"] .catalog-panel { .field input { width: 100%; min-width: 0; - min-height: 44px; + min-height: var(--control-default); border: 1px solid var(--control-border); border-radius: 13px; background: var(--field); @@ -1409,8 +1424,8 @@ html[data-theme="light"] .catalog-panel { gap: 18px; background: var(--field); border: 1px solid var(--border); - padding: 16px; - border-radius: 16px; + padding: var(--space-4); + border-radius: var(--radius-control); margin-top: 14px; } .command-box code { @@ -1606,7 +1621,7 @@ progress::-moz-progress-bar { overflow-wrap: anywhere; background: var(--field); border-radius: 14px; - padding: 16px; + padding: var(--space-4); } .followup-panel > p { margin-top: 12px; @@ -1637,7 +1652,7 @@ progress::-moz-progress-bar { gap: 6px; font-size: 11px; margin-top: 7px; - min-height: 32px; + min-height: var(--control-compact); } .followups a svg { width: 13px; @@ -1658,7 +1673,7 @@ dialog { background: var(--popover); color: var(--ink); border: 1px solid var(--rim); - border-radius: 28px; + border-radius: var(--radius-window); padding: 26px; max-width: 560px; width: calc(100% - 36px); @@ -2036,7 +2051,7 @@ dialog::backdrop { padding: 12px 11px 17px; } .stepper { - gap: 4px; + gap: var(--space-1); margin-bottom: 16px; } .stepper li { @@ -2065,7 +2080,7 @@ dialog::backdrop { .profile-option { padding: 12px 6px; min-height: 92px; - border-radius: 16px; + border-radius: var(--radius-control); } .profile-option > svg { width: 22px; @@ -2127,7 +2142,7 @@ dialog::backdrop { border: 0; } .catalog-actions button { - min-height: 32px; + min-height: var(--control-compact); font-size: 10px; } .catalog-panel { @@ -2236,7 +2251,7 @@ dialog::backdrop { margin-top: 2px; } .selection-column .counts > div { - gap: 4px; + gap: var(--space-1); padding: 2px 0; } .selection-column .counts dt { @@ -2395,7 +2410,7 @@ dialog::backdrop { } dialog { padding: 22px; - border-radius: 24px; + border-radius: var(--radius-panel); } .dialog-heading h2 { font-size: 21px; @@ -2485,7 +2500,7 @@ dialog::backdrop { } .setup-flow { display: grid; - gap: 24px; + gap: var(--space-6); list-style: none; padding: 8px 0; margin: 0; @@ -2529,7 +2544,7 @@ dialog::backdrop { display: flex; align-items: start; gap: 12px; - padding: 16px; + padding: var(--space-4); margin-top: 22px; border-radius: 18px; background: var(--surface-soft); @@ -2547,7 +2562,7 @@ dialog::backdrop { font-size: 12px; } #dialog-content > .text-button { - padding: 8px 12px; + padding: var(--space-2) var(--space-3); } .safety-page { max-width: 1120px; @@ -2585,7 +2600,7 @@ dialog::backdrop { } .safety-lead { display: flex; - gap: 24px; + gap: var(--space-6); align-items: center; padding: 28px 0 32px; max-width: 780px; @@ -2625,7 +2640,7 @@ dialog::backdrop { .privacy-flow li { position: relative; border: 1px solid var(--rim); - border-radius: 24px; + border-radius: var(--radius-panel); padding: 22px; background: var(--surface-soft); box-shadow: inset 0 1px 1px var(--sheen); @@ -2663,7 +2678,7 @@ dialog::backdrop { padding: 28px; border: 1px solid var(--rim); background: var(--tint); - border-radius: 24px; + border-radius: var(--radius-panel); } .open-source-note p + p { margin-top: 12px; @@ -2675,14 +2690,14 @@ dialog::backdrop { display: flex; flex-direction: column; align-items: stretch; - gap: 4px; + gap: var(--space-1); text-align: center; } .safety-actions a { display: inline-flex; align-items: center; justify-content: center; - min-height: 44px; + min-height: var(--control-default); font-size: 12px; white-space: nowrap; } @@ -2690,7 +2705,7 @@ dialog::backdrop { display: flex; gap: 18px; align-items: start; - padding: 32px 0 0; + padding: var(--space-8) 0 0; } .safety-contribute > span { margin-top: 12px; @@ -2736,7 +2751,7 @@ dialog::backdrop { padding: 24px 0; } .safety-emblem { - width: 48px; + width: var(--space-12); height: 48px; flex-basis: 48px; border-radius: 17px; @@ -2764,7 +2779,7 @@ dialog::backdrop { left: calc(50% - 9px); } .safety-grid { - gap: 24px; + gap: var(--space-6); } .open-source-note { padding: 22px; @@ -2866,6 +2881,59 @@ body:has(#choose-view[hidden]) #floating-summary-slot { flex-wrap: wrap; } .catalog-actions button { - padding: 8px 12px; + padding: var(--space-2) var(--space-3); } } + +/* Geometry belongs to the component layer; motion consumes these shapes. */ +.review-panel, +.review-side .summary-panel { + padding: var(--space-6); +} +.review-panel { + border: 1px solid var(--border); + border-radius: var(--radius-panel); + background: var(--surface-soft); + min-width: 0; +} +.review-panel .review-list { + border: 0; + background: none; + border-radius: 0; +} +.review-panel .review-group { + padding-inline: 0; +} +.review-panel h2, +.review-side h2 { + margin: 0; +} +.text-button, +.back-button, +.nav-link, +.filter-button, +.effects-button { + border-radius: var(--radius-action); +} +.icon-button { + border-radius: 50%; +} +.app-source { + border-radius: var(--radius-control); +} +:is(.text-button, .back-button, .filter-button, .effects-button) { + min-height: var(--control-default); +} +:is( + .primary-button, + .secondary-button, + .text-button, + .back-button, + .icon-button +)[aria-busy="true"] { + cursor: progress; +} + +.confirmation { + min-height: var(--control-default); +} diff --git a/docs/design-tokens.json b/docs/design-tokens.json index d122460..3b99e2b 100644 --- a/docs/design-tokens.json +++ b/docs/design-tokens.json @@ -1,9 +1,6 @@ { "name": "mac-setup", - "sourceOfTruth": [ - "docs/assets/style.css", - "docs/assets/liquid.css" - ], + "sourceOfTruth": ["docs/assets/style.css", "docs/assets/liquid.css"], "repository": "https://github.com/pedrobritx/mac-setup", "modes": { "dark": { @@ -71,19 +68,38 @@ "duration-slow": "400ms", "ease-smooth-out": "cubic-bezier(0.22, 1, 0.36, 1)", "ease-liquid": "cubic-bezier(0.2, 1.45, 0.4, 1)", - "modal-open-dur": "250ms", - "modal-close-dur": "150ms", + "modal-open-dur": "var(--duration-fast)", + "modal-close-dur": "var(--duration-quick)", "modal-scale": "0.96", "modal-scale-close": "0.96", - "modal-ease": "cubic-bezier(0.22, 1, 0.36, 1)", - "check-box": "150ms", + "modal-ease": "var(--ease-smooth-out)", + "check-box": "var(--duration-quick)", "check-draw": "350ms", - "check-uncheck": "150ms", - "check-ease": "cubic-bezier(0.22, 1, 0.36, 1)", + "check-uncheck": "var(--duration-quick)", + "check-ease": "var(--ease-smooth-out)", "liquid-opacity": "0.3" }, "notes": [ - "Current implementation values; consistency-review proposals are not implemented.", + "Runtime component contract is implemented; see docs/COMPONENTS.md. Figma retains its saved desktop baseline.", "System font stack retained in code; Figma font availability must be verified." - ] + ], + "geometry": { + "radius-mark": "6px", + "radius-control": "16px", + "radius-panel": "24px", + "radius-window": "28px", + "radius-action": "999px", + "control-compact": "32px", + "control-default": "44px", + "control-prominent": "48px" + }, + "spacing": { + "space-1": "4px", + "space-2": "8px", + "space-3": "12px", + "space-4": "16px", + "space-6": "24px", + "space-8": "32px", + "space-12": "48px" + } } diff --git a/docs/index.html b/docs/index.html index b9f88d8..a5ac0e6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -246,7 +246,7 @@

Your setup

Back to choices
-
+

Everything you’ve chosen

@@ -280,8 +280,16 @@

Git identity optional

maxlength="200" />
-