@thanhnguyxn/pixelcraft 0.1.0 → 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 +1 -1
- package/.antigravity-plugin/plugin.json +32 -0
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +15 -4
- 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/README.md +185 -328
- package/SECURITY.md +28 -0
- package/assets/pixelcraft-logo-128.png +0 -0
- package/assets/pixelcraft-logo-256.png +0 -0
- package/bin/pixelcraft.mjs +431 -23
- package/docs/ARCHITECTURE.md +40 -37
- package/docs/DESIGN-RATIONALE.md +51 -3
- package/docs/INSTALL.md +221 -0
- package/evals/README.md +16 -6
- package/evals/fixtures/3d-web-engineering.json +69 -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/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/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/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-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/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/pixelcraft-accessibility.md +17 -0
- package/evals/pixelcraft-craft.md +16 -0
- package/evals/pixelcraft-dataviz.md +3 -3
- package/evals/pixelcraft-direction.md +17 -0
- package/evals/pixelcraft-game-ui.md +3 -3
- package/evals/pixelcraft-mobile.md +3 -3
- package/evals/pixelcraft-patterns.md +16 -0
- package/evals/pixelcraft-plan.md +65 -3
- package/evals/pixelcraft-review.md +3 -3
- package/evals/pixelcraft-visual-qa.md +11 -5
- package/evals/pixelcraft-web.md +21 -3
- package/evals/pixelcraft.md +4 -4
- package/gemini-extension.json +3 -2
- package/install.ps1 +57 -11
- package/install.sh +82 -7
- package/package.json +32 -4
- package/plugin.json +6 -1
- package/scripts/build-adapters.mjs +11 -13
- package/scripts/run-evals.mjs +397 -0
- package/scripts/sync-docs.mjs +381 -0
- package/scripts/test-build-adapters.mjs +14 -1
- package/scripts/test-cross-platform-qa.mjs +359 -0
- package/scripts/test-distribution.mjs +86 -7
- package/scripts/test-export-tokens.mjs +259 -3
- package/scripts/test-finish-gate.mjs +133 -10
- package/scripts/test-installers.mjs +155 -6
- package/scripts/test-shoot.mjs +23 -1
- package/scripts/test-slop-scan.mjs +390 -3
- package/scripts/test-style-inventory.mjs +23 -0
- package/scripts/test-sync-docs.mjs +140 -0
- package/scripts/test-validate-skills.mjs +82 -4
- package/scripts/validate-skills.mjs +149 -3
- package/skills/pixelcraft/SKILL.md +67 -47
- package/skills/pixelcraft/references/design-brief.md +2 -2
- package/skills/pixelcraft/references/floor.md +36 -19
- package/skills/pixelcraft/references/report-template.md +25 -11
- package/skills/pixelcraft/references/stack-detection.md +138 -67
- package/skills/pixelcraft/references/surface-acceptance.md +33 -21
- package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
- package/skills/pixelcraft-accessibility/SKILL.md +34 -13
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
- package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
- package/skills/pixelcraft-accessibility/references/verification.md +15 -10
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
- package/skills/pixelcraft-brandkit/SKILL.md +42 -30
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
- package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
- package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
- package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
- package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
- package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
- 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 +12 -6
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
- package/skills/pixelcraft-constrained/SKILL.md +21 -20
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
- package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
- package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
- package/skills/pixelcraft-craft/SKILL.md +29 -15
- package/skills/pixelcraft-craft/references/color.md +62 -6
- package/skills/pixelcraft-craft/references/layout.md +32 -0
- package/skills/pixelcraft-craft/references/motion.md +99 -12
- package/skills/pixelcraft-craft/references/typography.md +48 -9
- package/skills/pixelcraft-data-apps/SKILL.md +50 -31
- package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
- package/skills/pixelcraft-data-apps/references/dash.md +87 -31
- package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
- package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
- package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
- package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
- package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
- package/skills/pixelcraft-data-apps/references/panel.md +69 -23
- package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
- package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
- package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
- package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
- package/skills/pixelcraft-dataviz/SKILL.md +21 -24
- package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
- package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
- package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
- package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
- package/skills/pixelcraft-desktop/SKILL.md +61 -39
- package/skills/pixelcraft-desktop/references/appkit.md +60 -26
- package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
- package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
- package/skills/pixelcraft-desktop/references/electron.md +68 -26
- package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
- package/skills/pixelcraft-desktop/references/gtk.md +74 -31
- package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
- package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
- package/skills/pixelcraft-desktop/references/tauri.md +80 -24
- package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
- package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
- package/skills/pixelcraft-desktop/references/working-context.md +82 -3
- package/skills/pixelcraft-direction/SKILL.md +48 -82
- package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
- package/skills/pixelcraft-direction/references/direction-card.md +11 -1
- package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
- package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
- package/skills/pixelcraft-direction/references/movements.md +3 -0
- package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
- package/skills/pixelcraft-document/SKILL.md +27 -23
- package/skills/pixelcraft-document/references/archetypes.md +27 -4
- package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
- package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
- package/skills/pixelcraft-document/references/print-css.md +96 -43
- package/skills/pixelcraft-document/references/slides.md +123 -27
- package/skills/pixelcraft-email/SKILL.md +42 -20
- package/skills/pixelcraft-email/references/client-quirks.md +101 -33
- package/skills/pixelcraft-email/references/html-tables.md +83 -22
- package/skills/pixelcraft-email/references/maizzle.md +54 -0
- package/skills/pixelcraft-email/references/mjml.md +13 -11
- package/skills/pixelcraft-email/references/react-email.md +76 -34
- package/skills/pixelcraft-extensions/SKILL.md +32 -27
- package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
- package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
- package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
- package/skills/pixelcraft-extensions/references/raycast.md +90 -11
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
- package/skills/pixelcraft-game-ui/SKILL.md +45 -26
- package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
- package/skills/pixelcraft-game-ui/references/godot.md +100 -27
- package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
- package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
- package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
- package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
- package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
- package/skills/pixelcraft-handoff/SKILL.md +14 -13
- package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
- package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
- package/skills/pixelcraft-media/SKILL.md +20 -23
- package/skills/pixelcraft-media/references/banners-video.md +83 -65
- package/skills/pixelcraft-media/references/og-generation.md +110 -63
- package/skills/pixelcraft-media/references/social-cards.md +57 -58
- package/skills/pixelcraft-mobile/SKILL.md +53 -36
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
- package/skills/pixelcraft-mobile/references/flet.md +53 -26
- package/skills/pixelcraft-mobile/references/flutter.md +76 -32
- package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
- package/skills/pixelcraft-mobile/references/kivy.md +54 -31
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
- 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 +66 -31
- package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
- package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
- package/skills/pixelcraft-mobile/references/uikit.md +57 -23
- package/skills/pixelcraft-patterns/SKILL.md +30 -13
- 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 +32 -13
- 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 +35 -16
- package/skills/pixelcraft-patterns/references/communication.md +34 -15
- package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
- package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
- package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
- package/skills/pixelcraft-patterns/references/marketing.md +31 -19
- 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 +8 -2
- 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/settings.md +40 -12
- package/skills/pixelcraft-plan/SKILL.md +54 -18
- 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 +44 -9
- package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
- package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
- package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
- package/skills/pixelcraft-review/SKILL.md +41 -19
- package/skills/pixelcraft-review/references/audit-report.md +20 -1
- package/skills/pixelcraft-review/references/heuristics.md +63 -18
- package/skills/pixelcraft-review/references/personas.md +41 -14
- package/skills/pixelcraft-review/references/polish.md +66 -26
- package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
- package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
- package/skills/pixelcraft-spatial/SKILL.md +16 -17
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
- package/skills/pixelcraft-spatial/references/platforms.md +123 -53
- package/skills/pixelcraft-tokens/SKILL.md +18 -14
- package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
- package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
- package/skills/pixelcraft-tokens/references/format.md +39 -9
- package/skills/pixelcraft-tokens/references/governance.md +1 -1
- package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
- package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
- package/skills/pixelcraft-tui/SKILL.md +41 -25
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
- package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
- package/skills/pixelcraft-tui/references/ink.md +77 -28
- package/skills/pixelcraft-tui/references/ratatui.md +70 -30
- package/skills/pixelcraft-tui/references/rich.md +53 -33
- package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
- package/skills/pixelcraft-tui/references/textual.md +75 -34
- package/skills/pixelcraft-ux/SKILL.md +22 -12
- package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
- package/skills/pixelcraft-ux/references/forms.md +57 -3
- package/skills/pixelcraft-ux/references/i18n.md +50 -12
- package/skills/pixelcraft-ux/references/laws.md +35 -14
- package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
- package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
- package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
- package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
- package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -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 +50 -11
- package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
- package/skills/pixelcraft-web/SKILL.md +105 -49
- package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
- package/skills/pixelcraft-web/references/angular.md +63 -16
- package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
- package/skills/pixelcraft-web/references/astro.md +64 -13
- 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 +52 -17
- 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/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 +3 -2
- package/skills/pixelcraft-web/references/gsap.md +102 -0
- package/skills/pixelcraft-web/references/html-css.md +144 -12
- package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
- 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 +27 -18
- package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
- package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
- package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
- 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 +6 -1
- package/skills/pixelcraft-web/references/qwik.md +51 -11
- package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
- package/skills/pixelcraft-web/references/react-next.md +112 -13
- 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/scene-architecture.md +132 -0
- package/skills/pixelcraft-web/references/server-rendered.md +106 -63
- 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 +67 -16
- 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 +61 -11
- package/skills/pixelcraft-web/references/tailwind.md +40 -14
- package/skills/pixelcraft-web/references/video-media.md +69 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
- package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
|
@@ -12,18 +12,60 @@ Classify both the project (greenfield, brownfield or hybrid) and the requested c
|
|
|
12
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
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
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
|
+
|
|
15
57
|
## Check before advancing
|
|
16
58
|
|
|
17
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.
|
|
18
60
|
|
|
19
61
|
| Phase | Exit evidence |
|
|
20
62
|
|---|---|
|
|
21
|
-
| 0. Plan | Record the task route, scoped requirements, stack/version decision, applicable platform and reference, and
|
|
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. |
|
|
22
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. |
|
|
23
|
-
| 2. Diverge | Record the
|
|
24
|
-
| 3. Specify | Record the direction card
|
|
25
|
-
| 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, simulated production outcomes, or unapproved dependency changes as delivery. |
|
|
26
|
-
| 5. Verify |
|
|
27
|
-
| 6. Report |
|
|
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. |
|
|
28
70
|
|
|
29
|
-
Use the standard evidence labels. Explain why a branch is not applicable rather than marking it as passed; reserve `waived` for explicit user authorization. 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.
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
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, semantic structure, keyboard/focus operability,
|
|
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
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -12,22 +12,43 @@ Accessibility is a floor built during design, not a final repair pass. Meet the
|
|
|
12
12
|
|
|
13
13
|
## References
|
|
14
14
|
|
|
15
|
-
- Read [references/wcag22-checks.md](references/wcag22-checks.md) for the concrete WCAG 2.2 AA floor and
|
|
16
|
-
- Read [references/apg-patterns.md](references/apg-patterns.md) before implementing or reviewing
|
|
17
|
-
- Read [references/platforms.md](references/platforms.md) when translating the floor to web, iOS, Android, Flutter/React Native, data apps, desktop, TUI, email, or game UI.
|
|
18
|
-
- Read [references/
|
|
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 |
|
|
19
30
|
|
|
20
31
|
## Core rules
|
|
21
32
|
|
|
22
|
-
1. Use native semantic controls
|
|
23
|
-
2. Composite widgets need a complete interaction contract: role/state/value, keyboard/controller input, focus entry/exit/restoration, activation/selection semantics, async behavior, and
|
|
24
|
-
3. Every meaningful control has a persistent name/label
|
|
25
|
-
4. Test task completion—not just component presence—with keyboard only, screen reader where available, text scaling, dark/high contrast, reduced motion,
|
|
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.
|
|
26
37
|
5. Never encode meaning by color alone; pair color with text, shape, icon, pattern, position, or state language.
|
|
27
|
-
6. Do not disable zoom/text scaling or block paste/password managers/autofill.
|
|
28
|
-
7. Motion, audio, flashing, vibration, and timed behavior need safe alternatives
|
|
29
|
-
8. Localization and accessibility overlap: expanded strings, RTL/bidi,
|
|
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).
|
|
30
42
|
|
|
31
43
|
## Verification honesty
|
|
32
44
|
|
|
33
|
-
WCAG
|
|
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.
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
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
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
|
+
|
|
5
18
|
## Core matrix
|
|
6
19
|
|
|
7
20
|
| Pattern | Required behavior highlights | Common failure |
|
|
@@ -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`).
|
|
@@ -23,20 +23,22 @@ Evidence: Apple HIG, Material, WCAG, generated-code accessibility research.
|
|
|
23
23
|
- Use sp for text and dp for layout; preserve scaling. Touch baseline 48×48 dp.
|
|
24
24
|
- Support keyboard/d-pad/controller focus, predictive back, color contrast, reduced animation, magnification, switch access, and autofill.
|
|
25
25
|
|
|
26
|
-
## Flutter / React Native
|
|
26
|
+
## Flutter / React Native / LynxJS
|
|
27
27
|
|
|
28
28
|
- Flutter: Semantics widgets/labels/liveRegion/button/header flags; test TalkBack/VoiceOver rather than trusting compile-time semantics. TextScaler and focus traversal must survive custom painters.
|
|
29
29
|
- React Native: accessibilityRole/Label/State/Hint, importantForAccessibility, accessibilityLiveRegion; native components first. Do not strip focus or rely on nested text hacks.
|
|
30
|
+
- LynxJS: set native accessibility attributes (`accessibility-element`, `accessibility-label`, `accessibility-traits`) on interactive views so VoiceOver/TalkBack receive real native traits rather than opaque host containers.
|
|
30
31
|
|
|
31
32
|
## Data-app UIs
|
|
32
33
|
|
|
33
|
-
Streamlit
|
|
34
|
+
marimo, Solara, Mesop, Taipy, Streamlit, Gradio, Reflex, NiceGUI, Dash, Panel, Shiny, Jupyter widgets/anywidget, R Shiny, Genie, Observable Framework, and Evidence expose varying semantic control. Inspect actual rendered DOM/native output where possible; label every input/filter, preserve keyboard traversal across reactive reruns, avoid canvas/image-only outputs, provide data-table/text alternatives for charts, and record framework accessibility limits honestly.
|
|
34
35
|
|
|
35
36
|
## Desktop
|
|
36
37
|
|
|
37
|
-
- Qt/QML/PySide: accessible names/descriptions/roles where exposed; keyboard focus chain, shortcuts/mnemonics, platform high-contrast themes, scalable fonts. Test NVDA/JAWS/Narrator/
|
|
38
|
-
- Electron/Tauri are web inside but must also honor desktop keyboard/window conventions.
|
|
39
|
-
-
|
|
38
|
+
- Qt/QML/PySide: accessible names/descriptions/roles where exposed; keyboard focus chain, shortcuts/mnemonics, platform high-contrast themes, scalable fonts. Test NVDA/JAWS/Narrator/Orca/VoiceOver by platform where possible.
|
|
39
|
+
- Electron/Tauri are web inside but must also honor desktop keyboard/window conventions (menu bar, focus return after closing dialogs/windows, OS reduced-motion and high-contrast themes).
|
|
40
|
+
- **Rust GUIs & AccessKit:** egui, iced, Slint, GPUI, Dioxus Desktop, and Bevy UI should expose semantic trees through **AccessKit** (bridging natively to Windows UI Automation, macOS NSAccessibility, and Linux AT-SPI); never ship custom-painted desktop controls invisible to platform screen readers.
|
|
41
|
+
- WinUI/WPF/AppKit/GTK/Avalonia/Uno: use native accessibility APIs/control patterns; never draw custom controls without exposing UI Automation/Accessibility/AT-SPI equivalents.
|
|
40
42
|
|
|
41
43
|
## TUI
|
|
42
44
|
|
|
@@ -50,9 +52,35 @@ Streamlit/Gradio/Reflex/NiceGUI/Dash/Panel/Shiny/Jupyter widgets/R Shiny/Genie/O
|
|
|
50
52
|
- Semantic heading structure where clients permit, real text rather than image-only copy, meaningful alt text, table roles/layout isolation, visible focus, sufficient contrast, dark-mode resilience, plaintext parity, and no tiny clustered tap targets.
|
|
51
53
|
- Do not depend on background images, custom fonts, animation, forms, or exact pixel layout.
|
|
52
54
|
|
|
55
|
+
## Documents and PDF/UA
|
|
56
|
+
|
|
57
|
+
- Export tagged PDFs conforming to **PDF/UA** (ISO 14289): logical reading order, real heading hierarchy (`H1`–`H6`), language tag (`/Lang`), table headers (`TH` + `Scope`), alt text on figures, and artifact tagging on decorative headers/footers/page rules.
|
|
58
|
+
- Never rasterize text or tables into flat images inside PDFs or slide decks; verify selectable text and reading order with `pdftotext` and accessibility tag inspection.
|
|
59
|
+
|
|
60
|
+
## Chat UI and Mini-Apps
|
|
61
|
+
|
|
62
|
+
- Author concise, self-contained fallback text (`text` / notification preview) alongside rich cards/blocks so screen readers, watch notifications, and compact clients convey full meaning.
|
|
63
|
+
- Respect host modal/form focus management, avoid emoji-only button labels, and keep payload structures shallow so keyboard/assistive users do not traverse dozens of redundant dividers.
|
|
64
|
+
|
|
65
|
+
## Extensions and Plugins
|
|
66
|
+
|
|
67
|
+
- **Shadow DOM focus crossing:** in browser content-script overlays using closed/open Shadow DOM, enable `delegatesFocus: true` where appropriate, manage `Tab`/`Shift+Tab` boundaries cleanly, and ensure `aria-labelledby`/`aria-describedby` references stay within the same shadow root (IDREFs do not cross shadow boundaries natively without Element Internals/ARIA Reflection).
|
|
68
|
+
- **Host integration:** honor host theme/high-contrast tokens (VS Code `--vscode-*`, Figma, Raycast), avoid colliding with host keyboard shortcuts, and keep popups/sidebars operable at 200% zoom.
|
|
69
|
+
|
|
70
|
+
## Spatial / XR
|
|
71
|
+
|
|
72
|
+
- Support gaze + pinch, hand tracking, controller pointer, voice commands, and dwell/switch alternatives; never require sustained arm elevation (“gorilla arm”) or wide physical head rotation for routine tasks.
|
|
73
|
+
- Size targets generously (`≥ 60 pt` angular equivalent at comfortable viewing distance), maintain high foreground contrast against variable passthrough environments via adaptive backing/scrims, and provide comfort-mode/reduced-motion alternatives (snap turn, teleport, disable world-locked drift).
|
|
74
|
+
|
|
75
|
+
## Constrained surfaces (TV, Wearables, E-Ink, Kiosk, Automotive)
|
|
76
|
+
|
|
77
|
+
- **TV / 10-foot UI:** unmistakable focus highlight (`≥ 3:1` + scale/outline) for directional D-pad navigation, logical 2D spatial focus map, legible distance typography, and closed-caption controls.
|
|
78
|
+
- **Wearables / E-Ink:** glanceable high-contrast typography, large tap/crown/bezel targets, minimal nested scrolling, and crisp non-color indicators on monochrome e-ink displays.
|
|
79
|
+
- **Kiosk / Hardware:** physical reach/height ergonomics, audio jack/screen-reader mode where mandated, generous timeout extension prompts, and zero silent dead-ends.
|
|
80
|
+
|
|
53
81
|
## Game UI
|
|
54
82
|
|
|
55
83
|
- Subtitles/captions: speaker, sound cues where useful, size/background/contrast controls.
|
|
56
84
|
- Input remapping, hold/toggle options, sensitivity/dead zones, controller/keyboard/mouse parity, no mandatory rapid repeated input where avoidable.
|
|
57
85
|
- Colorblind-safe team/status differentiation using shape/icon/text; scalable HUD; screenreader/menu narration where platform supports it.
|
|
58
|
-
- Photosensitivity: avoid high-frequency flashes; provide reduction options. Motion sickness settings for camera/UI movement.
|
|
86
|
+
- Photosensitivity: avoid high-frequency flashes (`≤ 3 flashes/s`); provide reduction options. Motion sickness settings for camera/UI movement.
|
|
@@ -2,22 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Evidence: WCAG, axe-core, generated-code accessibility repair research.
|
|
4
4
|
|
|
5
|
-
## Automated evidence (`
|
|
5
|
+
## Automated evidence (`rendered` in live browser/emulator vs. `static` in source)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
|
13
|
-
|
|
7
|
+
Distinguish where the tool executes when assigning Pixelcraft evidence labels:
|
|
8
|
+
|
|
9
|
+
- **Browser/renderer-executed scans** (`@axe-core/playwright`, Storybook `@storybook/addon-a11y`, Lighthouse accessibility, Playwright `toMatchAriaSnapshot()`, Xcode Accessibility Inspector, Android Accessibility Scanner) inspect a live rendered DOM or platform accessibility tree → label **`rendered` (automated subset — not manual proof)**.
|
|
10
|
+
- **Source linters and static scanners** (`eslint-plugin-jsx-a11y`, `svelte-check`, `slop-scan.mjs`, template AST checks) inspect source files without rendering → label **`static`**.
|
|
11
|
+
|
|
12
|
+
| Tool / surface | Evidence label | Detects | Does not prove |
|
|
13
|
+
|---|---|---|---|
|
|
14
|
+
| `@axe-core/playwright` / live axe-core scan | `rendered` (automated subset) | missing labels/names, computed contrast, invalid ARIA, landmarks, duplicate IDs in real browser states | task usability, logical focus order, meaningful copy, screen-reader ergonomics |
|
|
15
|
+
| Playwright `toMatchAriaSnapshot()` | `rendered` (regression) | unintended accessibility-tree role/name/hierarchy regressions across states | visual contrast, focus visibility, or whether the snapshot itself is good UX |
|
|
16
|
+
| Storybook `@storybook/addon-a11y` | `rendered` (isolated component) | per-variant/state axe violations during component development | page-level landmark hierarchy, keyboard focus restoration across flows |
|
|
17
|
+
| `eslint-plugin-jsx-a11y` / static scanners | `static` | missing `alt`/labels, click-on-div without keyboard handler, banned patterns at edit time | computed contrast, CSS hiding/occlusion, runtime focus management |
|
|
18
|
+
| Accessibility Inspector (Xcode) / Accessibility Scanner (Android) | `rendered` (automated subset) | native accessibility tree, touch target size, label/trait audits | real VoiceOver/TalkBack task completion |
|
|
14
19
|
|
|
15
20
|
Automated zero means “no detected violations in scanned scope,” never “accessible.”
|
|
16
21
|
|
|
17
22
|
## Manual protocol
|
|
18
23
|
|
|
19
24
|
1. Keyboard/controller only: complete primary task (stopping before final payment or other irreversible commit unless running in an explicitly isolated sandbox, mock, or test mode), reverse direction, close/escape, recover after error.
|
|
20
|
-
2. Screen reader: inspect name/role/value/order/status/error/form behavior. Use the platform pairing realistically (NVDA/JAWS+Chrome/Edge, VoiceOver+Safari/iOS, TalkBack+Android/Chrome,
|
|
25
|
+
2. Screen reader: inspect name/role/value/order/status/error/form behavior. Use the platform pairing realistically (NVDA/JAWS+Chrome/Edge, VoiceOver+Safari/iOS, TalkBack+Android/Chrome, Orca+Linux).
|
|
21
26
|
3. Zoom/reflow/text scaling: 200% or platform largest text where practical; verify clipping/overlap/truncation.
|
|
22
27
|
4. Visual modes: dark/light/high contrast/increased contrast/forced colors; inspect state boundaries and focus.
|
|
23
28
|
5. Input modalities: touch target one-hand, keyboard, mouse, controller/switch/voice where applicable.
|
|
@@ -27,7 +32,7 @@ Automated zero means “no detected violations in scanned scope,” never “acc
|
|
|
27
32
|
|
|
28
33
|
## Reporting language
|
|
29
34
|
|
|
30
|
-
Use:
|
|
35
|
+
Use: “`eslint-plugin-jsx-a11y` passed on `<scope>` `static`; `@axe-core/playwright` scan of rendered checkout states reported zero violations `rendered` (automated subset); keyboard checkout flow verified up to final payment confirmation `rendered`; live payment submission `not-checked` (no isolated sandbox/test mode); VoiceOver screen-reader walkthrough `not-checked`.”
|
|
31
36
|
|
|
32
37
|
Never use: “WCAG compliant” unless the full scoped conformance process actually happened and legal/conformance language is intended.
|
|
33
38
|
|
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Primary source; new-criteria overview. This is a practical floor, not legal certification.
|
|
4
4
|
|
|
5
|
+
## Regulatory & standards scope
|
|
6
|
+
|
|
7
|
+
WCAG 2.2 AA is Pixelcraft's mandatory engineering floor (not legal certification; escalate formal compliance to legal/accessibility counsel):
|
|
8
|
+
|
|
9
|
+
- **EU European Accessibility Act (EAA, effective June 28, 2025)** & **EN 301 549:** covers consumer digital products, e-commerce, banking, transport, e-books, and communications sold in the EU (referencing WCAG 2.1/2.2 AA + non-web software/document requirements).
|
|
10
|
+
- **US ADA Title II (compliance deadlines starting April 24, 2026 for larger state/local public entities, April 2027 for smaller entities):** mandates WCAG 2.1 AA minimum (meeting WCAG 2.2 AA satisfies and exceeds 2.1 AA).
|
|
11
|
+
- **APCA / WCAG 3.0 cross-reference:** keep WCAG 2.2 AA luminance ratios (`4.5:1` / `3:1`) as the normative legal floor, and pair them with **APCA (`|Lc|`)** perceptual contrast checks (see `pixelcraft-craft`) to catch dark-mode halation and thin-weight legibility defects as WCAG 3.0 matures.
|
|
12
|
+
|
|
5
13
|
## Perceivable
|
|
6
14
|
|
|
7
|
-
- Text contrast: 4.5:1 normal, 3:1 large; non-text UI/icons 3:1 unless exempt. Check states, placeholders,
|
|
15
|
+
- Text contrast: `4.5:1` normal, `3:1` large; non-text UI/icons `3:1` unless exempt. Check states, placeholders, focus indicators, diagrams/charts, and composited translucency. Supplement with APCA `|Lc|` checks on dark surfaces.
|
|
8
16
|
- Resize/reflow: 200% zoom/text scaling and 320 CSS px-equivalent width without two-dimensional scrolling or loss of content/function, subject to exceptions.
|
|
17
|
+
- **1.4.12 Text Spacing:** layout survives user overrides of line height ≥ `1.5×` font size, paragraph spacing ≥ `2×`, letter spacing ≥ `0.12×`, and word spacing ≥ `0.16×` with zero clipping, overlap, or lost controls.
|
|
18
|
+
- **1.4.13 Content on Hover or Focus:** tooltips, hovercards, and submenus triggered by hover/focus must be **dismissible** (`Esc` without moving pointer/focus), **hoverable** (pointer can move onto the revealed content without it vanishing), and **persistent** until the user dismisses or moves away.
|
|
9
19
|
- Meaning does not depend on color, shape, position, sound, or sensory characteristic alone.
|
|
10
|
-
- Media: captions/subtitles, transcripts/audio description as applicable; no flashing above safe thresholds.
|
|
20
|
+
- Media: captions/subtitles, transcripts/audio description as applicable; no flashing above safe thresholds (`≤ 3 flashes/s`).
|
|
11
21
|
- Content adapts orientation unless essential; meaningful images have appropriate alternative text or are marked decorative.
|
|
12
22
|
|
|
13
23
|
## Operable
|
|
@@ -15,11 +25,14 @@ Primary source; new-criteria overview. This is a practical floor, not legal cert
|
|
|
15
25
|
| Criterion | Concrete check |
|
|
16
26
|
|---|---|
|
|
17
27
|
| keyboard/focus | every action reachable/operable; no keyboard trap; visible focus with sufficient contrast |
|
|
18
|
-
| 2.4
|
|
28
|
+
| **2.1.4 Character Key Shortcuts** | single-character shortcuts (`j`, `k`, `/`, `?`) can be turned off, remapped, or are active only while a relevant component has focus |
|
|
29
|
+
| **2.4.11 Focus Not Obscured (AA)** & **2.4.12 (Enhanced, AAA)** | sticky headers, banners, overlays, keyboards, and floating actions never hide the focused component (AA: not *entirely* hidden; AAA 2.4.12: *no part* obscured—prefer 2.4.12 via `scroll-margin-block`) |
|
|
30
|
+
| **2.4.13 Focus Appearance (AAA target)** | recommended focus ring geometry: enclosing area at least equivalent to a `2px` perimeter with `≥ 3:1` contrast change between unfocused and focused pixels |
|
|
19
31
|
| bypass/navigation | skip/landmarks/headings or platform equivalent; logical reading/focus order; meaningful page/screen titles |
|
|
20
32
|
| link/control purpose | destination/action understandable in context; avoid repeated vague names |
|
|
21
|
-
| 2.5.
|
|
22
|
-
| 2.5.
|
|
33
|
+
| **2.5.3 Label in Name** | accessible name (`aria-label`, `alt`, computed name) contains the exact visible text label (ideally starting with it) so Voice Control / speech-input users can say what they see |
|
|
34
|
+
| **2.5.7 Dragging Movements** | every dragging movement has a single-pointer alternative (buttons, menu, keyboard, direct input) |
|
|
35
|
+
| **2.5.8 Target Size (Minimum)** | web AA minimum `24×24` CSS px unless spacing/inline/essential/user-agent exception applies; native touch baselines are larger (`44pt` iOS / `48dp` Android) |
|
|
23
36
|
| gestures/motion | multipoint/path gestures have simple alternatives; motion actuation can be disabled/substituted |
|
|
24
37
|
| timing | user can extend/disable/control nonessential time limits; no unexpected context change on input/focus |
|
|
25
38
|
|
|
@@ -64,3 +77,23 @@ Use short repeatable scripts rather than vague manual inspection:
|
|
|
64
77
|
4. **Dragging alternative script:** identify every drag interaction, complete the same outcome using its single-pointer/keyboard alternative, cancel midway, and verify state/announcement.
|
|
65
78
|
5. **Error recovery script:** submit invalid input, correct only one field, verify prompt revalidation, preserved input, summary freshness, and focus behavior.
|
|
66
79
|
6. **Scaling script:** set 200% text/zoom or platform-large text, complete the task in light/dark/high-contrast modes, and inspect clipping, overlap, target size, and focus visibility.
|
|
80
|
+
|
|
81
|
+
## Sticky and fixed chrome focus-unobscured remediation (`WCAG 2.4.11` / `2.4.12`)
|
|
82
|
+
|
|
83
|
+
Sticky headers, floating action bars, bottom tab/composer bars, cookie/consent banners, and software keyboards routinely hide controls reached via `Tab` or `Shift+Tab`. Enforce unobscured focus (`2.4.12` zero-occlusion target; `2.4.11` AA floor) structurally across platforms:
|
|
84
|
+
|
|
85
|
+
| Platform | Structural remediation pattern |
|
|
86
|
+
|---|---|
|
|
87
|
+
| **Web CSS / DOM** | Declare `scroll-padding-top` and `scroll-padding-bottom` on the scrolling container (`html` or overflow pane) matching tokenized sticky chrome heights (`scroll-padding-block: calc(var(--sticky-header-h, 0px) + 12px) calc(var(--sticky-footer-h, 0px) + 12px);`), and set `scroll-margin-block` on anchor targets. Dismiss or reserve flow space for consent/cookie banners so they never float over focused fields. |
|
|
88
|
+
| **SwiftUI / UIKit** | Mount persistent bars with `.safeAreaInset(edge: .top / .bottom)` rather than uncompensated `ZStack` overlays so `ScrollView` and keyboard avoidance automatically inset focusable bounds; pair `@FocusState` with `ScrollViewReader` when custom chrome changes height dynamically. |
|
|
89
|
+
| **Jetpack Compose / Android** | Pass `Scaffold` `innerPadding` into scrollable containers, apply `Modifier.imePadding()` + `WindowInsets.safeDrawing`, and use `BringIntoViewRequester` on custom focusable rows so focused inputs clear bottom sheets and keyboards completely. |
|
|
90
|
+
| **Desktop / TUI / Game UI** | Subtract pinned toolbar/status-bar dimensions from scroll-into-view calculations (Qt `QScrollArea::ensureWidgetVisible`, WinUI/WPF/Avalonia `BringIntoView`, TUI/HUD viewport row clamping on keyboard/controller focus step). |
|
|
91
|
+
|
|
92
|
+
## European Accessibility Act (`EAA` / `EN 301 549`) production readiness
|
|
93
|
+
|
|
94
|
+
For B2C digital products, e-commerce checkouts, consumer banking/fintech, passenger transport services, e-books, and communications serving EU users, technical `WCAG 2.2 AA` / `EN 301 549` conformance must be paired with operational release readiness (escalating final legal sign-off to counsel):
|
|
95
|
+
|
|
96
|
+
1. **Public Accessibility Statement:** link persistently from global navigation, footer, app settings, or store listing; state the applied technical standard (`EN 301 549` / `WCAG 2.2 AA`), publication/review date, and honest conformance status (`fully`, `partially`, or `non-conformant`).
|
|
97
|
+
2. **Known limitations & accessible workarounds:** explicitly list any unresolved third-party embeds, archival documents, or exempted media alongside a concrete alternative path to complete the same user task.
|
|
98
|
+
3. **Assistive-technology verification matrix:** document the real OS, browser/runtime, keyboard, text-zoom (`200%`), and screen-reader combinations actually tested (`VoiceOver`, `NVDA`, `TalkBack`, `Narrator`, `Orca`); mark unverified combinations `not-checked` rather than implying universal certification.
|
|
99
|
+
4. **Accessible feedback & escalation channel:** provide a barrier-free contact mechanism (accessible form/email/support route free of cognitive CAPTCHAs) with expected response timing and jurisdiction-appropriate enforcement/ombudsman contact placeholders for the product owner to populate.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pixelcraft-brandkit
|
|
3
|
-
description: Creates
|
|
3
|
+
description: Creates art-directed brand-kit and identity-board image generation briefs for brand kits, logo systems, brand guidelines, moodboards, identity decks, visual-world presentations, launch identities, logo concepts, palette/type systems, and implementation-ready brand direction. Use when a user asks for a brand kit, identity board, moodboard, logo system, brand guidelines image, visual identity, rebrand, refresh, or brand mockup board.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -8,35 +8,35 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Pixelcraft Brandkit
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Construct coherent, art-directed brand-kit and identity-board image briefs grounded in brand strategy, symbolic reduction, disciplined grids, and production usability.
|
|
12
12
|
|
|
13
|
-
Do **not** generate generic logos,
|
|
13
|
+
Do **not** generate generic logos, uncoordinated mockups, or cluttered AI moodboards. Build one repeatable identity system in a single structured board.
|
|
14
14
|
|
|
15
15
|
## Core principle
|
|
16
16
|
|
|
17
|
-
A
|
|
17
|
+
A brand kit is a structured visual argument for what the brand stands for, not surface decoration. Every board must answer concretely:
|
|
18
18
|
|
|
19
19
|
1. What does this brand represent?
|
|
20
20
|
2. What is the core metaphor?
|
|
21
|
-
3. How does the
|
|
22
|
-
4. How does the system
|
|
23
|
-
5.
|
|
21
|
+
3. How does the mark express that metaphor cleanly at small and large sizes?
|
|
22
|
+
4. How does the system hold together across UI, print, imagery, and detail?
|
|
23
|
+
5. What single deliberate rule makes the system ownable?
|
|
24
24
|
|
|
25
25
|
## Quality bar and reference DNA
|
|
26
26
|
|
|
27
|
-
Unless the brief
|
|
27
|
+
Unless the brief specifies otherwise, enforce the layout discipline of production identity-guidelines boards:
|
|
28
28
|
|
|
29
|
-
- dark charcoal or
|
|
30
|
-
-
|
|
31
|
-
- restrained density, sparse typography, and
|
|
32
|
-
-
|
|
33
|
-
- browser chrome, app
|
|
34
|
-
- image-led panels with
|
|
35
|
-
- geometric construction diagrams,
|
|
36
|
-
-
|
|
37
|
-
- one
|
|
29
|
+
- deliberate dark charcoal or calibrated light outer canvas;
|
|
30
|
+
- strict grid-based panels with consistent gutters and exact edge alignment;
|
|
31
|
+
- restrained density, sparse legible typography, and generous negative space;
|
|
32
|
+
- cohesive atmosphere and a single simple, memorable mark repeated consistently;
|
|
33
|
+
- realistic touchpoints (browser chrome, app header, terminal frame, physical label, or icon crop) rather than dense fake dashboards;
|
|
34
|
+
- image-led panels with purposeful surface treatments (halftone, paper grain, print registration, or photography) tied to the brand's material world;
|
|
35
|
+
- geometric construction diagrams, hairlines, alignment marks, and sparse index labels;
|
|
36
|
+
- one disciplined accent system repeated across panels without palette drift;
|
|
37
|
+
- one core identity idea per board using identical mark proportions across every panel.
|
|
38
38
|
|
|
39
|
-
References
|
|
39
|
+
References calibrate restraint, proportion, and presentation rhythm—never a fixed skin and never assets to copy.
|
|
40
40
|
|
|
41
41
|
## When to use
|
|
42
42
|
|
|
@@ -52,7 +52,7 @@ Before image generation, determine whether the work is:
|
|
|
52
52
|
|
|
53
53
|
Use the request, earlier context, and supplied assets first. Do not ask again for information already provided. Inspiration or mood references alone do not establish an existing identity; treat them as constraints only when the user identifies them that way.
|
|
54
54
|
|
|
55
|
-
If essential information is missing,
|
|
55
|
+
If essential information is missing, walk unresolved intake items **one focused question at a time** (never bundle 5 questions into a single wall)—covering only what is actually unknown in priority order: (1) create vs. extend vs. refresh scope, (2) existing logo/wordmark & assets to preserve, (3) palette & typography constraints, and (4) visual world & anti-goals. For each question, state why it matters in one sentence, offer 2–4 concrete options leading with **(Recommended)**, and allow free-form / "you decide" / "skip". If required existing assets are unavailable, request them and wait before generation. An explicit refresh/rebrand request takes priority. Existing identity constraints outrank style, palette, and new-logo defaults.
|
|
56
56
|
|
|
57
57
|
## Required workflow
|
|
58
58
|
|
|
@@ -74,13 +74,17 @@ If a new logo is needed or requested, choose one logo method, or combine at most
|
|
|
74
74
|
|
|
75
75
|
Default output is one brand-kit overview image in a `3 × 3` grid, with `4:3` or `16:10` aspect ratio. Honor requested width × height, aspect ratio, orientation, or layout over defaults. Canvas dimensions describe the whole output image, not panel count. If the generator cannot produce exact dimensions, use the closest supported ratio, explain the limitation, and report actual output size; ask only when cropping/resizing materially affects composition.
|
|
76
76
|
|
|
77
|
-
Use `references/layouts.md` for `3×3`, `2×3`, `2×2`, `1×3`, `4×2`, custom layouts, panel rhythm, canvas adaptation, text/tagline/image/mockup/color rules, and
|
|
77
|
+
Use `references/layouts.md` for `3×3`, `2×3`, `2×2`, `1×3`, `4×2`, custom layouts, panel rhythm, canvas adaptation, text/tagline/image/mockup/color rules, and finishing detail rules.
|
|
78
78
|
|
|
79
|
-
### 5. Visual mode and
|
|
79
|
+
### 5. Visual mode, Dual Screen <-> Print color master, and multi-target token export
|
|
80
80
|
|
|
81
|
-
Select the mode in `references/visual-modes.md` based on strategy rather than fashion. Keep one dominant palette: base color, primary accent, optional secondary accent, and neutrals. Accents repeat across panels; no random rainbow; no default purple-blue AI glow unless
|
|
81
|
+
Select the mode in `references/visual-modes.md` based on strategy rather than fashion. Keep one dominant palette: base color, primary accent, optional secondary accent, and neutrals. Accents repeat across panels; no random rainbow; no default purple-blue AI glow unless genuinely justified.
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
For production handoff:
|
|
84
|
+
- Define a **Dual Screen (`OKLCH` + `sRGB HEX` + `Display-P3`) <-> Print (`CMYK` + `Pantone`) color master table**—**never auto-convert vibrant RGB/P3 neons into muddy 4-plate CMYK** without hand-tuned ink formulas (`TAC <= 300%`, `C0 M0 Y0 K100` body black).
|
|
85
|
+
- Author **dedicated small-size optical reductions (`16 px`, `24 px`, `32 px` favicon & social avatar proofs)** with simplified stroke/counter geometry rather than mechanically shrinking a complex hero lockup, plus **real-world application mockups** spanning **business cards, letterhead, slide deck templates, social profiles/cards, and packaging or signage** relevant to the brand.
|
|
86
|
+
- Run a **preliminary trademark & visual-similarity screening** across category competitors and public registries—**explicitly stating in the handoff that preliminary screening is a design-risk check only and does NOT replace formal trademark counsel or legal clearance**.
|
|
87
|
+
- Use the `pixelcraft-tokens` skill to emit **multi-target DTCG `tokens.json` exports** (`CSS` / `Swift` / `Kotlin` / `Desktop`) and attach a **Commercial Font & Asset License Manifest** verifying Webfont pageviews, Mobile App embedding, Server PDF generation, and Desktop redistribution rights.
|
|
84
88
|
|
|
85
89
|
### 6. Prompt and generation
|
|
86
90
|
|
|
@@ -90,17 +94,25 @@ Use supplied references for rhythm, spacing, density, logo placement, image trea
|
|
|
90
94
|
|
|
91
95
|
### 7. QA before delivery
|
|
92
96
|
|
|
93
|
-
Before presenting the result, perform the self-critique in `references/qa-checklist.md`. Check logo consistency across panels,
|
|
97
|
+
Before presenting the result, perform the self-critique in `references/qa-checklist.md`. Check logo consistency across panels, dedicated **`16–32 px` favicon/avatar proofs**, **real-world application mockups** (business cards, letterhead, slides, social, packaging/signage), Dual Screen <-> Print color specs, preliminary trademark-similarity screening note, sparse legible text, panel rhythm, correct use of supplied assets, and commercial license manifest completeness.
|
|
94
98
|
|
|
95
99
|
## Hard rules
|
|
96
100
|
|
|
97
101
|
- Never invent replacements for supplied logos, names, colors, typography, or assets.
|
|
98
102
|
- Never generate long paragraphs, lorem ipsum, dense explanations, unreadable labels, fake tiny UI, or generic corporate slogans.
|
|
99
|
-
- Never copy exact reference logos, names, compositions, slogans, or unique visual assets.
|
|
100
|
-
- Never
|
|
101
|
-
-
|
|
103
|
+
- Never copy exact reference logos, names, compositions, slogans, or unique visual assets, and never imply legal trademark clearance (always pair preliminary similarity screening with an explicit formal-counsel disclaimer).
|
|
104
|
+
- Never auto-convert `sRGB`/`Display-P3` screen neons into muddy auto-profile `CMYK`, and never shrink a complex multi-line hero lockup directly into a `16–32 px` favicon/avatar without an optical reduction proof.
|
|
105
|
+
- Enforce measurable grid geometry, single-mark consistency, real-world application mockups, contrast-verified palettes, multi-target DTCG `tokens.json` export (`CSS`/Swift/Kotlin/Desktop), and a complete **Commercial Font & Asset License Manifest** (Webfont, Mobile App, Server PDF, Desktop redistribution).
|
|
102
106
|
- Report the actual output size/aspect ratio; never promise unsupported dimensions.
|
|
103
|
-
|
|
107
|
+
|
|
108
|
+
## Pre-submit checklist
|
|
109
|
+
|
|
110
|
+
- [ ] Missing intake items resolved one focused question at a time (with concrete options + recommendation); supplied brand assets preserved verbatim.
|
|
111
|
+
- [ ] 2–3 genuinely different brand worlds diverged and scored before generation; losing worlds documented.
|
|
112
|
+
- [ ] Identical mark proportions across panels + **dedicated `16–32 px` (`16 px` / `24 px` / `32 px`) favicon & avatar optical proof** + **real-world application mockups** (business cards, letterhead, slides, social, packaging/signage) verified or flagged `not-checked`.
|
|
113
|
+
- [ ] **Dual Screen (`OKLCH` + `sRGB HEX` + `Display-P3`) <-> Print (`CMYK` + `Pantone`) color master table** + **multi-target DTCG `tokens.json` export** (`CSS`/Swift/Kotlin/Desktop via `pixelcraft-tokens`) prepared.
|
|
114
|
+
- [ ] **Commercial Font & Asset License Manifest** (Webfont, Mobile App, Server PDF, Desktop redistribution + C2PA/AI provenance) and **preliminary trademark-similarity screening note** (explicitly noting it does not replace formal trademark counsel) included.
|
|
115
|
+
- [ ] **Checklist-Until-Passing Stop-Gate (`<HARD-GATE>`):** walk every checklist item above (`references/qa-checklist.md`) + run `slop-scan.mjs --fail-on p2`, `check-contrast.mjs`, `export-tokens.mjs`, rendered `16–32 px` & board inspection, and `check-acceptance.mjs .pixelcraft/acceptance.json` (`pixelcraft-review`) in a `Fix → Re-verify` loop until passing (`0` `fail`/`pending` rows, `rendered` evidence on visual/contrast/small-size legibility per `Rule #0.3`).
|
|
104
116
|
|
|
105
117
|
## Reference routing
|
|
106
118
|
|
|
@@ -111,5 +123,5 @@ Before presenting the result, perform the self-critique in `references/qa-checkl
|
|
|
111
123
|
- Read [references/visual-modes.md](references/visual-modes.md) when selecting the visual world.
|
|
112
124
|
- Read [references/prompt-template.md](references/prompt-template.md) before prompting any image model.
|
|
113
125
|
- Read [references/qa-checklist.md](references/qa-checklist.md) before delivering or selecting a generated result.
|
|
114
|
-
- Read [references/asset-pipeline.md](references/asset-pipeline.md) when turning the identity into favicons, app icons, optimized SVG,
|
|
115
|
-
- Read [references/brand-governance.md](references/brand-governance.md) before finalizing
|
|
126
|
+
- Read [references/asset-pipeline.md](references/asset-pipeline.md) when turning the identity into optical `16/24/32 px` favicons, app icons, optimized SVG, multi-target DTCG tokens, or font subsets.
|
|
127
|
+
- Read [references/brand-governance.md](references/brand-governance.md) before finalizing Dual Screen/Print color masters, the Commercial Font & Asset License Manifest, clearspace, minimum sizes, or incorrect-use guidance.
|