@thanhnguyxn/pixelcraft 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +20 -0
- package/.antigravity-plugin/plugin.json +32 -0
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +22 -0
- package/.codex-plugin/plugin.json +45 -0
- package/.cursor-plugin/marketplace.json +17 -0
- package/.cursor-plugin/plugin.json +27 -0
- package/.devin-plugin/plugin.json +21 -0
- package/.github/plugin/marketplace.json +34 -0
- package/CHANGELOG.md +159 -0
- package/GEMINI.md +1 -0
- package/LICENSE +21 -0
- package/README.md +264 -2
- package/SECURITY.md +28 -0
- package/assets/README.md +28 -0
- package/assets/pixelcraft-logo-128.png +0 -0
- package/assets/pixelcraft-logo-256.png +0 -0
- package/assets/pixelcraft-logo-512.png +0 -0
- package/bin/pixelcraft.mjs +852 -0
- package/docs/ARCHITECTURE.md +105 -0
- package/docs/DESIGN-RATIONALE.md +191 -0
- package/docs/INSTALL.md +221 -0
- package/evals/README.md +37 -0
- package/evals/fixtures/3d-web-engineering.json +69 -0
- package/evals/fixtures/README.md +36 -0
- package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
- package/evals/fixtures/ai-ui-libraries.json +53 -0
- package/evals/fixtures/audio-visual-accessibility.json +69 -0
- package/evals/fixtures/auth-and-checkout-ui.json +53 -0
- package/evals/fixtures/brandkit-identity-governance.json +48 -0
- package/evals/fixtures/build-and-architecture.json +53 -0
- package/evals/fixtures/canvas-and-node-editors.json +53 -0
- package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
- package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
- package/evals/fixtures/component-systems.json +53 -0
- package/evals/fixtures/component-testing.json +53 -0
- package/evals/fixtures/constrained-voice-and-tv.json +43 -0
- package/evals/fixtures/creative-code-rendering.json +69 -0
- package/evals/fixtures/creative-reference-evidence.json +67 -0
- package/evals/fixtures/data-app-python-marimo.json +49 -0
- package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
- package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
- package/evals/fixtures/desktop-native-workspace.json +48 -0
- package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
- package/evals/fixtures/direction-prototype-complexity.json +29 -0
- package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
- package/evals/fixtures/document-rust-typst-invoice.json +49 -0
- package/evals/fixtures/document-typst-and-print-css.json +43 -0
- package/evals/fixtures/email-mjml-dark-mode.json +49 -0
- package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
- package/evals/fixtures/enterprise-data-ui.json +53 -0
- package/evals/fixtures/extended-tui-toolkits.json +53 -0
- package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
- package/evals/fixtures/file-upload-media-ui.json +53 -0
- package/evals/fixtures/finish-gate-anti-slop.json +30 -0
- package/evals/fixtures/forms-accessibility-negative.json +29 -0
- package/evals/fixtures/forms-validation.json +53 -0
- package/evals/fixtures/game-go-ebitengine.json +49 -0
- package/evals/fixtures/game-godot-gdscript.json +49 -0
- package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
- package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
- package/evals/fixtures/i18n-engineering.json +53 -0
- package/evals/fixtures/local-first-sync.json +53 -0
- package/evals/fixtures/lynxjs.json +53 -0
- package/evals/fixtures/maizzle-email.json +53 -0
- package/evals/fixtures/maps-geospatial.json +53 -0
- package/evals/fixtures/media-og-and-video-export.json +43 -0
- package/evals/fixtures/media-players.json +53 -0
- package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
- package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
- package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
- package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
- package/evals/fixtures/mobile-jetpack-compose.json +49 -0
- package/evals/fixtures/mobile-swiftui-ios.json +49 -0
- package/evals/fixtures/motion-engineering.json +69 -0
- package/evals/fixtures/pdfjs-and-pptx.json +53 -0
- package/evals/fixtures/plan-brownfield-evidence.json +28 -0
- package/evals/fixtures/plan-discovery-interview.json +31 -0
- package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
- package/evals/fixtures/reactive-data-apps.json +53 -0
- package/evals/fixtures/review-evidence-audit.json +43 -0
- package/evals/fixtures/rich-text-and-code-editors.json +53 -0
- package/evals/fixtures/scrollytelling-resilience.json +70 -0
- package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
- package/evals/fixtures/state-architecture.json +53 -0
- package/evals/fixtures/styling-ecosystem.json +53 -0
- package/evals/fixtures/token-tooling.json +53 -0
- package/evals/fixtures/tui-go-bubbletea.json +49 -0
- package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
- package/evals/fixtures/tui-rust-ratatui.json +49 -0
- package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
- package/evals/fixtures/visual-qa-task-evidence.json +29 -0
- package/evals/fixtures/web-3d-engines.json +53 -0
- package/evals/fixtures/web-php-laravel-filament.json +49 -0
- package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
- package/evals/fixtures/workflow-checkpoints.json +30 -0
- package/evals/pixelcraft-accessibility.md +74 -0
- package/evals/pixelcraft-brandkit.md +58 -0
- package/evals/pixelcraft-chat-ui.md +55 -0
- package/evals/pixelcraft-constrained.md +55 -0
- package/evals/pixelcraft-craft.md +76 -0
- package/evals/pixelcraft-data-apps.md +55 -0
- package/evals/pixelcraft-dataviz.md +59 -0
- package/evals/pixelcraft-desktop.md +55 -0
- package/evals/pixelcraft-direction.md +77 -0
- package/evals/pixelcraft-document.md +55 -0
- package/evals/pixelcraft-email.md +55 -0
- package/evals/pixelcraft-extensions.md +55 -0
- package/evals/pixelcraft-game-ui.md +59 -0
- package/evals/pixelcraft-handoff.md +57 -0
- package/evals/pixelcraft-media.md +55 -0
- package/evals/pixelcraft-mobile.md +59 -0
- package/evals/pixelcraft-patterns.md +73 -0
- package/evals/pixelcraft-plan.md +127 -0
- package/evals/pixelcraft-review.md +63 -0
- package/evals/pixelcraft-spatial.md +55 -0
- package/evals/pixelcraft-tokens.md +57 -0
- package/evals/pixelcraft-tui.md +55 -0
- package/evals/pixelcraft-ux.md +59 -0
- package/evals/pixelcraft-visual-qa.md +86 -0
- package/evals/pixelcraft-web.md +89 -0
- package/evals/pixelcraft.md +70 -0
- package/gemini-extension.json +6 -0
- package/install.ps1 +341 -0
- package/install.sh +512 -0
- package/package.json +91 -4
- package/plugin.json +29 -0
- package/scripts/build-adapters.mjs +288 -0
- package/scripts/build-release-archives.mjs +61 -0
- package/scripts/build-skill-zips.mjs +94 -0
- package/scripts/run-evals.mjs +397 -0
- package/scripts/sync-docs.mjs +381 -0
- package/scripts/test-build-adapters.mjs +61 -0
- package/scripts/test-cross-platform-qa.mjs +359 -0
- package/scripts/test-distribution.mjs +203 -0
- package/scripts/test-export-tokens.mjs +361 -0
- package/scripts/test-finish-gate.mjs +271 -0
- package/scripts/test-installers.mjs +216 -0
- package/scripts/test-release-archives.mjs +42 -0
- package/scripts/test-shoot.mjs +87 -0
- package/scripts/test-slop-scan.mjs +416 -0
- package/scripts/test-style-inventory.mjs +234 -0
- package/scripts/test-sync-docs.mjs +140 -0
- package/scripts/test-validate-skills.mjs +195 -0
- package/scripts/validate-skills.mjs +658 -0
- package/skills/pixelcraft/SKILL.md +155 -0
- package/skills/pixelcraft/references/design-brief.md +75 -0
- package/skills/pixelcraft/references/floor.md +90 -0
- package/skills/pixelcraft/references/report-template.md +49 -0
- package/skills/pixelcraft/references/stack-detection.md +226 -0
- package/skills/pixelcraft/references/surface-acceptance.md +52 -0
- package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
- package/skills/pixelcraft-accessibility/SKILL.md +54 -0
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
- package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
- package/skills/pixelcraft-accessibility/references/verification.md +64 -0
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
- package/skills/pixelcraft-brandkit/SKILL.md +127 -0
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
- package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -0
- package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
- package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
- package/skills/pixelcraft-brandkit/references/logo-methods.md +97 -0
- package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
- package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
- package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
- package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
- package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
- package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
- package/skills/pixelcraft-chat-ui/references/conversation-design.md +84 -0
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
- package/skills/pixelcraft-constrained/SKILL.md +52 -0
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
- package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
- package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
- package/skills/pixelcraft-craft/SKILL.md +58 -0
- package/skills/pixelcraft-craft/references/color.md +125 -0
- package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
- package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
- package/skills/pixelcraft-craft/references/layout.md +73 -0
- package/skills/pixelcraft-craft/references/motion.md +163 -0
- package/skills/pixelcraft-craft/references/typography.md +110 -0
- package/skills/pixelcraft-data-apps/SKILL.md +86 -0
- package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
- package/skills/pixelcraft-data-apps/references/dash.md +109 -0
- package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
- package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
- package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
- package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
- package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
- package/skills/pixelcraft-data-apps/references/panel.md +99 -0
- package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
- package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
- package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
- package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
- package/skills/pixelcraft-dataviz/SKILL.md +60 -0
- package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
- package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
- package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +107 -0
- package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
- package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
- package/skills/pixelcraft-desktop/SKILL.md +93 -0
- package/skills/pixelcraft-desktop/references/appkit.md +92 -0
- package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
- package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
- package/skills/pixelcraft-desktop/references/electron.md +96 -0
- package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
- package/skills/pixelcraft-desktop/references/gtk.md +97 -0
- package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
- package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
- package/skills/pixelcraft-desktop/references/tauri.md +110 -0
- package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
- package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
- package/skills/pixelcraft-desktop/references/working-context.md +84 -0
- package/skills/pixelcraft-direction/SKILL.md +120 -0
- package/skills/pixelcraft-direction/references/composition-library.md +84 -0
- package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
- package/skills/pixelcraft-direction/references/direction-card.md +64 -0
- package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
- package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
- package/skills/pixelcraft-direction/references/movements.md +71 -0
- package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
- package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
- package/skills/pixelcraft-direction/references/wildcards.md +47 -0
- package/skills/pixelcraft-document/SKILL.md +58 -0
- package/skills/pixelcraft-document/references/archetypes.md +106 -0
- package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
- package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
- package/skills/pixelcraft-document/references/print-css.md +187 -0
- package/skills/pixelcraft-document/references/slides.md +198 -0
- package/skills/pixelcraft-email/SKILL.md +80 -0
- package/skills/pixelcraft-email/references/client-quirks.md +113 -0
- package/skills/pixelcraft-email/references/html-tables.md +114 -0
- package/skills/pixelcraft-email/references/maizzle.md +54 -0
- package/skills/pixelcraft-email/references/mjml.md +54 -0
- package/skills/pixelcraft-email/references/react-email.md +95 -0
- package/skills/pixelcraft-extensions/SKILL.md +56 -0
- package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
- package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
- package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
- package/skills/pixelcraft-extensions/references/raycast.md +98 -0
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
- package/skills/pixelcraft-game-ui/SKILL.md +80 -0
- package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
- package/skills/pixelcraft-game-ui/references/godot.md +130 -0
- package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
- package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
- package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
- package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
- package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
- package/skills/pixelcraft-handoff/SKILL.md +50 -0
- package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
- package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
- package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
- package/skills/pixelcraft-media/SKILL.md +49 -0
- package/skills/pixelcraft-media/references/banners-video.md +130 -0
- package/skills/pixelcraft-media/references/og-generation.md +154 -0
- package/skills/pixelcraft-media/references/social-cards.md +71 -0
- package/skills/pixelcraft-mobile/SKILL.md +86 -0
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
- package/skills/pixelcraft-mobile/references/flet.md +80 -0
- package/skills/pixelcraft-mobile/references/flutter.md +113 -0
- package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
- package/skills/pixelcraft-mobile/references/kivy.md +82 -0
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
- package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
- package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
- package/skills/pixelcraft-mobile/references/react-native-expo.md +106 -0
- package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
- package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
- package/skills/pixelcraft-mobile/references/uikit.md +92 -0
- package/skills/pixelcraft-patterns/SKILL.md +75 -0
- package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
- package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
- package/skills/pixelcraft-patterns/references/auth-onboarding.md +44 -0
- package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
- package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
- package/skills/pixelcraft-patterns/references/commerce.md +47 -0
- package/skills/pixelcraft-patterns/references/communication.md +45 -0
- package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
- package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
- package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
- package/skills/pixelcraft-patterns/references/marketing.md +44 -0
- package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
- package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
- package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
- package/skills/pixelcraft-patterns/references/pattern-selection.md +80 -0
- package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
- package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
- package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
- package/skills/pixelcraft-patterns/references/settings.md +51 -0
- package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
- package/skills/pixelcraft-plan/SKILL.md +103 -0
- package/skills/pixelcraft-plan/references/design-input.md +69 -0
- package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
- package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
- package/skills/pixelcraft-plan/references/plan-template.md +134 -0
- package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
- package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
- package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
- package/skills/pixelcraft-review/SKILL.md +86 -0
- package/skills/pixelcraft-review/references/audit-report.md +69 -0
- package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
- package/skills/pixelcraft-review/references/heuristics.md +63 -0
- package/skills/pixelcraft-review/references/personas.md +53 -0
- package/skills/pixelcraft-review/references/polish.md +78 -0
- package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
- package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
- package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
- package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
- package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
- package/skills/pixelcraft-review/scripts/slop-scan.mjs +1233 -0
- package/skills/pixelcraft-spatial/SKILL.md +51 -0
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
- package/skills/pixelcraft-spatial/references/platforms.md +147 -0
- package/skills/pixelcraft-tokens/SKILL.md +60 -0
- package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
- package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
- package/skills/pixelcraft-tokens/references/adoption.md +55 -0
- package/skills/pixelcraft-tokens/references/format.md +84 -0
- package/skills/pixelcraft-tokens/references/governance.md +80 -0
- package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
- package/skills/pixelcraft-tokens/references/theme-presets.md +122 -0
- package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
- package/skills/pixelcraft-tui/SKILL.md +76 -0
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
- package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
- package/skills/pixelcraft-tui/references/ink.md +109 -0
- package/skills/pixelcraft-tui/references/ratatui.md +102 -0
- package/skills/pixelcraft-tui/references/rich.md +82 -0
- package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
- package/skills/pixelcraft-tui/references/textual.md +108 -0
- package/skills/pixelcraft-ux/SKILL.md +56 -0
- package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
- package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
- package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
- package/skills/pixelcraft-ux/references/forms.md +151 -0
- package/skills/pixelcraft-ux/references/i18n.md +221 -0
- package/skills/pixelcraft-ux/references/laws.md +39 -0
- package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
- package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
- package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
- package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
- package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
- package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -0
- package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
- package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
- package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
- package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
- package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
- package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
- package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
- package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
- package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
- package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
- package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +174 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
- package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +668 -0
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
- package/skills/pixelcraft-web/SKILL.md +132 -0
- package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
- package/skills/pixelcraft-web/references/angular.md +108 -0
- package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
- package/skills/pixelcraft-web/references/astro.md +113 -0
- package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
- package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
- package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
- package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
- package/skills/pixelcraft-web/references/clojurescript.md +88 -0
- package/skills/pixelcraft-web/references/component-systems.md +102 -0
- package/skills/pixelcraft-web/references/component-testing.md +170 -0
- package/skills/pixelcraft-web/references/creative-effects.md +59 -0
- package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
- package/skills/pixelcraft-web/references/elm.md +53 -0
- package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
- package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
- package/skills/pixelcraft-web/references/forms-validation.md +123 -0
- package/skills/pixelcraft-web/references/fsharp-fable.md +54 -0
- package/skills/pixelcraft-web/references/gsap.md +102 -0
- package/skills/pixelcraft-web/references/html-css.md +220 -0
- package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
- package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
- package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
- package/skills/pixelcraft-web/references/java-web.md +61 -0
- package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
- package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
- package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
- package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
- package/skills/pixelcraft-web/references/media-players.md +104 -0
- package/skills/pixelcraft-web/references/motion-react.md +96 -0
- package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
- package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
- package/skills/pixelcraft-web/references/pwa.md +230 -0
- package/skills/pixelcraft-web/references/qwik.md +94 -0
- package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
- package/skills/pixelcraft-web/references/react-next.md +168 -0
- package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
- package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
- package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
- package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
- package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
- package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
- package/skills/pixelcraft-web/references/server-rendered.md +114 -0
- package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
- package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
- package/skills/pixelcraft-web/references/solid.md +111 -0
- package/skills/pixelcraft-web/references/state-architecture.md +107 -0
- package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
- package/skills/pixelcraft-web/references/svelte.md +111 -0
- package/skills/pixelcraft-web/references/tailwind.md +99 -0
- package/skills/pixelcraft-web/references/video-media.md +69 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
- package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Stack and surface detection
|
|
2
|
+
|
|
3
|
+
Detect from concrete files; do not infer from repository age, buzzwords, or one copied import. Multiple matches mean multiple surfaces. Prefer the file nearest the UI being changed. The reference names below live inside the named platform skill; never construct cross-skill relative paths.
|
|
4
|
+
|
|
5
|
+
## Web signals
|
|
6
|
+
|
|
7
|
+
| Signal | Platform skill → framework reference |
|
|
8
|
+
|---|---|
|
|
9
|
+
| plain `.html`/`.css` or no framework dependency | `pixelcraft-web` → `html-css` |
|
|
10
|
+
| `react`, `next`, `react-router.config.*`, `@tanstack/react-start`, `@vitejs/plugin-react` | `pixelcraft-web` → `react-next` |
|
|
11
|
+
| `vue`, `nuxt`, `pinia`, `@nuxt/ui`, `vite.config` Vue plugin | `pixelcraft-web` → `vue-nuxt` |
|
|
12
|
+
| `svelte`, `@sveltejs/kit`, `.svelte` | `pixelcraft-web` → `svelte` |
|
|
13
|
+
| `solid-js`, `@solidjs/start`, SolidStart config | `pixelcraft-web` → `solid` |
|
|
14
|
+
| `@angular/core`, `angular.json` | `pixelcraft-web` → `angular` |
|
|
15
|
+
| `astro`, `.astro`, `src/content.config.ts` | `pixelcraft-web` → `astro` |
|
|
16
|
+
| `@builder.io/qwik`, `@qwik.dev/core`, Qwik Router/City config | `pixelcraft-web` → `qwik` |
|
|
17
|
+
| `preact`, `@preact/signals`, Deno Fresh (`fresh.config.*`), `hono/jsx`, `waku`, `rwsdk` | `pixelcraft-web` → `preact-fresh-hono` |
|
|
18
|
+
| `htmx.org`, `alpinejs`, `@starfederation/datastar`, `unpoly`, `hx-*`/`x-data`/`data-on-*` | `pixelcraft-web` → `htmx-alpine` |
|
|
19
|
+
| `lit`, custom elements/`.ce`/`shadowRoot` UI | `pixelcraft-web` → `lit-web-components` |
|
|
20
|
+
| `tailwindcss`, `@import "tailwindcss"`, `@theme`, Tailwind config | `pixelcraft-web` → `tailwind` |
|
|
21
|
+
| `@pandacss/*`, `@vanilla-extract/*`, `@stylexjs/*`, `unocss`, `lightningcss`, `cva`, `tamagui` | `pixelcraft-web` → `styling-ecosystem` |
|
|
22
|
+
| `components.json` (shadcn), `@base-ui/react`, `radix-ui`, `react-aria`, `@ark-ui/*`, `@zag-js/*`, `@kobalte/*`, `@ariakit/react`, `melt-ui` | `pixelcraft-web` → `component-systems` |
|
|
23
|
+
| `cmdk`, `kbar`, `vaul`, `sonner`, `embla-carousel-*`, `react-day-picker`, `react-resizable-panels`, `pagefind`, `@orama/orama`, `fuse.js`, `react-instantsearch`, `lucide-*`, `@phosphor-icons/*`, `@fontsource/*`, `@unpic/*` | `pixelcraft-web` → `interaction-and-search-primitives` |
|
|
24
|
+
| Rails/Hotwire/ViewComponent/Phlex, Laravel Blade/Livewire/Filament/Flux, Symfony UX (Turbo/LiveComponent/Twig), WordPress Gutenberg/`@wordpress/interactivity`, Inertia.js, Django/Unfold/Ninja/FastAPI+Jinja2, FastHTML, Phoenix LiveView, Blazor (MudBlazor/FluentUI Blazor/Radzen), Go `templ`/Gomponents, Dart Jaspr | `pixelcraft-web` → `server-rendered` |
|
|
25
|
+
| `Cargo.toml` deps `leptos`/`yew`/`dioxus-web`, `Trunk.toml`, `Leptos.toml`, `Dioxus.toml` | `pixelcraft-web` → `leptos-yew` |
|
|
26
|
+
| Kotlin web/Compose Multiplatform `wasmJs`/Kobweb in Gradle project | `pixelcraft-web` → `kotlin-web` |
|
|
27
|
+
| `elm.json` | `pixelcraft-web` → `elm` |
|
|
28
|
+
| `deps.edn`, `shadow-cljs.edn`, Reagent/re-frame/UIx/Helix deps | `pixelcraft-web` → `clojurescript` |
|
|
29
|
+
| `.fsproj`, Fable/Feliz/Elmish deps | `pixelcraft-web` → `fsharp-fable` |
|
|
30
|
+
| `build.sbt`, Scala.js/Laminar deps | `pixelcraft-web` → `scala-laminar` |
|
|
31
|
+
| `pom.xml`/Gradle Vaadin/Hilla/Thymeleaf/JTE/Qute deps | `pixelcraft-web` → `java-web` |
|
|
32
|
+
| `gsap`, `motion`, `lenis`, `@rive-app/*`, `dotlottie`, `three`, `@react-three/fiber`, `@theatre/core`, `@splinetool/react-spline`, Unicorn Studio, `pixi.js`, `@babylonjs/core`, `playcanvas`, `@threlte/core`, `@tresjs/core`, `<model-viewer>`, `luma.gl` | `pixelcraft-web` → matching motion/3D/shader/creative ref (`gsap`, `motion-react`, `smooth-scroll`, `rive-lottie`, `scene-architecture`, `r3f-integration`, `web-3d-engines`, `rendering-choice`, `shader-workflow`) |
|
|
33
|
+
| `hls.js`, `shaka-player`, `dashjs`, `video.js`, `vidstack`, `media-chrome`, `@mux/mux-player`, `wavesurfer.js`, `howler`, `tone` | `pixelcraft-web` → `media-players` (plus `video-media`/`audio-reactive`) |
|
|
34
|
+
| `@tanstack/react-table`, `@tanstack/react-virtual`, `ag-grid-*`, `@mui/x-data-grid`, `handsontable`, `fullcalendar`, `@tiptap/*`, `prosemirror-*`, `lexical`, `@blocknote/*`, `@codemirror/*`, `monaco-editor`, `@xyflow/react`, `tldraw`, `konva`, `@dnd-kit/*`, `@atlaskit/pragmatic-drag-and-drop` | `pixelcraft-web` → `enterprise-data-ui`, `rich-text-and-code-editors`, or `canvas-and-node-editors` |
|
|
35
|
+
| `yjs`, `@automerge/*`, `@liveblocks/*`, `rxdb`, `@rocicorp/zero`, `@electric-sql/*`, `@tanstack/db`, `@powersync/*`, `jazz-tools`, `@instantdb/*`, `convex` | `pixelcraft-web` → `local-first-sync` |
|
|
36
|
+
| `better-auth`, `@clerk/*`, `next-auth`, `@stripe/react-stripe-js`, `@simplewebauthn/*`, `@uppy/*`, `filepond`, `uploadthing` | `pixelcraft-web` → `auth-and-checkout-ui` or `file-upload-media-ui` |
|
|
37
|
+
|
|
38
|
+
## Mobile signals
|
|
39
|
+
|
|
40
|
+
| Signal | Platform skill → framework reference |
|
|
41
|
+
|---|---|
|
|
42
|
+
| SwiftUI imports/types, `ComposableArchitecture` (TCA), `Package.swift`, Xcode project | `pixelcraft-mobile` → `swiftui` |
|
|
43
|
+
| UIKit imports/view controllers/storyboards | `pixelcraft-mobile` → `uikit` |
|
|
44
|
+
| `build.gradle(.kts)` Compose dependencies, `@Composable` | `pixelcraft-mobile` → `jetpack-compose` |
|
|
45
|
+
| `pubspec.yaml`, Flutter imports | `pixelcraft-mobile` → `flutter` |
|
|
46
|
+
| React Native/Expo config, `app.json`, `expo-router`, RN dependencies | `pixelcraft-mobile` → `react-native-expo` |
|
|
47
|
+
| `@lynx-js/react`, `@lynx-js/rspeedy`, `lynx.config.*` | `pixelcraft-mobile` → `lynxjs` |
|
|
48
|
+
| Kotlin Multiplatform/Compose Multiplatform source sets | `pixelcraft-mobile` → `kotlin-multiplatform` |
|
|
49
|
+
| `@nativescript/core`, `nativescript.config.*`, `skip.yml`/`SkipUI` | `pixelcraft-mobile` → `nativescript-and-skip` |
|
|
50
|
+
| HarmonyOS ArkUI/ArkTS (`.ets`, `oh-package.json5`), Elixir LiveView Native (`.swiftui.heex`/`.jetpack.heex`), Taro (`@tarojs/*`), `uni-app` (`pages.json`) | `pixelcraft-mobile` → `harmonyos-and-emerging-mobile` |
|
|
51
|
+
| Ionic/Capacitor config/dependencies | `pixelcraft-mobile` → `ionic-capacitor` |
|
|
52
|
+
| MAUI `.csproj`/XAML/AppShell references | `pixelcraft-mobile` → `dotnet-maui` |
|
|
53
|
+
| `flet` controls/page | `pixelcraft-mobile` → `flet` |
|
|
54
|
+
| `kivy`/`kivymd`/KV language/App classes | `pixelcraft-mobile` → `kivy` |
|
|
55
|
+
|
|
56
|
+
## Data-app signals
|
|
57
|
+
|
|
58
|
+
| Signal | Platform skill → framework reference |
|
|
59
|
+
|---|---|
|
|
60
|
+
| `streamlit` import/dependency or `.streamlit/config.toml` | `pixelcraft-data-apps` → `streamlit` |
|
|
61
|
+
| `gradio`/`gr.Blocks`/`gr.Interface`/`gr.ChatInterface` | `pixelcraft-data-apps` → `gradio` |
|
|
62
|
+
| `marimo`/`import marimo as mo`, `solara`, `mesop`, `taipy`, `polars`/`narwhals` reactive pipelines | `pixelcraft-data-apps` → `reactive-data-apps` |
|
|
63
|
+
| `chainlit`/`.chainlit/config.toml`, `python-fasthtml`, `preswald`, Retool/Appsmith/ToolJet/Budibase configs | `pixelcraft-data-apps` → `ai-and-internal-data-apps` |
|
|
64
|
+
| `reflex`/`rx.App` | `pixelcraft-data-apps` → `reflex` |
|
|
65
|
+
| `nicegui`/`from nicegui import ui` | `pixelcraft-data-apps` → `nicegui` |
|
|
66
|
+
| `dash`/Dash layout callbacks | `pixelcraft-data-apps` → `dash` |
|
|
67
|
+
| `panel`/`import panel as pn` | `pixelcraft-data-apps` → `panel` |
|
|
68
|
+
| Shiny for Python (`shiny` UI/server/reactive) | `pixelcraft-data-apps` → `shiny` |
|
|
69
|
+
| `ipywidgets`/`anywidget`/`voila` notebook widgets | `pixelcraft-data-apps` → `jupyter-widgets` |
|
|
70
|
+
| R `DESCRIPTION`/`app.R` with `shiny`/`bslib` | `pixelcraft-data-apps` → `r-shiny` |
|
|
71
|
+
| Julia `Project.toml` with Genie/Stipple | `pixelcraft-data-apps` → `julia-genie` |
|
|
72
|
+
| `observablehq.config.*`, Framework Markdown/data loaders | `pixelcraft-data-apps` → `observable-framework` |
|
|
73
|
+
| `evidence.config.yaml`, `theme.yaml`, Evidence `pages/`/`sources/` | `pixelcraft-data-apps` → `evidence` |
|
|
74
|
+
|
|
75
|
+
## Desktop signals
|
|
76
|
+
|
|
77
|
+
| Signal | Platform skill → framework reference |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `src-tauri/tauri.conf.json` or Tauri dependency | `pixelcraft-desktop` → `tauri` |
|
|
80
|
+
| Electron main/preload/package config, `electrobun.config.*` | `pixelcraft-desktop` → `electron` |
|
|
81
|
+
| Qt `.pro`/CMake Qt modules/PySide6/PyQt6/`.ui`/`.qml`, brownfield `customtkinter`/`dearpygui` (reject greenfield `tkinter`) | `pixelcraft-desktop` → `qt-pyside-qml` |
|
|
82
|
+
| WinUI/WPF `.csproj`/XAML/WindowsAppSDK references | `pixelcraft-desktop` → `winui-wpf` |
|
|
83
|
+
| AppKit/Cocoa or macOS SwiftUI `WindowGroup`/`MenuBarExtra` targets | `pixelcraft-desktop` → `appkit` |
|
|
84
|
+
| GTK4/libadwaita build definitions/imports/Blueprint `.blp` | `pixelcraft-desktop` → `gtk` |
|
|
85
|
+
| Avalonia `.csproj`/AXAML references | `pixelcraft-desktop` → `avalonia` |
|
|
86
|
+
| `gpui`, `egui`, `slint`, `dioxus`, `iced`, `libcosmic`, `vizia`, `floem`, `makepad`, `xilem`, `freya`, `relm4` in Rust deps | `pixelcraft-desktop` → `rust-gui` |
|
|
87
|
+
| `pom.xml`/Gradle JavaFX, Swing/FlatLaf UI entry points/FXML | `pixelcraft-desktop` → `javafx-swing` |
|
|
88
|
+
| `CMakeLists.txt` Qt C++/JUCE (VST3/AU/CLAP)/Dear ImGui/wxWidgets/FLTK/GTKmm/Nuklear/Ultralight, Zig `dvui`/C `clay`/`raygui` | `pixelcraft-desktop` → `cpp-gui` |
|
|
89
|
+
| `go.mod` Fyne/Wails (v2/v3)/Gio deps | `pixelcraft-desktop` → `go-gui` |
|
|
90
|
+
| Uno Platform `.csproj`/XAML/config references | `pixelcraft-desktop` → `uno-platform` |
|
|
91
|
+
|
|
92
|
+
## TUI signals
|
|
93
|
+
|
|
94
|
+
| Signal | Platform skill → framework reference |
|
|
95
|
+
|---|---|
|
|
96
|
+
| `textual` dependency/import or `.tcss` | `pixelcraft-tui` → `textual` |
|
|
97
|
+
| `rich` dependency/import without full Textual app | `pixelcraft-tui` → `rich` |
|
|
98
|
+
| `ink` dependency/import | `pixelcraft-tui` → `ink` |
|
|
99
|
+
| Go `bubbletea`/`lipgloss`/`huh`/`bubbles` imports | `pixelcraft-tui` → `bubbletea-lipgloss` |
|
|
100
|
+
| Rust `ratatui`/`crossterm` dependencies | `pixelcraft-tui` → `ratatui` |
|
|
101
|
+
| `.NET` `Terminal.Gui`/`Spectre.Console`, Python `prompt_toolkit`/`questionary`, `@opentui/*`, `@clack/prompts`, `@inquirer/prompts`, C++ `ftxui`, `notcurses`, Go `tcell`/`tview`, Rust `dialoguer`/`inquire` | `pixelcraft-tui` → `extended-tui-toolkits` |
|
|
102
|
+
| Kitty Graphics, Sixel, OSC 8/52/9;4, DEC Mode 2026, `NO_COLOR`/`COLORTERM` capability checks | `pixelcraft-tui` → `terminal-protocols` |
|
|
103
|
+
|
|
104
|
+
## Email signals
|
|
105
|
+
|
|
106
|
+
| Signal | Platform skill → framework reference |
|
|
107
|
+
|---|---|
|
|
108
|
+
| table-heavy HTML email/inline CSS templates | `pixelcraft-email` → `html-tables` |
|
|
109
|
+
| `.mjml` files or `mjml` dependency | `pixelcraft-email` → `mjml` |
|
|
110
|
+
| `@react-email`/`react-email`, `vue-email`, Resend/Loops templates | `pixelcraft-email` → `react-email` |
|
|
111
|
+
| `@maizzle/framework`, `maizzle.config.*` | `pixelcraft-email` → `maizzle` |
|
|
112
|
+
| Classic/New Outlook, Gmail 102 KB clipping, Apple Mail, dark mode, image blocking, BIMI/plaintext | `pixelcraft-email` → `client-quirks` |
|
|
113
|
+
|
|
114
|
+
## Document and slide signals
|
|
115
|
+
|
|
116
|
+
| Signal | Platform skill → framework reference |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `@page`, `@media print`, Paged.js, Vivliostyle, PrinceXML print stylesheets | `pixelcraft-document` → `print-css` |
|
|
119
|
+
| `.typ` (Typst), `.tex` (LaTeX), `weasyprint`, `@react-pdf/renderer`, `page.pdf()`, Gotenberg, `pdf-lib`, ReportLab, Quarto `.qmd`, `docx`/`exceljs` | `pixelcraft-document` → `pdf-tools` |
|
|
120
|
+
| `pdfjs-dist` embedded viewers, `pptxgenjs` programmatic decks | `pixelcraft-document` → `pdfjs-and-pptx` |
|
|
121
|
+
| invoices, ZUGFeRD/Factur-X, reports, CVs/résumés | `pixelcraft-document` → `archetypes` |
|
|
122
|
+
| Slidev, `reveal.js`, Marp, Typst Touying/Polylux, Quarto RevealJS | `pixelcraft-document` → `slides` |
|
|
123
|
+
|
|
124
|
+
## External media signals
|
|
125
|
+
|
|
126
|
+
| Signal | Platform skill → framework reference |
|
|
127
|
+
|---|---|
|
|
128
|
+
| OG/Twitter/YouTube/Bluesky/Discord/WhatsApp preview dimensions & safe zones | `pixelcraft-media` → `social-cards` |
|
|
129
|
+
| `satori`, `@vercel/og`, `ImageResponse`, `takumi`, `@resvg/resvg-js`, `sharp`, `@napi-rs/canvas` | `pixelcraft-media` → `og-generation` |
|
|
130
|
+
| `remotion`, `@motion-canvas/*`, `revideo`, FFmpeg export pipelines, SVG posters/banners | `pixelcraft-media` → `banners-video` |
|
|
131
|
+
|
|
132
|
+
## Chat and AI-native UI signals
|
|
133
|
+
|
|
134
|
+
| Signal | Platform skill → framework reference |
|
|
135
|
+
|---|---|
|
|
136
|
+
| `@slack/bolt`, Slack Block Kit/AI Assistant, `discord.js`, Discord Components V2/Activities | `pixelcraft-chat-ui` → `slack-discord` |
|
|
137
|
+
| Telegram Bot API/Mini Apps, Zalo `zmp-ui`/`zmp-sdk`, WhatsApp Flows, Teams Adaptive Cards, LINE LIFF/Flex, WeChat Mini Program | `pixelcraft-chat-ui` → `mobile-business-platforms` |
|
|
138
|
+
| `@ai-sdk/react`/`vue`/`svelte`/`angular`, `@assistant-ui/*`, `@copilotkit/*`, `AG-UI`, `@langchain/langgraph-sdk`, MCP Apps/MCP-UI, OpenAI Apps SDK (`window.openai`), A2UI | `pixelcraft-chat-ui` → `ai-ui-libraries` (pair with `agentic-workspace`) |
|
|
139
|
+
| streaming LLM assistant threads, tool-call traces, split artifact panes, approval gates | `pixelcraft-chat-ui` → `agentic-workspace` |
|
|
140
|
+
|
|
141
|
+
## Extensions and plugin signals
|
|
142
|
+
|
|
143
|
+
| Signal | Platform skill → framework reference |
|
|
144
|
+
|---|---|
|
|
145
|
+
| `manifest.json` (`manifest_version: 3`), `wxt.config.*`, Plasmo, CRXJS, Safari Web Extensions, `chrome.sidePanel`, DevTools panels | `pixelcraft-extensions` → `browser-extensions` |
|
|
146
|
+
| VS Code `contributes`, `createWebviewPanel`, Custom Editors, `vscode.chat`, `vscode.lm` | `pixelcraft-extensions` → `vscode-webviews` |
|
|
147
|
+
| `@raycast/api`, `@raycast/utils` | `pixelcraft-extensions` → `raycast` |
|
|
148
|
+
| Figma plugin/widget `manifest.json` (`@figma/plugin-typings`, `figma.widget`), Office Add-in Unified Manifest / `office-js` | `pixelcraft-extensions` → `figma-office` |
|
|
149
|
+
| JetBrains `plugin.xml`/Jewel, Obsidian `manifest.json`/`ItemView`, Shopify `@shopify/app-bridge-react`/Polaris, Atlassian Forge `manifest.yml` | `pixelcraft-extensions` → `ide-and-saas-plugins` |
|
|
150
|
+
|
|
151
|
+
## Constrained hardware and voice signals
|
|
152
|
+
|
|
153
|
+
| Signal | Platform skill → framework reference |
|
|
154
|
+
|---|---|
|
|
155
|
+
| tvOS, Android TV / `androidx.tv:tv-material`, Roku BrightScript/SceneGraph, Fire TV/Vega OS, webOS Enact, Tizen, watchOS, `androidx.wear.compose` | `pixelcraft-constrained` → `tv-wearables` |
|
|
156
|
+
| e-ink (Boox/Kindle/reMarkable), kiosk/POS, ISA-101 HMI, LVGL, Slint MCU, Rust `embedded-graphics`, TouchGFX, Qt for MCUs, CarPlay/Android Auto/AAOS | `pixelcraft-constrained` → `specialized-hardware` |
|
|
157
|
+
| OpenAI Realtime API, Gemini Live, LiveKit Agents, Pipecat, Siri `AppIntent`, Alexa APL, SSML/IVR | `pixelcraft-constrained` → `voice-ui` |
|
|
158
|
+
|
|
159
|
+
## Spatial and XR signals
|
|
160
|
+
|
|
161
|
+
| Signal | Platform skill → framework reference |
|
|
162
|
+
|---|---|
|
|
163
|
+
| visionOS (`RealityKit`, `ImmersiveSpace`, `TabletopKit`), Android XR (`androidx.xr.compose`, SceneCore), Meta Horizon OS / Spatial SDK / MRUK, `@react-three/xr`, WebXR, Wonderland/Needle Engine, Unity XRI, Unreal OpenXR | `pixelcraft-spatial` → `platforms` (pair with `comfort-accessibility`) |
|
|
164
|
+
|
|
165
|
+
## Dataviz signals
|
|
166
|
+
|
|
167
|
+
| Signal | Platform skill → framework reference |
|
|
168
|
+
|---|---|
|
|
169
|
+
| `d3`, `@observablehq/plot`, `vega-lite`, `echarts`, `plotly`, `chart.js`, `recharts`, `@visx/*`, `@nivo/*`, `highcharts`, `uplot`, `lightweight-charts`, `@antv/*`, `@grafana/ui`/`@grafana/scenes`, Superset/Metabase embeds, `maplibre-gl`, `mapbox-gl`, `deck.gl`, `leaflet`, `pmtiles`, `@turf/*`, `cytoscape`, `sigma`, `cosmograph`, `@finos/perspective`, `@uwdata/mosaic-*`, `matplotlib`/`seaborn`/`altair`/`bokeh`/`holoviews`/`datashader`, `ggplot2`, `Makie`, Swift Charts, Compose Vico | `pixelcraft-dataviz` → `libraries`, `maps-geospatial`, or `realtime-graphs-maps-scale` (alongside the platform skill) |
|
|
170
|
+
|
|
171
|
+
## Game UI signals
|
|
172
|
+
|
|
173
|
+
| Signal | Platform skill → framework reference |
|
|
174
|
+
|---|---|
|
|
175
|
+
| `ProjectSettings/`, `.unity`, UXML/USS/UI Builder assets | `pixelcraft-game-ui` → `unity-ui-toolkit` |
|
|
176
|
+
| Unity `Canvas`/`CanvasScaler`/`RectTransform`/TextMeshPro (`.prefab`, `TMPro`) | `pixelcraft-game-ui` → `unity-ugui` |
|
|
177
|
+
| `project.godot`, `.tscn`, `.gd`, Godot C# `.csproj`, Control/Theme resources | `pixelcraft-game-ui` → `godot` |
|
|
178
|
+
| `.uproject`, UMG/Slate/CommonUI/MVVM assets or references | `pixelcraft-game-ui` → `unreal-umg` |
|
|
179
|
+
| HUD/controller/safe-area/certification/accessibility question | `pixelcraft-game-ui` → `hud-principles` |
|
|
180
|
+
| `main.lua` + `conf.lua`, `love.*` calls | `pixelcraft-game-ui` → `love2d` |
|
|
181
|
+
| `Cargo.toml` with `bevy` dependency | `pixelcraft-game-ui` → `bevy` |
|
|
182
|
+
| MonoGame `.csproj`/Content Pipeline/Gum/Myra/FontStashSharp | `pixelcraft-game-ui` → `monogame` |
|
|
183
|
+
| `phaser`, `@pixi/ui`, `excalibur`, `kaplay`, Go `ebitengine`/`ebitenui`, Rust `macroquad`, Dart `flame`, Python `pygame`/`arcade`, NoesisGUI, RmlUi, Coherent Gameface, Dear ImGui HUD, Raylib `raygui`, SDL3, Defold, Cocos Creator | `pixelcraft-game-ui` → `web-and-middleware-game-ui` |
|
|
184
|
+
|
|
185
|
+
## Design handoff and brand identity signals
|
|
186
|
+
|
|
187
|
+
| Signal | Route |
|
|
188
|
+
|---|---|
|
|
189
|
+
| Figma URL/Dev Mode/Figma MCP, Code Connect `*.figma.*`, Penpot, approved design mockup/screenshot to implement faithfully | `pixelcraft-handoff` → `design-translation` (plus `fidelity-tolerance`, `motion-handoff`) |
|
|
190
|
+
| request for brand kit, identity board, visual identity, brand guidelines image, moodboard, visual-world board, logo system, launch identity, rebrand, or refresh | `pixelcraft-brandkit` |
|
|
191
|
+
| supplied logo/wordmark/palette/type/brand assets to preserve | `pixelcraft-brandkit` intake: build on existing brand |
|
|
192
|
+
| selected palette/type must become implementation tokens | `pixelcraft-brandkit` → `pixelcraft-tokens` |
|
|
193
|
+
|
|
194
|
+
## Language → framework routing matrix
|
|
195
|
+
|
|
196
|
+
| Language | Frameworks/surfaces | Skill → reference |
|
|
197
|
+
|---|---|---|
|
|
198
|
+
| C / C++ | Qt/QML, JUCE (VST3/AU/CLAP), Dear ImGui, wxWidgets, FLTK, GTKmm, Nuklear, Ultralight, Clay, raygui, LVGL, FTXUI, Notcurses, RmlUi, NoesisGUI, SDL3, Raylib | `pixelcraft-desktop` → `cpp-gui`; `pixelcraft-tui` → `extended-tui-toolkits`; `pixelcraft-constrained` → `specialized-hardware`; `pixelcraft-game-ui` → `web-and-middleware-game-ui` |
|
|
199
|
+
| C# | Blazor (MudBlazor/FluentUI Blazor/Radzen), MAUI, WinUI/WPF, Avalonia, Uno, Terminal.Gui/Spectre.Console, Unity uGUI/UI Toolkit, Godot C#, MonoGame | `pixelcraft-web` → `server-rendered`; `pixelcraft-mobile` → `dotnet-maui`; `pixelcraft-desktop` → `winui-wpf`/`avalonia`/`uno-platform`; `pixelcraft-tui` → `extended-tui-toolkits`; `pixelcraft-game-ui` → `unity-ugui`/`unity-ui-toolkit`/`godot`/`monogame` |
|
|
200
|
+
| Clojure | ClojureScript/Reagent/re-frame/UIx/Helix | `pixelcraft-web` → `clojurescript` |
|
|
201
|
+
| Dart | Flutter mobile/desktop/web, Flame (2D game), Jaspr (web) | `pixelcraft-mobile` → `flutter`; `pixelcraft-game-ui` → `web-and-middleware-game-ui`; `pixelcraft-web` → `server-rendered` |
|
|
202
|
+
| Elm | Elm Browser UI | `pixelcraft-web` → `elm` |
|
|
203
|
+
| Elixir | Phoenix LiveView, LiveView Native (SwiftUI/Compose) | `pixelcraft-web` → `server-rendered`; `pixelcraft-mobile` → `harmonyos-and-emerging-mobile` |
|
|
204
|
+
| F# | Fable/Feliz/Elmish, .NET desktop | `pixelcraft-web` → `fsharp-fable`; desktop by actual XAML framework |
|
|
205
|
+
| Go | templ/Gomponents/htmx, Bubble Tea/Lip Gloss/Huh/tview, Fyne/Wails (v2/v3)/Gio, Ebitengine | `pixelcraft-web` → `server-rendered`; `pixelcraft-tui` → `bubbletea-lipgloss`/`extended-tui-toolkits`; `pixelcraft-desktop` → `go-gui`; `pixelcraft-game-ui` → `web-and-middleware-game-ui` |
|
|
206
|
+
| Java | Vaadin/Hilla/Thymeleaf/JTE/Qute, JavaFX/Swing/FlatLaf | `pixelcraft-web` → `java-web`; `pixelcraft-desktop` → `javafx-swing` |
|
|
207
|
+
| Julia | Genie/Stipple, Makie | `pixelcraft-data-apps` → `julia-genie`; `pixelcraft-dataviz` → `libraries` |
|
|
208
|
+
| Kotlin | Compose Android/TV/Wear/XR, KMP, Compose Web `wasmJs`/Kobweb, JetBrains Jewel/UI DSL | `pixelcraft-mobile` → `jetpack-compose`/`kotlin-multiplatform`; `pixelcraft-web` → `kotlin-web`; `pixelcraft-constrained` → `tv-wearables`; `pixelcraft-spatial` → `platforms`; `pixelcraft-extensions` → `ide-and-saas-plugins` |
|
|
209
|
+
| Lua | LÖVE2D, Defold | `pixelcraft-game-ui` → `love2d`/`web-and-middleware-game-ui` |
|
|
210
|
+
| PHP | Laravel Blade/Livewire/Filament/Inertia, Symfony UX (Turbo/LiveComponent/Twig), WordPress Gutenberg | `pixelcraft-web` → `server-rendered` |
|
|
211
|
+
| Python | marimo/Solara/Mesop/Taipy/Streamlit/Gradio/Chainlit/Reflex/NiceGUI/Dash/Panel/Shiny/Jupyter/AnyWidget/FastHTML (Polars/Narwhals); Django/Unfold/FastAPI+Jinja2; Flet/Kivy; Qt/PySide6/PyQt6 (CustomTkinter/Dear PyGui brownfield); Textual/Rich/prompt_toolkit; Pygame/Arcade; WeasyPrint/ReportLab | `pixelcraft-data-apps` matching ref; `pixelcraft-web` → `server-rendered`; `pixelcraft-mobile` → `flet`/`kivy`; `pixelcraft-desktop` → `qt-pyside-qml`; `pixelcraft-tui` → `textual`/`rich`/`extended-tui-toolkits`; `pixelcraft-game-ui` → `web-and-middleware-game-ui`; `pixelcraft-document` → `pdf-tools` |
|
|
212
|
+
| R | Shiny/bslib, ggplot2, Quarto | `pixelcraft-data-apps` → `r-shiny`; `pixelcraft-dataviz` → `libraries`; `pixelcraft-document` → `pdf-tools` |
|
|
213
|
+
| Ruby | Rails/Hotwire/Turbo 8/ViewComponent/Phlex/Inertia | `pixelcraft-web` → `server-rendered` |
|
|
214
|
+
| Rust | Leptos/Yew/Dioxus Web, GPUI/Slint/Dioxus/Iced/`libcosmic`/Vizia/egui/Floem/Xilem/Relm4, Ratatui, Bevy/Macroquad, Typst, `embedded-graphics`/Slint MCU | `pixelcraft-web` → `leptos-yew`; `pixelcraft-desktop` → `rust-gui`; `pixelcraft-tui` → `ratatui`; `pixelcraft-game-ui` → `bevy`/`web-and-middleware-game-ui`; `pixelcraft-document` → `pdf-tools`; `pixelcraft-constrained` → `specialized-hardware` |
|
|
215
|
+
| Scala | Laminar/Scala.js | `pixelcraft-web` → `scala-laminar` |
|
|
216
|
+
| Swift | SwiftUI/TCA/UIKit, macOS AppKit/SwiftUI, visionOS, Skip, tvOS/watchOS, Siri App Intents | `pixelcraft-mobile` → `swiftui`/`uikit`/`nativescript-and-skip`; `pixelcraft-desktop` → `appkit`; `pixelcraft-spatial` → `platforms`; `pixelcraft-constrained` → `tv-wearables`/`voice-ui` |
|
|
217
|
+
| TS/JS / ArkTS | React/Next/RR7/TanStack Start, Vue/Nuxt, Svelte, Solid, Angular, Astro, Qwik, Preact/Fresh/Hono, htmx/Alpine/Datastar, Lit, RN/Expo/LynxJS/NativeScript/Ionic/HarmonyOS ArkUI/Taro/uni-app, Tauri/Electron/Electrobun, Ink/OpenTUI/Clack, Observable/Evidence, React Email/Maizzle/MJML, Slidev/PDF.js/PptxGenJS, Satori/Remotion, AI SDK/assistant-ui/CopilotKit, WXT/VS Code/Raycast/Figma, Phaser/PixiJS | route by surface (`pixelcraft-web`, `pixelcraft-mobile`, `pixelcraft-desktop`, `pixelcraft-tui`, `pixelcraft-data-apps`, `pixelcraft-email`, `pixelcraft-document`, `pixelcraft-media`, `pixelcraft-chat-ui`, `pixelcraft-extensions`, `pixelcraft-game-ui`) |
|
|
218
|
+
| Zig | DVUI, C interop (`clay`/`raygui`/`SDL3`), Electrobun host | `pixelcraft-desktop` → `cpp-gui`/`electron`; verify current library APIs in `pixelcraft-plan` |
|
|
219
|
+
|
|
220
|
+
## Existing system inventory
|
|
221
|
+
|
|
222
|
+
Before designing, inspect design token files (`tokens.json`, `*.tokens.json`, `*.resolver.json`, `style-dictionary.config.*`, `terrazzo.config.*`, Tokens Studio `$themes.json`/`$metadata.json`, `*.figma.tsx` Code Connect, Tailwind v4 `@theme` or v3 config, asset catalogs, resource dictionaries, Qt/QSS, Godot themes, UMG styles), component libraries (`components.json`), lint/test/screenshot fixtures, localization catalogs, brand assets/licenses, density conventions, and navigation structure. Record whether the system is authoritative, partial, inconsistent, or absent. Existing tokens outrank Pixelcraft-generated taste.
|
|
223
|
+
|
|
224
|
+
## Input/render surface
|
|
225
|
+
|
|
226
|
+
Classify input modality (touch, mouse/keyboard, controller, remote/D-pad, gaze/hand, terminal keyboard, screen reader, voice), viewport/window constraints, network context, platform/version, and rendering surface (DOM/canvas/WebGL/WebGPU/native/Skia/terminal cells/email client/paged print/game engine/XR compositor). These facts determine which floor checks and platform idioms apply.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Shared surface acceptance matrix & 3-tier Studio rubric
|
|
2
|
+
|
|
3
|
+
Use this reference when deciding what evidence a platform implementation must produce and when populating `.pixelcraft/acceptance.json` (`check-acceptance.mjs` in `pixelcraft-review`). It is the cross-surface contract; platform skills add native idioms, measurable thresholds, and required deliverable artifacts.
|
|
4
|
+
|
|
5
|
+
## Golden Evidence Rule (`Rule #0.3`)
|
|
6
|
+
|
|
7
|
+
**`static` or `model-judgment` NEVER counts as `pass` / accepted for visual appearance, measured performance budgets, or interactive/assistive accessibility requirements.** Those rows require `rendered` evidence from a real runtime, device, simulator, or instrumented harness—or must be recorded honestly as `not-checked` (with concrete environment reason + next command) or `waived` (with explicit user authorization, scope, and consequence). `check-acceptance.mjs` mechanically rejects any `pass` claim backed only by `static` or `model-judgment` on `rendered`-required rows.
|
|
8
|
+
|
|
9
|
+
## 12-Row Shared Surface Acceptance Matrix
|
|
10
|
+
|
|
11
|
+
| # | Universal acceptance row | Required design & implementation behavior | Minimum acceptance evidence (`rendered` where visual/perf/interactive-a11y) |
|
|
12
|
+
|---:|---|---|---|
|
|
13
|
+
| 1 | **Responsive/adaptive layout** | Surface controls resize, orientation, split-pane, and breakpoint reflow through constraints rather than fixed perfect pixels | Smallest, typical, and large target geometries inspected (`rendered`) with zero clipping, overlap, or accidental 2D scrolling |
|
|
14
|
+
| 2 | **Navigation & back** | Back, `Escape`, close, deep link, refresh, and relaunch restore understandable route and selection state without dead ends | Primary forward/back/dismiss task path exercised in the real runtime or labeled emulation (`rendered`) |
|
|
15
|
+
| 3 | **Input modalities** | Pointer, touch, keyboard, controller, remote, or voice paths match platform expectations with forgiving hit areas, pointer capture, and active **IME composition safety** (`Enter`/`Escape` never prematurely submits) | Primary task completed without mouse-only, hover-only, or precision-only dependency + composed input (`ư, ơ, ệ`, CJK, RTL) checked (`rendered`) |
|
|
16
|
+
| 4 | **Focus & state restoration** | Focus, selection, scroll, and dirty input survive dialogs, errors, route changes, OS interruptions, and re-entry without sticky-chrome occlusion (`WCAG 2.4.11`) | Focus traversal and restoration inspected across at least one interruption and smallest supported viewport (`rendered`) |
|
|
17
|
+
| 5 | **Rendered state matrix** | `loading`, `empty` (first-use + no-results), `error`, `offline`, `permission-denied`, `404`/`500`, long-content, conflict, and cancellation states are implemented | Representative happy-path and non-happy-path states captured in the target runtime (`rendered`) |
|
|
18
|
+
| 6 | **Accessibility & screen reader** | Native semantics/accessibility tree expose name, role, value, state, contrast, reduced-motion/transparency fallbacks, and live announcements | Automated accessibility/contrast scan plus keyboard and screen-reader (or platform assistive tree) walkthrough (`rendered`) |
|
|
19
|
+
| 7 | **Text scaling & localization** | `+30–40%` prose and `+50–100%` short-label expansion, `200%` text zoom/Dynamic Type, CJK contraction, RTL mirroring, tabular numerals (`tnum` + `U+2212`), and `Unicode NFC` diacritic glyph coverage survive | Stress-locale / `200%` text-scale renders verified with zero fixed-height clipping or mid-word fallback glyphs (`rendered`) |
|
|
20
|
+
| 8 | **Measured performance** | Meets the `<= 100 ms` direct-manipulation / `> 1 s` progress / `> 10 s` cancellable ladder plus platform startup, frame-time, payload, memory, and battery budgets | Instrumented runtime profiler / benchmark output against agreed numeric budgets (`rendered`) |
|
|
21
|
+
| 9 | **Safe areas & frame geometry** | Safe areas, overscan, notches/cutouts, system bars, virtual keyboards, taskbar/menu bar, and window minimums are respected | Real device, simulator, windowed, print-trim, or terminal geometry captures (`rendered`) |
|
|
22
|
+
| 10 | **Capture/recording artifacts** | Required deliverable screenshots, video walkthroughs, profiler traces, print proofs, or terminal recordings capture edge cases without hiding defects | Complete platform deliverable package attached with exact build/device/viewport metadata (`rendered`) |
|
|
23
|
+
| 11 | **Data & privacy** | User data, PII, secrets, private media, and credentials are protected across source, bundles, staging/prod separation, exports, and QA captures | Secret/dependency audit (`static`) + redacted/synthetic captures and privacy/consent flows verified (`rendered`/`static`) |
|
|
24
|
+
| 12 | **Platform idiom** | Navigation, chrome, feedback, packaging, store/regulatory compliance, `< 10m` setup, commercial licenses, and 30–90d warranty/owner handoff feel native and release-ready | Platform idioms, regulatory/store gates, clean build/audit logs, and handoff manifest verified (`rendered`/`static`) |
|
|
25
|
+
|
|
26
|
+
## Mode overlays
|
|
27
|
+
|
|
28
|
+
- **Operate:** keyboard/controller efficiency, density discipline, recovery/undo, latency, scanability, and state persistence dominate.
|
|
29
|
+
- **Read:** measure, typography, navigation orientation, print/export behavior, scaling, and distraction control dominate.
|
|
30
|
+
- **Persuade:** truthful proof, decision sequence, performance, memorable hierarchy, and action visibility dominate.
|
|
31
|
+
- **Experience/Play:** frame stability, input latency, comfort, HUD legibility, interruption recovery, and sensory-safe alternatives dominate.
|
|
32
|
+
- **Communicate:** client degradation, plaintext/low-bandwidth equivalent, image blocking, ink/data cost, and locale robustness dominate.
|
|
33
|
+
|
|
34
|
+
## 3-Tier Final Grading Rubric (`check-acceptance.mjs`)
|
|
35
|
+
|
|
36
|
+
| Final tier | CLI verdict & exit code | Criteria & mandatory agent action |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| **1. `FAIL (Not Accepted)`** | `FAIL` (`exit 1`) | Any Baseline `A1–A8` row, 12-row Surface Matrix row, or platform threshold/checklist/deliverable item is `fail` or `pending`, OR claims `pass` via `static`/`model-judgment` where `rendered` evidence is required (`Rule #0.3`), OR marks `waived` without explicit user sign-off + scope + consequence. **Agent MUST NOT claim completion—keep fixing and re-verifying.** |
|
|
39
|
+
| **2. `PASS (Studio $10k–$20k Bar)`** | `PASS_STUDIO_10K_20K` (`exit 0`) *(or `PENDING_RENDERED_ENV` `exit 2` when physical hardware/store runtime is genuinely unavailable here)* | All Baseline `A1–A8` + 12-row Surface Matrix + platform measurable thresholds, inspection items, and deliverable artifacts pass on agreed target environments (`rendered` where required), and any `not-checked` / `waived` row carries a concrete environment reason + next command or explicit user sign-off + scope + consequence. |
|
|
40
|
+
| **3. `EXCEEDS`** | `EXCEEDS_STUDIO` (`exit 0`) | Meets every `PASS_STUDIO_10K_20K` requirement AND adds real-user research/usability sessions, live A/B experimentation, deep multi-locale native review, or high-scale systems/telemetry integration. |
|
|
41
|
+
|
|
42
|
+
## Minimum acceptance statement
|
|
43
|
+
|
|
44
|
+
Every surface implementation must update `.pixelcraft/acceptance.json`, run `check-acceptance.mjs`, and end with a matrix summary:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
| Universal acceptance row | Result | Evidence | Label |
|
|
48
|
+
|---|---|---|---|
|
|
49
|
+
| 1. Responsive/adaptive layout | pass/not-checked/waived | artifact/path/command | rendered/static/not-checked/waived |
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
A blank or `pending` matrix means the implementation is `FAIL (Not Accepted)` even if it compiles.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Workflow checkpoints
|
|
2
|
+
|
|
3
|
+
## Choose the task route during Plan
|
|
4
|
+
|
|
5
|
+
Classify both the project (greenfield, brownfield or hybrid) and the requested change. A new screen in an existing product is not a new project. For mixed work, name the route per affected surface and verify shared contracts.
|
|
6
|
+
|
|
7
|
+
| Task route | Required scope |
|
|
8
|
+
|---|---|
|
|
9
|
+
| New project | Run the full loop and produce each applicable result below. Identify platform, audience, hard constraints and real material before choosing a compatible stack. Diverge wherever visual direction is undecided; use the approved-design path where it is already fixed. Specify complete flows and applicable states before coding. |
|
|
10
|
+
| Extend existing product | For a new screen, feature or platform, first read the existing entry points/navigation, design system, data contracts, locked stack and neighboring tests. Then frame the new task, decide direction only where unresolved, and specify its full flow and applicable states before building. Reuse the existing stack where it fits; do constrained stack selection when a new platform or separate runtime requires one. Verify both the new outcome and affected existing paths. |
|
|
11
|
+
| Edit or fix | Trace the affected entry point, component, state/data path, tokens and checks. Record the current behavior or defect, intended change and invariants. Use a scoped brief and spec; keep unchanged visual decisions. Reproduce a reported defect where possible, then verify the fix and affected neighbors. |
|
|
12
|
+
| Redesign or rebuild | Inventory existing routes or entry points, task outcomes, content/data, accessibility and localization, and other relevant contracts. Record what stays, what changes, and how each preserved or migrated contract will be checked before replacing anything. Diverge only in the undecided scope. A rebuild does not by itself authorize a new stack, dropped routes or changed outcomes. |
|
|
13
|
+
| Behavior-preserving refactor | Inventory consumers and observable contracts first. Reuse the approved direction and assert output, interactions, accessibility behavior and public contracts before/after where affected. Do not turn an internal change into a visual redesign. |
|
|
14
|
+
|
|
15
|
+
## Adaptive discovery and approval boundary
|
|
16
|
+
|
|
17
|
+
Choose one of three modes inside `pixelcraft-plan` after inspecting the repository and supplied artifacts first (never ask the user facts readable from the repo):
|
|
18
|
+
|
|
19
|
+
| Mode | When to use | Interaction & gate |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| **Grill-Me / Deep Shaping** | Greenfield product, vague or ambiguous brief, major redesign, or user asks to brainstorm / grill / compare options | Walk unresolved branches of the decision tree strictly **one principal question per turn** with 2–4 concrete options leading with **(Recommended)** + trade-offs. Stop once the plan and direction constraints are actionable. |
|
|
22
|
+
| **Fast Confirm** | Clear feature or scoped surface with 1–2 undecided design, IA, or stack/library choices | Inspect the repo/brief, propose concrete defaults with trade-offs in one focused turn, and confirm before coding. |
|
|
23
|
+
| **Direct Execution** | Narrow bug fix, copy tweak, visual polish, behavior-preserving refactor, or implementation of an already-approved design | Skip the interview, record a compact scoped brief/plan with reversible defaults, and execute directly. |
|
|
24
|
+
|
|
25
|
+
The agent researches discoverable facts; the user owns priorities, anti-goals, preferences, and approvals. Accept a direct answer, correction, "you decide", or "skip". If the user explicitly says to decide and build directly, record conservative, reversible defaults and surface material risks.
|
|
26
|
+
|
|
27
|
+
## Design Approval `<HARD-GATE>` (Phase 2 → Phase 3 → Phase 4)
|
|
28
|
+
|
|
29
|
+
For **new products, new multi-screen features, or undecided redesigns**, do **not** write implementation code until the user approves the committed design proposal:
|
|
30
|
+
|
|
31
|
+
1. Present 2–3 materially different direction options (leading with your `(Recommended)` choice and evidence-backed trade-offs),
|
|
32
|
+
2. Include a compact **ASCII structural skeleton** and **real-copy headline/primary action draft** for each option (not vague adjectives),
|
|
33
|
+
3. State the **stack and sub-stack capability library choices** (rejecting lazy defaults and DIY substitutes), and
|
|
34
|
+
4. Wait for user confirmation (or explicit approval of one option / hybrid) before entering **Phase 4 (Build)**.
|
|
35
|
+
|
|
36
|
+
Bypass this `<HARD-GATE>` **only** when the user explicitly says to decide and build directly without stopping, or when an already-approved design / narrow fix puts the task in **Direct Execution**.
|
|
37
|
+
|
|
38
|
+
## Completion & Scan-Until-Clean `<HARD-GATE>` (Phase 5 → Phase 6 / Stop)
|
|
39
|
+
|
|
40
|
+
Never stop after **Phase 4 (Build)** or after a single unverified pass. Before entering **Phase 6 (Report)** or declaring any task complete, execute the planned **Definition-of-Done Completion Contract** from `.pixelcraft/plan.md` and `.pixelcraft/acceptance.json`:
|
|
41
|
+
|
|
42
|
+
1. **Execute all applicable deterministic scans & static/build gates:**
|
|
43
|
+
- Run `slop-scan.mjs <changed-or-surface-path> --fail-on p2` (must exit `0` with zero `P0`/`P1`/`P2` findings; `P3` waivers allowed only via explicit user-approved brand waivers).
|
|
44
|
+
- Run every applicable surface/token CLI: `check-contrast.mjs` (tokens/theme pairs), `check-email.mjs` (`--plaintext`, `--headers`), `check-tui.mjs` (`--cols`, non-TTY `NO_COLOR=1`), `check-pdf.mjs` (`--prepress` when print-targeted), `export-tokens.mjs`.
|
|
45
|
+
- Run the active language's strict compiler, typechecker, linter, ecosystem dependency vulnerability audit, and unit/integration test suite (`exit 0`, zero newly introduced errors).
|
|
46
|
+
2. **Walk every applicable checklist item-by-item (never skim headings):**
|
|
47
|
+
- Normative Floor (`references/floor.md` `A1–A8`),
|
|
48
|
+
- Active Platform Skill `Pre-submit checklist` (`pixelcraft-<platform>`), and
|
|
49
|
+
- Studio-Grade Polish & Delivery Gate (`pixelcraft-review` `references/polish.md`: 5-second hierarchy, `B1–B6` Invisible Craft, non-happy-path/`404`/`500`/`IME`/`+50–100%` short-label/`NFC` resilience, and `< 10m` setup / staging separation / license / 30–90d warranty handoff).
|
|
50
|
+
3. **Run rendered verification & `finish-gate.mjs` where runtime is available:**
|
|
51
|
+
- Capture representative states/breakpoints (`shoot.mjs`, `style-inventory.mjs`, native simulator/emulator, CLI capture, or PDF rasterization) and validate `finish-gate.mjs` on new or materially changed flows.
|
|
52
|
+
- **Enforce Golden Evidence Rule (`Rule #0.3`):** `static` or `model-judgment` **never** counts as `pass` for visual appearance, measured performance budgets, or interactive/assistive accessibility rows—supply `rendered` evidence, or record `not-checked` (with concrete environment reason) or `waived` (with explicit user authorization, scope, and consequence).
|
|
53
|
+
4. **Update `.pixelcraft/acceptance.json` & enforce `Scan → Fix → Rescan` until passing:**
|
|
54
|
+
- Populate `.pixelcraft/acceptance.json` with measured artifacts/evidence and run `node <pixelcraft-review>/scripts/check-acceptance.mjs .pixelcraft/acceptance.json`.
|
|
55
|
+
- Whenever any deterministic scanner, compiler/test check, checklist row, or acceptance manifest item is `fail` or `pending` (`FAIL` exit `1`), **fix the underlying defect and re-run the affected scans + `check-acceptance.mjs` until `0` `fail` and `0` `pending` rows remain** (`PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO` exit `0`, or `PENDING_RENDERED_ENV` exit `2` strictly when external physical hardware/store runtime is unavailable here). Never silence rules, hide overflow, strip features, or invent waivers to force a green exit. (Rendered pixel-critique rounds inside `finish-gate.mjs` remain capped at 3 documented rounds before escalating genuinely blocked visual conflicts as `OPEN`.)
|
|
56
|
+
|
|
57
|
+
## Check before advancing
|
|
58
|
+
|
|
59
|
+
Use the existing brief, plan, direction card, checks and report; link or summarize their relevant sections in the plan rather than creating a separate set of artifacts. For each phase, record the result and point to what you actually read, inspected or ran (path and section or symbol; source and date; command and outcome; rendered artifact and state). Name the constraint or decision it established. A filename list, headings-only skim, or search hit without reading the relevant surrounding code or rule does not count. Use current evidence only; reread affected sections when inputs or scope change. If the workspace cannot be written, keep the same record in the run or handoff.
|
|
60
|
+
|
|
61
|
+
| Phase | Exit evidence |
|
|
62
|
+
|---|---|
|
|
63
|
+
| 0. Plan | Record the task route, adaptive discovery mode (`Grill-Me` / `Fast Confirm` / `Direct Execution`), scoped requirements, stack/version decision, **Sub-Stack Capability → Purpose-Built Library resolution** (rejecting lazy defaults and fragile DIY hand-rolls), applicable platform skill and reference, **initialized `.pixelcraft/acceptance.json` (`check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`) with concrete numeric/device thresholds agreed upfront**, and the **Mandatory Completion Gate & Scan-Until-Clean Contract** inside `.pixelcraft/plan.md`. For existing products, cite the inspected conventions, runtime/lock, affected UI/state path and relevant tests; identify preserved behavior and its verification baseline. Where a stack must be selected, include requirements, weighted stack comparison and version sources. |
|
|
64
|
+
| 1. Frame | Record the target user, job, real material, surface mode, constraints and a concrete task success condition in the brief. Reuse a brief only after checking those facts against the current scope. |
|
|
65
|
+
| 2. Diverge | Record the 2–3+ contrasting directions (with ASCII structural skeletons and real-copy lead drafts), evidence-backed scores, repetition check, and **Design Approval `<HARD-GATE>`** outcome for undecided scope. Where direction is already fixed, cite the approved design or existing convention and state why divergence is not applicable. If the winning creative direction requires a stack/renderer upgrade, update `.pixelcraft/plan.md` before advancing. |
|
|
66
|
+
| 3. Specify | Record the approved direction card (including ASCII skeleton and real-copy draft), finalized **Sub-Stack Capability → Purpose-Built Library** picks wired into the architecture (confirming zero fragile DIY modals, editors, charts, tables, search, drawers, toasts, or carousels), task flows, applicable states and acceptance checks, including how preserved behavior will be verified. Resolve material assumptions that determine implementation before building. |
|
|
67
|
+
| 4. Build | Point to implementation and its platform/reference decisions. Check against the spec, applicable floor, and preserved contracts before handing off to verification. Do not count stubs, `// TODO`s, empty handlers, unwired mobile nav, simulated production outcomes, or unapproved dependency changes as delivery. |
|
|
68
|
+
| 5. Verify | Pass the **Completion & Scan-Until-Clean `<HARD-GATE>`**: record exact executed commands, repair-and-rescan iterations, final `exit 0` outcomes for `slop-scan.mjs --fail-on p2`, applicable `check-*` CLIs, strict compiler/linter/dependency-audit/tests, item-by-item sign-off of `floor.md` + platform `Pre-submit` + `polish.md`, rendered task evidence + `finish-gate.mjs` status, and **`check-acceptance.mjs .pixelcraft/acceptance.json` (`0` `fail`/`pending` rows, `Rule #0.3` honored)**. Compilation or a loaded screen alone proves neither behavior nor visual quality. |
|
|
69
|
+
| 6. Report | Report the 3-tier Studio verdict (`PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO` / `PENDING_RENDERED_ENV`, never `FAIL`), point to clean scan outputs, 12-row Surface Matrix, deliverable artifacts, and rendered captures; report any genuinely blocked `not-checked` / `OPEN` items and explicit user waivers, including the next discriminating command when external device/runtime checks remain. |
|
|
70
|
+
|
|
71
|
+
Use the standard evidence labels and **Golden Evidence Rule (`Rule #0.3`)**. Explain why a branch is not applicable rather than marking it as passed; reserve `waived` for explicit user authorization with scope and consequence. Mark unavailable requirements `not-checked` with the affected claim. Do not advance dependent work on an unresolved prerequisite or claim completion for an unchecked requirement. Scope reduces the size of the evidence, not the obligation to inspect or verify.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pixelcraft-accessibility
|
|
3
|
+
description: Applies and verifies the accessibility floor across platforms. Use when designing or reviewing UI for WCAG 2.2 AA, APCA contrast, ARIA APG patterns, semantic structure, keyboard/focus operability, target size, screen readers, Dynamic Type/text scaling, reduced motion, prefers-reduced-transparency, forced-colors, dragging alternatives, redundant entry, accessible authentication, EAA/ADA compliance context, subtitles, canvas/WebGL alternatives, AccessKit, controller remapping, or web/mobile/desktop/TUI/document/spatial/extension/email/game accessibility.
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
version: 0.1.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Pixelcraft accessibility
|
|
10
|
+
|
|
11
|
+
Accessibility is a floor built during design, not a final repair pass. Meet the platform's native expectations first; use custom behavior only when native semantics cannot express the interaction.
|
|
12
|
+
|
|
13
|
+
## References
|
|
14
|
+
|
|
15
|
+
- Read [references/wcag22-checks.md](references/wcag22-checks.md) for the concrete WCAG 2.2 AA floor, cross-platform sticky-chrome Focus Unobscured (`2.4.11`/`2.4.12`) remediation, APCA cross-reference, and EU `EAA` / `EN 301 549` Accessibility Statement readiness.
|
|
16
|
+
- Read [references/apg-patterns.md](references/apg-patterns.md) before implementing or reviewing native HTML primitives (`<dialog>`, Popover, `inert`, `<details name>`) or custom composite widgets.
|
|
17
|
+
- Read [references/platforms.md](references/platforms.md) when translating the floor to web, iOS, Android, Flutter/React Native/LynxJS, data apps, desktop/AccessKit, TUI, email, documents/PDF/UA, chat UI, extensions, spatial/XR, constrained/TV/wearables, or game UI.
|
|
18
|
+
- Read [references/motion-canvas.md](references/motion-canvas.md) when reviewing animation, reduced motion, prefers-reduced-transparency, flashing limits, custom cursor, canvas/WebGL DOM fallback, or audio/video captions.
|
|
19
|
+
- Read [references/verification.md](references/verification.md) before claiming compliance; separate static linters, browser-rendered automated scans, and manual assistive-tech verification.
|
|
20
|
+
|
|
21
|
+
## Numeric floor targets (WCAG 2.2 AA & platform baselines)
|
|
22
|
+
|
|
23
|
+
| Requirement | Mandatory floor target |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Text & UI contrast | **≥ 4.5:1** normal text; **≥ 3:1** large text (≥ 18pt / 14pt bold) and non-text UI boundaries/focus indicators |
|
|
26
|
+
| Pointer / touch target size | **≥ 24×24 CSS px** web (WCAG 2.2 `2.5.8`); **≥ 44×44 pt** iOS; **≥ 48×48 dp** Android / Material |
|
|
27
|
+
| Text scaling & reflow | **200%** text zoom with zero clipping/overlap; **320 CSS px** reflow width without horizontal scrolling for primary reading/tasks |
|
|
28
|
+
| Focus visibility (WCAG 2.2 `2.4.11` / `2.4.12`) | Visible focus indicator on every interactive element, **never obscured** by sticky headers, toolbars, banners, or keyboards (`scroll-padding-block` / `.safeAreaInset` / `imePadding`) |
|
|
29
|
+
| Dragging alternative (WCAG 2.2 `2.5.7`) | Every drag-and-drop, slider, or reorder interaction has a **single-pointer** (click/tap button) and keyboard alternative |
|
|
30
|
+
|
|
31
|
+
## Core rules
|
|
32
|
+
|
|
33
|
+
1. **Use native semantic controls—never non-semantic `<div>`/`<span>` click targets or unbound custom widgets.** Use native platform buttons, links, inputs, and dialogs first; roles and key listeners alone do not repair fake controls.
|
|
34
|
+
2. Composite widgets need a complete interaction contract: role/state/value, keyboard/controller input, focus entry/exit/restoration, activation/selection semantics, async behavior, and Escape/cancel behavior—not merely an ARIA role.
|
|
35
|
+
3. Every meaningful control has a persistent accessible name/label (never placeholder-only), visible focus or platform equivalent, and a complete keyboard/touch/controller/assistive path with scroll-inset compensation against sticky/fixed chrome (`WCAG 2.4.11`/`2.4.12`).
|
|
36
|
+
4. Test task completion—not just component presence—with keyboard only, screen reader where available, `200%` text scaling, `320px` reflow, dark/high contrast, reduced motion, reduced transparency, and touch/target constraints.
|
|
37
|
+
5. Never encode meaning by color alone; pair color with text, shape, icon, pattern, position, or state language.
|
|
38
|
+
6. Do not disable zoom/text scaling (`user-scalable=no`, `maximum-scale=1`) or block paste/password managers/autofill.
|
|
39
|
+
7. Motion, audio, flashing, vibration, and timed behavior need safe alternatives (`prefers-reduced-motion`, captions/transcripts, pause/stop controls).
|
|
40
|
+
8. Localization and accessibility overlap: expanded strings (`+50–100%` short labels), RTL/bidi, `IME` composition, scripts, and plural forms must not clip, reorder, or obscure interaction.
|
|
41
|
+
9. For B2C digital products, e-commerce, banking, transport, or communications serving EU users (`EAA` / `EN 301 549`), surface or plan a public **Accessibility Statement** (conformance status, known limitations, tested assistive-tech matrix, and barrier-free feedback/escalation channel).
|
|
42
|
+
|
|
43
|
+
## Verification honesty
|
|
44
|
+
|
|
45
|
+
**Never claim an accessibility pass from automated scanners or static linters alone.** Automated DOM/tree scanners catch only a fraction of WCAG 2.2 defects and cannot verify logical focus order, Focus Not Obscured (`2.4.11`), single-pointer drag alternatives (`2.5.7`), meaningful alt/error copy, or keyboard task completion. Report each material claim as `rendered`, `static`, `model-judgment`, `not-checked`, or `waived`, naming tool, platform, input modality, viewport/device, theme/motion setting, and scope.
|
|
46
|
+
|
|
47
|
+
## Pre-submit checklist
|
|
48
|
+
|
|
49
|
+
- [ ] Native semantic primitives used first; zero non-semantic click-only containers or dead placeholder links.
|
|
50
|
+
- [ ] Contrast meets `≥ 4.5:1` (normal text) and `≥ 3:1` (large text & non-text UI/focus) across light, dark, and hover/focus/disabled states.
|
|
51
|
+
- [ ] Target sizes meet `≥ 24×24px` web / `44pt` iOS / `48dp` Android; reflow holds at `320px` and text scaling holds at `200%`.
|
|
52
|
+
- [ ] Keyboard-only forward/reverse flow completes primary task with visible, unobstructed focus (`2.4.11`/`2.4.12` sticky-chrome scroll insets wired) and proper dialog focus restoration.
|
|
53
|
+
- [ ] Every drag interaction has a single-pointer + keyboard alternative (`2.5.7`); forms allow paste/autofill and link inline errors programmatically.
|
|
54
|
+
- [ ] Reduced-motion, reduced-transparency, non-color state cues, and `EAA` / `EN 301 549` Accessibility Statement readiness (when in EU B2C scope) are addressed; report never equates zero linter/scanner hits with full compliance.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# ARIA APG pattern matrix
|
|
2
|
+
|
|
3
|
+
Use native platform semantics first. This matrix applies when a custom or composite widget is genuinely necessary. ARIA APG patterns are interaction contracts: role alone is never enough without keyboard behavior, focus management, state exposure, and accessible naming.
|
|
4
|
+
|
|
5
|
+
## Native HTML replacements (prefer before custom ARIA)
|
|
6
|
+
|
|
7
|
+
Modern HTML eliminates whole classes of brittle ARIA focus-trap and state-sync bugs—use these natively where target browser baselines support them:
|
|
8
|
+
|
|
9
|
+
| Native HTML primitive | Replaces | Built-in accessibility & keyboard behavior | Guardrail |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| `<dialog>` + `showModal()` | Custom `role="dialog"` + JS focus-trap | Top-layer stacking, automatic background inerting, `Esc` cancel, focus restoration to invoker on close | Still provide an accessible label (`aria-labelledby` pointing to heading) and visible Close control |
|
|
12
|
+
| Popover API (`popover="auto"` / `popover="hint"`) | Custom click-outside dropdowns, tooltips, non-modal overlays | Light-dismiss (`Esc` / outside click), top-layer placement, automatic `aria-expanded` / `aria-details` linkage with invoker | Use `popover="hint"` for non-interactive hover/focus tooltips that should not close open `auto` popovers |
|
|
13
|
+
| Invoker Commands (`commandfor` + `command`) | Custom `onclick` + manual `aria-controls` / `aria-expanded` wiring | Declarative button invocation (`command="show-modal"`, `close`, `toggle-popover`) with native semantics and less JS | Feature-check or progressively enhance on older browsers lacking Invoker Commands |
|
|
14
|
+
| `inert` attribute | Manual `tabindex="-1"` loops + `aria-hidden="true"` on siblings | Atomically removes subtree from tab order, pointer hit-testing, and accessibility tree | Never set `inert` on an ancestor of the active modal/focus target |
|
|
15
|
+
| Exclusive `<details name="group">` | Custom JS accordion (`aria-expanded`, `aria-controls`) | Native disclosure semantics, keyboard toggle, and single-open group coordination via shared `name` | Use CSS `::details-content` + `interpolate-size` for optional smooth transitions; keep headings semantic |
|
|
16
|
+
| Customizable `<select>` (`appearance: base-select`) | Custom `role="listbox"` / `combobox` replacements for styled selects | Keeps native keyboard navigation, typeahead, form submission, mobile pickers, and screen-reader announcements while allowing custom option markup | Treat as progressive enhancement; native `<select>` remains fully operable where unsupported |
|
|
17
|
+
|
|
18
|
+
## Core matrix
|
|
19
|
+
|
|
20
|
+
| Pattern | Required behavior highlights | Common failure |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| button/link | correct native element; activation keys/platform equivalents; disabled state meaningful | `div` with click handler; link used for action or button used for navigation |
|
|
23
|
+
| dialog/modal | labelled; focus moves inside deliberately; tab cycles or platform-equivalent containment; escape/close behavior; focus restored on close | background still reachable; focus lost to body; close button unnamed; nested modal confusion |
|
|
24
|
+
| non-modal dialog/popover | discoverable trigger relationship; does not steal focus unexpectedly; dismiss behavior and collision/overflow handling | autoclose loses input; focus jumps without cause; screen-reader order unrelated |
|
|
25
|
+
| menu/menubar | roving tabindex or platform equivalent; arrow/home/end keys; typeahead where specified; escape returns focus | menu items only clickable; focus/activation order mismatched; hidden menu remains focusable |
|
|
26
|
+
| tabs | tab list semantics; selected state; declared manual or automatic activation; panel association. Automatic: arrows move focus and select. Manual: arrows move focus only; Enter/Space activates. | behavior inconsistent with the declared activation mode; visual active class only; hidden panels readable |
|
|
27
|
+
| accordion/disclosure | button controls region; expanded state; keyboard activation; content order logical | heading and button compete; no state exposure; hidden content focusable |
|
|
28
|
+
| combobox/autocomplete | input labelled; popup relationship; expanded state; active descendant or real focus model; arrow/enter/escape behavior; async/empty/error status | selecting on every keystroke; no result count/status; focus trapped; paste/IME broken |
|
|
29
|
+
| listbox/select | orientation-aware arrow behavior; selection state; typeahead where appropriate; multi-select semantics | active option visual only; selection committed without confirmation contrary to platform norm |
|
|
30
|
+
| grid/table interactive | grid semantics only when cell-level interaction requires it; row/column navigation; selection; editable cell behavior; escape/revert | semantic table converted unnecessarily; keyboard model undocumented; focus disappears on sort/filter |
|
|
31
|
+
| tooltip | supplementary nonessential content; trigger focus/hover behavior; escape dismissal; no interactive content unless pattern differs | essential error/help only in tooltip; tooltip appears but is not exposed/dismissible |
|
|
32
|
+
| alert/status/live region | correct urgency; concise text; no focus theft; repeated updates controlled | every validation keystroke announced; decorative loading noise; duplicate announcements |
|
|
33
|
+
| carousel | slide controls named; rotation pausable; focus/reading order coherent; reduced-motion behavior | auto-advance steals context; hidden slides focusable; dots have no labels |
|
|
34
|
+
| tree view | hierarchical roles/states; arrow/expand/collapse/typeahead behavior; selection vs expansion distinct | chevron only mouse; nested levels flatten visually for assistive tech |
|
|
35
|
+
| drag/drop | drag state plus keyboard/single-pointer alternative; drop target descriptors; cancel behavior | dragging is sole path; target size/precision too demanding; no announcement of result |
|
|
36
|
+
|
|
37
|
+
## Implementation checklist
|
|
38
|
+
|
|
39
|
+
For each composite widget:
|
|
40
|
+
|
|
41
|
+
1. Write the interaction contract before coding: keys/input methods, focus model, selection/activation model, escape/cancel behavior, async behavior, empty/error states.
|
|
42
|
+
2. Use the platform-native equivalent if it exists and can meet the requirement.
|
|
43
|
+
3. Assign name/role/value/state through the platform accessibility API; do not use ARIA roles that conflict with native semantics.
|
|
44
|
+
4. Keep DOM/tree order aligned with visual and interaction order unless deviation is deliberate and announced.
|
|
45
|
+
5. Implement keyboard/controller behavior before visual polish.
|
|
46
|
+
6. Manage focus deterministically: opening, closing, deleting the focused node, validation failure, async refresh, and route transition.
|
|
47
|
+
7. Expose state changes and status messages without stealing focus.
|
|
48
|
+
8. Test with keyboard only and at least one real screen-reader/platform pairing when available; otherwise label manual behavior `not-checked`.
|
|
49
|
+
9. Test text scaling, RTL, high contrast/forced colors, reduced motion, and touch/target behavior.
|
|
50
|
+
10. Document exceptions and platform deviations; do not copy web key bindings blindly into native, terminal, game, or spatial surfaces.
|
|
51
|
+
|
|
52
|
+
## Red flags requiring redesign
|
|
53
|
+
|
|
54
|
+
- ARIA is being used to repair an element that should have been native.
|
|
55
|
+
- Keyboard behavior exists but focus is invisible or clipped.
|
|
56
|
+
- The component works only when visual layout matches exactly.
|
|
57
|
+
- Async loading leaves focus on a removed element.
|
|
58
|
+
- Screen-reader announcements are noisy enough that users cannot complete the form.
|
|
59
|
+
- Keyboard and pointer selection models diverge without intentional design.
|
|
60
|
+
- Hidden content remains interactive or visible content is missing from the accessibility tree.
|
|
61
|
+
|
|
62
|
+
## Verification evidence
|
|
63
|
+
|
|
64
|
+
Report pattern verification by task, not component presence: “Completed date selection using keyboard only in dialog; focus returned to trigger” is evidence. “Added `role=dialog`” is implementation detail and proves nothing by itself.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Motion, canvas, and media accessibility
|
|
2
|
+
|
|
3
|
+
## Motion and flashing thresholds
|
|
4
|
+
|
|
5
|
+
- **Reduced motion (`prefers-reduced-motion: reduce` / OS Reduce Motion):** replace large spatial movement, zoom, parallax, spin, or auto-advance with an instant state change or short opacity crossfade. Preserve functional feedback (state label, icon, tone, focus ring)—never delete confirmation when reducing motion.
|
|
6
|
+
- **WCAG 2.2.2 Pause, Stop, Hide (`> 5 s`):** any automatically starting moving, blinking, scrolling, or auto-updating content that lasts longer than 5 seconds and appears alongside other content must provide a keyboard-operable **Pause, Stop, or Hide** mechanism (unless essential).
|
|
7
|
+
- **WCAG 2.3.1 Three Flashes or Below Threshold (`≤ 3 flashes/s`):** never flash any visual area more than three times in any one-second period (or stay strictly below WCAG general-flash and saturated-red flash thresholds).
|
|
8
|
+
- **Reduced transparency (`prefers-reduced-transparency: reduce`):** any translucent glass or blur overlay sitting over moving video, WebGL, or complex imagery must switch to an opaque high-contrast surface token so background movement never bleeds through text.
|
|
9
|
+
- **Input parity:** never require hover, drag, or custom-cursor precision to discover or activate an essential action; pair every pointer interaction with focus, keyboard, and touch alternatives.
|
|
10
|
+
|
|
11
|
+
## Canvas and WebGL DOM fallback
|
|
12
|
+
|
|
13
|
+
Pixels painted onto `<canvas>` (2D, PixiJS, Three.js, WebGL/WebGPU) are invisible to screen readers, search-in-page, translation tools, and keyboard navigation unless backed by real DOM:
|
|
14
|
+
|
|
15
|
+
- Keep primary headings, prices, instructions, and primary action controls in ordinary semantic DOM—never bake readable UI copy exclusively into shaders or canvas textures.
|
|
16
|
+
- Provide fallback DOM inside `<canvas>` (or an adjacent visually structured summary/data table) with `role="img"` / `aria-label` for non-interactive scenes, or real focusable `<button>` / data controls synchronized with canvas hit regions for interactive scenes:
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<figure class="scene-shell">
|
|
20
|
+
<canvas id="orbit-canvas" width="960" height="540"
|
|
21
|
+
role="img" aria-labelledby="orbit-title" aria-describedby="orbit-summary">
|
|
22
|
+
<!-- Accessible fallback DOM exposed to assistive technology and no-WebGL contexts -->
|
|
23
|
+
<p id="orbit-summary">Interactive 3D view of Sensor Node X2 showing intake vent, optical port, and battery latch.</p>
|
|
24
|
+
</canvas>
|
|
25
|
+
<figcaption id="orbit-title">Sensor Node X2 assembly</figcaption>
|
|
26
|
+
<div class="scene-controls" role="group" aria-label="Viewpoint controls">
|
|
27
|
+
<button type="button" data-view="front">Front view</button>
|
|
28
|
+
<button type="button" data-view="ports">Port detail</button>
|
|
29
|
+
<button type="button" aria-pressed="false" data-action="pause">Pause rotation</button>
|
|
30
|
+
</div>
|
|
31
|
+
</figure>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- **Overlay `inert` background handling:** when a modal dialog or inspector opens above an interactive canvas or WebGL scene, apply `inert` to the background canvas shell (or use `<dialog showModal()>`) so Tab focus, keyboard shortcuts, and screen-reader virtual cursors cannot fall into obscured scene controls behind the overlay; restore focus to the trigger on close.
|
|
35
|
+
- **Static & failure fallback:** provide a crisp static poster/SVG or structured table when WebGL context is lost, GPU acceleration is disabled, or `prefers-reduced-motion: reduce` is active.
|
|
36
|
+
|
|
37
|
+
## Video and audio
|
|
38
|
+
|
|
39
|
+
- Include `<track kind="captions">` for speech and meaningful non-speech sound cues, `<track kind="descriptions">` (or synced audio description) when visual-only information is essential, and a text transcript for informational recordings:
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<video controls preload="metadata" poster="/media/demo-poster.webp">
|
|
43
|
+
<source src="/media/demo.mp4" type="video/mp4">
|
|
44
|
+
<track kind="captions" src="/media/demo-en.vtt" srclang="en" label="English" default>
|
|
45
|
+
<track kind="descriptions" src="/media/demo-desc-en.vtt" srclang="en" label="Audio descriptions">
|
|
46
|
+
</video>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- Never autoplay audio without explicit user intent; ambient muted background video must pause under `prefers-reduced-motion: reduce` and expose a visible, keyboard-reachable Pause/Play control whenever playback exceeds 5 seconds.
|
|
50
|
+
- Preserve native or accessible custom controls with visible focus, `≥ 24×24` CSS px (`44pt`/`48dp` touch) targets, and `Label in Name` parity.
|
|
51
|
+
|
|
52
|
+
## Verification checklist
|
|
53
|
+
|
|
54
|
+
- Emulate `prefers-reduced-motion: reduce` and `prefers-reduced-transparency: reduce` and confirm every state change and glass overlay stays clear (`rendered`).
|
|
55
|
+
- Disable WebGL / force context loss (`WEBGL_lose_context`) and confirm fallback DOM/poster communicates core content (`rendered`).
|
|
56
|
+
- Open any overlay above canvas/video and Tab through the page to confirm `inert` / `showModal()` traps focus cleanly (`rendered`).
|
|
57
|
+
- Verify `<track kind="captions">` renders readable captions at 200% zoom and no content flashes `> 3/s` or animates unpausably `> 5s` (`rendered`).
|