@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,17 +12,20 @@ used only when already installed in the target dependency context; otherwise
|
|
|
12
12
|
installation guidance is printed and no browser is launched.
|
|
13
13
|
|
|
14
14
|
Options:
|
|
15
|
-
--out FILE
|
|
16
|
-
--breakpoints LIST
|
|
17
|
-
--project DIR
|
|
18
|
-
--root DIR
|
|
19
|
-
--executable-path FILE
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--
|
|
15
|
+
--out FILE Write JSON report to FILE instead of stdout
|
|
16
|
+
--breakpoints LIST Width x height list (default: 390x900,1440x900)
|
|
17
|
+
--project DIR Dependency resolution root (default: current directory)
|
|
18
|
+
--root DIR Static server root for local targets (default: target directory)
|
|
19
|
+
--executable-path FILE Use a specific Chromium/Chrome executable
|
|
20
|
+
--color-scheme MODE Emulate prefers-color-scheme: light or dark
|
|
21
|
+
--reduced-motion MODE Emulate prefers-reduced-motion: no-preference or reduce
|
|
22
|
+
--allow-http-error Measure HTTP 4xx/5xx pages without failing the run
|
|
23
|
+
--timeout MS Navigation timeout in milliseconds (default: 30000)
|
|
24
|
+
--wait-until EVENT Navigation lifecycle event: load or domcontentloaded (default: load)
|
|
25
|
+
--wait-for SELECTOR Wait for a selector after page load
|
|
26
|
+
--wait-ms MS Post-load settle time in milliseconds (default: 2000)
|
|
27
|
+
--compact Emit compact JSON
|
|
28
|
+
--help Show this help
|
|
26
29
|
|
|
27
30
|
The output is heuristic evidence, not an accessibility or quality certification.
|
|
28
31
|
Cross-origin CSS may be unreadable, canvas/WebGL painting can hide text and color,
|
|
@@ -37,59 +40,95 @@ Install Playwright in the target project when measurement is desired, for exampl
|
|
|
37
40
|
|
|
38
41
|
function optionValue(args, index, name) {
|
|
39
42
|
const value = args[index + 1];
|
|
40
|
-
if (value === undefined) throw new Error(`${name} requires a value`);
|
|
43
|
+
if (value === undefined || value === '') throw new Error(`${name} requires a value`);
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function inlineValue(arg, prefix, name) {
|
|
48
|
+
const value = arg.slice(prefix.length);
|
|
49
|
+
if (value === '') throw new Error(`${name} requires a value`);
|
|
41
50
|
return value;
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
function parse(args) {
|
|
45
|
-
const options = {
|
|
54
|
+
const options = {
|
|
55
|
+
out: null,
|
|
56
|
+
breakpoints: '390x900,1440x900',
|
|
57
|
+
project: process.cwd(),
|
|
58
|
+
root: null,
|
|
59
|
+
timeout: 30000,
|
|
60
|
+
waitUntil: 'load',
|
|
61
|
+
waitFor: null,
|
|
62
|
+
waitMs: 2000,
|
|
63
|
+
compact: false,
|
|
64
|
+
executablePath: null,
|
|
65
|
+
colorScheme: null,
|
|
66
|
+
reducedMotion: null,
|
|
67
|
+
allowHttpError: false,
|
|
68
|
+
help: false,
|
|
69
|
+
};
|
|
46
70
|
const positional = [];
|
|
47
71
|
for (let index = 0; index < args.length; index += 1) {
|
|
48
72
|
const arg = args[index];
|
|
49
73
|
if (arg === '--help' || arg === '-h') options.help = true;
|
|
50
74
|
else if (arg === '--compact') options.compact = true;
|
|
75
|
+
else if (arg === '--allow-http-error') options.allowHttpError = true;
|
|
51
76
|
else if (arg === '--out') {
|
|
52
77
|
options.out = optionValue(args, index, '--out');
|
|
53
78
|
index += 1;
|
|
54
|
-
} else if (arg.startsWith('--out=')) options.out = arg
|
|
79
|
+
} else if (arg.startsWith('--out=')) options.out = inlineValue(arg, '--out=', '--out');
|
|
55
80
|
else if (arg === '--breakpoints') {
|
|
56
81
|
options.breakpoints = optionValue(args, index, '--breakpoints');
|
|
57
82
|
index += 1;
|
|
58
|
-
} else if (arg.startsWith('--breakpoints=')) options.breakpoints = arg
|
|
83
|
+
} else if (arg.startsWith('--breakpoints=')) options.breakpoints = inlineValue(arg, '--breakpoints=', '--breakpoints');
|
|
59
84
|
else if (arg === '--project') {
|
|
60
85
|
options.project = optionValue(args, index, '--project');
|
|
61
86
|
index += 1;
|
|
62
|
-
} else if (arg.startsWith('--project=')) options.project = arg
|
|
87
|
+
} else if (arg.startsWith('--project=')) options.project = inlineValue(arg, '--project=', '--project');
|
|
63
88
|
else if (arg === '--root') {
|
|
64
89
|
options.root = optionValue(args, index, '--root');
|
|
65
90
|
index += 1;
|
|
66
|
-
} else if (arg.startsWith('--root=')) options.root = arg
|
|
91
|
+
} else if (arg.startsWith('--root=')) options.root = inlineValue(arg, '--root=', '--root');
|
|
67
92
|
else if (arg === '--executable-path') {
|
|
68
93
|
options.executablePath = optionValue(args, index, '--executable-path');
|
|
69
94
|
index += 1;
|
|
70
|
-
} else if (arg.startsWith('--executable-path=')) options.executablePath = arg
|
|
95
|
+
} else if (arg.startsWith('--executable-path=')) options.executablePath = inlineValue(arg, '--executable-path=', '--executable-path');
|
|
96
|
+
else if (arg === '--color-scheme') {
|
|
97
|
+
options.colorScheme = optionValue(args, index, '--color-scheme');
|
|
98
|
+
index += 1;
|
|
99
|
+
} else if (arg.startsWith('--color-scheme=')) options.colorScheme = inlineValue(arg, '--color-scheme=', '--color-scheme');
|
|
100
|
+
else if (arg === '--reduced-motion') {
|
|
101
|
+
options.reducedMotion = optionValue(args, index, '--reduced-motion');
|
|
102
|
+
index += 1;
|
|
103
|
+
} else if (arg.startsWith('--reduced-motion=')) options.reducedMotion = inlineValue(arg, '--reduced-motion=', '--reduced-motion');
|
|
71
104
|
else if (arg === '--timeout') {
|
|
72
105
|
options.timeout = Number(optionValue(args, index, '--timeout'));
|
|
73
106
|
index += 1;
|
|
74
|
-
} else if (arg.startsWith('--timeout=')) options.timeout = Number(arg
|
|
107
|
+
} else if (arg.startsWith('--timeout=')) options.timeout = Number(inlineValue(arg, '--timeout=', '--timeout'));
|
|
75
108
|
else if (arg === '--wait-until') {
|
|
76
109
|
options.waitUntil = optionValue(args, index, '--wait-until');
|
|
77
110
|
index += 1;
|
|
78
|
-
} else if (arg.startsWith('--wait-until=')) options.waitUntil = arg
|
|
111
|
+
} else if (arg.startsWith('--wait-until=')) options.waitUntil = inlineValue(arg, '--wait-until=', '--wait-until');
|
|
79
112
|
else if (arg === '--wait-for') {
|
|
80
113
|
options.waitFor = optionValue(args, index, '--wait-for');
|
|
81
114
|
index += 1;
|
|
82
|
-
} else if (arg.startsWith('--wait-for=')) options.waitFor = arg
|
|
115
|
+
} else if (arg.startsWith('--wait-for=')) options.waitFor = inlineValue(arg, '--wait-for=', '--wait-for');
|
|
83
116
|
else if (arg === '--wait-ms') {
|
|
84
117
|
options.waitMs = Number(optionValue(args, index, '--wait-ms'));
|
|
85
118
|
index += 1;
|
|
86
|
-
} else if (arg.startsWith('--wait-ms=')) options.waitMs = Number(arg
|
|
119
|
+
} else if (arg.startsWith('--wait-ms=')) options.waitMs = Number(inlineValue(arg, '--wait-ms=', '--wait-ms'));
|
|
87
120
|
else if (arg.startsWith('-')) throw new Error(`unknown option: ${arg}`);
|
|
88
121
|
else positional.push(arg);
|
|
89
122
|
}
|
|
90
123
|
if (!Number.isFinite(options.timeout) || options.timeout <= 0) throw new Error('--timeout must be a positive number');
|
|
91
124
|
if (!Number.isFinite(options.waitMs) || options.waitMs < 0) throw new Error('--wait-ms must be a non-negative number');
|
|
92
125
|
if (options.waitUntil !== 'load' && options.waitUntil !== 'domcontentloaded') throw new Error(`--wait-until must be 'load' or 'domcontentloaded', got '${options.waitUntil}'`);
|
|
126
|
+
if (options.colorScheme !== null && options.colorScheme !== 'light' && options.colorScheme !== 'dark') {
|
|
127
|
+
throw new Error(`--color-scheme must be 'light' or 'dark', got '${options.colorScheme}'`);
|
|
128
|
+
}
|
|
129
|
+
if (options.reducedMotion !== null && options.reducedMotion !== 'no-preference' && options.reducedMotion !== 'reduce') {
|
|
130
|
+
throw new Error(`--reduced-motion must be 'no-preference' or 'reduce', got '${options.reducedMotion}'`);
|
|
131
|
+
}
|
|
93
132
|
return { positional, options };
|
|
94
133
|
}
|
|
95
134
|
|
|
@@ -213,8 +252,8 @@ function emptyNetworkPhase() {
|
|
|
213
252
|
return { requests: 0, transferBytes: 0, jsBytes: 0 };
|
|
214
253
|
}
|
|
215
254
|
|
|
216
|
-
function observeNetwork(session, mainFrameId = null) {
|
|
217
|
-
let
|
|
255
|
+
function observeNetwork(session, mainFrameId = null, waitUntil = 'load') {
|
|
256
|
+
let phaseBoundarySeen = false;
|
|
218
257
|
const active = new Map();
|
|
219
258
|
const network = {
|
|
220
259
|
status: 0,
|
|
@@ -247,8 +286,9 @@ function observeNetwork(session, mainFrameId = null) {
|
|
|
247
286
|
}
|
|
248
287
|
}
|
|
249
288
|
|
|
250
|
-
|
|
251
|
-
|
|
289
|
+
const boundaryEvent = waitUntil === 'domcontentloaded' ? 'Page.domContentEventFired' : 'Page.loadEventFired';
|
|
290
|
+
session.on(boundaryEvent, () => {
|
|
291
|
+
phaseBoundarySeen = true;
|
|
252
292
|
});
|
|
253
293
|
session.on('Network.requestWillBeSent', (event) => {
|
|
254
294
|
const existing = active.get(event.requestId);
|
|
@@ -259,7 +299,7 @@ function observeNetwork(session, mainFrameId = null) {
|
|
|
259
299
|
return;
|
|
260
300
|
}
|
|
261
301
|
const type = event.type || 'Other';
|
|
262
|
-
const phase =
|
|
302
|
+
const phase = phaseBoundarySeen ? 'deferred' : 'initial';
|
|
263
303
|
active.set(event.requestId, { type, phase });
|
|
264
304
|
network.requests += 1;
|
|
265
305
|
network[phase].requests += 1;
|
|
@@ -274,14 +314,14 @@ function observeNetwork(session, mainFrameId = null) {
|
|
|
274
314
|
session.on('Network.loadingFinished', (event) => {
|
|
275
315
|
const record = active.get(event.requestId);
|
|
276
316
|
const type = record?.type || 'Other';
|
|
277
|
-
const phase = record?.phase || (
|
|
317
|
+
const phase = record?.phase || (phaseBoundarySeen ? 'deferred' : 'initial');
|
|
278
318
|
addBytes(type, phase, event.encodedDataLength || 0);
|
|
279
319
|
active.delete(event.requestId);
|
|
280
320
|
});
|
|
281
321
|
session.on('Network.loadingFailed', (event) => {
|
|
282
322
|
const record = active.get(event.requestId);
|
|
283
323
|
const type = record?.type || 'Other';
|
|
284
|
-
const phase = record?.phase || (
|
|
324
|
+
const phase = record?.phase || (phaseBoundarySeen ? 'deferred' : 'initial');
|
|
285
325
|
network.failedRequests += 1;
|
|
286
326
|
addBytes(type, phase, event.encodedDataLength || 0);
|
|
287
327
|
active.delete(event.requestId);
|
|
@@ -296,7 +336,7 @@ function observeNetwork(session, mainFrameId = null) {
|
|
|
296
336
|
};
|
|
297
337
|
}
|
|
298
338
|
|
|
299
|
-
const extract = String.raw`(() => {
|
|
339
|
+
const extract = String.raw`((extractOptions = {}) => {
|
|
300
340
|
const viewportWidth = window.innerWidth;
|
|
301
341
|
const viewportHeight = window.innerHeight;
|
|
302
342
|
const navigation = performance.getEntriesByType('navigation')[0] || {};
|
|
@@ -380,7 +420,7 @@ const extract = String.raw`(() => {
|
|
|
380
420
|
function luminance(color) {
|
|
381
421
|
const convert = (channel) => {
|
|
382
422
|
const value = channel / 255;
|
|
383
|
-
return value <= 0.
|
|
423
|
+
return value <= 0.04045 ? value / 12.92 : Math.pow((value + 0.055) / 1.055, 2.4);
|
|
384
424
|
};
|
|
385
425
|
return 0.2126 * convert(color.r) + 0.7152 * convert(color.g) + 0.0722 * convert(color.b);
|
|
386
426
|
}
|
|
@@ -738,12 +778,15 @@ const extract = String.raw`(() => {
|
|
|
738
778
|
const backgroundEntries = [...backgroundColors.entries()].sort((a, b) => b[1] - a[1]);
|
|
739
779
|
const inkEntries = [...inkColors.entries()].sort((a, b) => b[1] - a[1]);
|
|
740
780
|
const distinctColors = new Set([...backgroundColors.keys(), ...inkColors.keys()]);
|
|
741
|
-
const
|
|
781
|
+
const isDarkEmulation = extractOptions.colorScheme === 'dark';
|
|
782
|
+
const dominantFallback = isDarkEmulation ? '18,18,18' : '255,255,255';
|
|
783
|
+
const dominantKey = backgroundEntries[0]?.[0] || dominantFallback;
|
|
742
784
|
const dominantParts = dominantKey.split(',').map(Number);
|
|
785
|
+
const dominantDefaultChannel = isDarkEmulation ? 18 : 255;
|
|
743
786
|
const dominantColor = {
|
|
744
|
-
r: Number.isFinite(dominantParts[0]) ? dominantParts[0] :
|
|
745
|
-
g: Number.isFinite(dominantParts[1]) ? dominantParts[1] :
|
|
746
|
-
b: Number.isFinite(dominantParts[2]) ? dominantParts[2] :
|
|
787
|
+
r: Number.isFinite(dominantParts[0]) ? dominantParts[0] : dominantDefaultChannel,
|
|
788
|
+
g: Number.isFinite(dominantParts[1]) ? dominantParts[1] : dominantDefaultChannel,
|
|
789
|
+
b: Number.isFinite(dominantParts[2]) ? dominantParts[2] : dominantDefaultChannel,
|
|
747
790
|
a: 1,
|
|
748
791
|
};
|
|
749
792
|
|
|
@@ -799,13 +842,26 @@ const extract = String.raw`(() => {
|
|
|
799
842
|
three: Boolean(window.THREE) || /\bthree(?:\.min|\.module)?\.js\b|@react-three/.test(scriptHaystack),
|
|
800
843
|
barba: Boolean(window.barba) || /\bbarba\b/.test(scriptHaystack),
|
|
801
844
|
swup: Boolean(window.Swup) || /\bswup\b/.test(scriptHaystack),
|
|
802
|
-
framerMotion: /framer-motion|motionone|motion\.one/.test(scriptHaystack),
|
|
845
|
+
framerMotion: /framer-motion|motion\/react|motionone|motion\.one/.test(scriptHaystack),
|
|
846
|
+
motion: /motion\/react|motion-dom|motionone|motion\.one/.test(scriptHaystack),
|
|
803
847
|
rive: Boolean(window.rive) || /\brive(?:\.min)?\.js\b|@rive-app\//.test(scriptHaystack),
|
|
804
848
|
lottie: Boolean(window.lottie) || /\blottie(?:\.min)?\.js\b|\blottie-web\b/.test(scriptHaystack),
|
|
849
|
+
pixi: Boolean(window.PIXI) || /\bpixi(?:\.min|\.mjs)?\.js\b|pixi\.js/.test(scriptHaystack),
|
|
850
|
+
babylon: Boolean(window.BABYLON) || /\bbabylon(?:\.min)?\.js\b|@babylonjs\//.test(scriptHaystack),
|
|
851
|
+
spline: Boolean(document.querySelector('spline-viewer')) || /@splinetool\/|spline-viewer/.test(scriptHaystack),
|
|
852
|
+
playcanvas: Boolean(window.pc) || /\bplaycanvas\b/.test(scriptHaystack),
|
|
805
853
|
};
|
|
806
854
|
const browserTechniques = {
|
|
807
855
|
cssScrollTimeline: /scroll-timeline|animation-timeline|view-timeline/.test(cssLower),
|
|
808
|
-
viewTransitions:
|
|
856
|
+
viewTransitions: /@view-transition|view-transition|startviewtransition\s*\(/.test(cssLower + '\n' + scriptHaystack),
|
|
857
|
+
webgpu: /navigator\.gpu|\brequestadapter\b/.test(scriptHaystack),
|
|
858
|
+
anchorPositioning: /anchor-name|position-anchor/.test(cssLower),
|
|
859
|
+
startingStyle: /@starting-style/.test(cssLower),
|
|
860
|
+
popover: Boolean(document.querySelector('[popover]')) || /:popover-open/.test(cssLower),
|
|
861
|
+
containerQueries: /@container\b/.test(cssLower),
|
|
862
|
+
lightDark: /light-dark\s*\(/.test(cssLower),
|
|
863
|
+
oklch: /oklch\s*\(/.test(cssLower),
|
|
864
|
+
reducedTransparencyCSS: /prefers-reduced-transparency/.test(cssLower),
|
|
809
865
|
};
|
|
810
866
|
|
|
811
867
|
const bodyStyle = document.body ? styleOf(document.body) : null;
|
|
@@ -827,6 +883,7 @@ const extract = String.raw`(() => {
|
|
|
827
883
|
const cursorList = [...cursorValues].filter(Boolean).slice(0, 20);
|
|
828
884
|
const customImageCursors = cursorList.filter((value) => value.includes('url('));
|
|
829
885
|
|
|
886
|
+
const canvasBackdrop = isDarkEmulation ? { r: 18, g: 18, b: 18, a: 1 } : { r: 255, g: 255, b: 255, a: 1 };
|
|
830
887
|
function effectiveContrastColors(element, foregroundColor) {
|
|
831
888
|
const chain = [];
|
|
832
889
|
let node = element;
|
|
@@ -846,10 +903,9 @@ const extract = String.raw`(() => {
|
|
|
846
903
|
bg = opacity < 1 ? { ...innerBg, a: innerBg.a * opacity } : innerBg;
|
|
847
904
|
fg = opacity < 1 ? { ...innerFg, a: innerFg.a * opacity } : innerFg;
|
|
848
905
|
}
|
|
849
|
-
const canvas = { r: 255, g: 255, b: 255, a: 1 };
|
|
850
906
|
return {
|
|
851
|
-
background: alphaBlend(bg,
|
|
852
|
-
foreground: alphaBlend(fg,
|
|
907
|
+
background: alphaBlend(bg, canvasBackdrop),
|
|
908
|
+
foreground: alphaBlend(fg, canvasBackdrop),
|
|
853
909
|
};
|
|
854
910
|
}
|
|
855
911
|
|
|
@@ -888,11 +944,11 @@ const extract = String.raw`(() => {
|
|
|
888
944
|
return true;
|
|
889
945
|
}
|
|
890
946
|
|
|
891
|
-
const landmarkRoles = { MAIN: 'main', NAV: 'navigation', HEADER: 'banner', FOOTER: 'contentinfo', ASIDE: 'complementary' };
|
|
892
|
-
const validLandmarkRoles = new Set(['main', 'navigation', 'banner', 'contentinfo', 'complementary']);
|
|
947
|
+
const landmarkRoles = { MAIN: 'main', NAV: 'navigation', HEADER: 'banner', FOOTER: 'contentinfo', ASIDE: 'complementary', SEARCH: 'search' };
|
|
948
|
+
const validLandmarkRoles = new Set(['main', 'navigation', 'banner', 'contentinfo', 'complementary', 'search']);
|
|
893
949
|
const sectioningSelector = 'article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]';
|
|
894
950
|
const landmarks = {};
|
|
895
|
-
for (const element of document.querySelectorAll('main,nav,header,footer,aside,[role]')) {
|
|
951
|
+
for (const element of document.querySelectorAll('main,nav,header,footer,aside,search,[role]')) {
|
|
896
952
|
if (!isAccessibilityExposed(element)) continue;
|
|
897
953
|
const roleAttr = (element.getAttribute('role') || '').trim().toLowerCase();
|
|
898
954
|
let role = null;
|
|
@@ -1023,7 +1079,7 @@ const extract = String.raw`(() => {
|
|
|
1023
1079
|
lcp: typeof state.lcp === 'number' ? round(state.lcp, 1) : null,
|
|
1024
1080
|
cls: round(state.cls || 0, 4),
|
|
1025
1081
|
};
|
|
1026
|
-
})
|
|
1082
|
+
})`;
|
|
1027
1083
|
|
|
1028
1084
|
const initObserver = String.raw`(() => {
|
|
1029
1085
|
const state = { lcp: null, cls: 0 };
|
|
@@ -1063,7 +1119,7 @@ async function measurePage(page, target, viewport, options) {
|
|
|
1063
1119
|
await session.send('Network.enable');
|
|
1064
1120
|
const { frameTree } = await session.send('Page.getFrameTree');
|
|
1065
1121
|
const mainFrameId = frameTree?.frame?.id || null;
|
|
1066
|
-
const tracker = observeNetwork(session, mainFrameId);
|
|
1122
|
+
const tracker = observeNetwork(session, mainFrameId, options.waitUntil);
|
|
1067
1123
|
const response = await page.goto(target, { waitUntil: options.waitUntil, timeout: options.timeout });
|
|
1068
1124
|
if (options.waitFor) await page.waitForSelector(options.waitFor, { timeout: options.timeout });
|
|
1069
1125
|
if (options.waitMs > 0) await page.waitForTimeout(options.waitMs);
|
|
@@ -1073,7 +1129,7 @@ async function measurePage(page, target, viewport, options) {
|
|
|
1073
1129
|
new Promise((resolve) => setTimeout(resolve, Math.min(1000, options.waitMs))),
|
|
1074
1130
|
]);
|
|
1075
1131
|
}
|
|
1076
|
-
const measured = await page.evaluate(extract);
|
|
1132
|
+
const measured = await page.evaluate(`${extract}(${JSON.stringify({ colorScheme: options.colorScheme || 'light' })})`);
|
|
1077
1133
|
const network = tracker.snapshot();
|
|
1078
1134
|
if (response && network.status === 0) network.status = response.status();
|
|
1079
1135
|
return { width: viewport.width, height: viewport.height, ...measured, network };
|
|
@@ -1097,6 +1153,9 @@ async function main() {
|
|
|
1097
1153
|
}
|
|
1098
1154
|
const target = await createStaticTarget(input, options);
|
|
1099
1155
|
let browser;
|
|
1156
|
+
const phaseLabel = options.waitUntil === 'domcontentloaded'
|
|
1157
|
+
? 'initial means request initiated before the document domcontentloaded event; deferred means after it'
|
|
1158
|
+
: 'initial means request initiated before the document load event; deferred means after it';
|
|
1100
1159
|
const report = {
|
|
1101
1160
|
schemaVersion: 1,
|
|
1102
1161
|
target: input,
|
|
@@ -1107,7 +1166,9 @@ async function main() {
|
|
|
1107
1166
|
cache: 'fresh browser context per viewport; HTTP cache left enabled',
|
|
1108
1167
|
throttling: 'none',
|
|
1109
1168
|
emulation: 'headless Chromium viewport emulation',
|
|
1110
|
-
|
|
1169
|
+
...(options.colorScheme ? { colorScheme: options.colorScheme } : {}),
|
|
1170
|
+
...(options.reducedMotion ? { reducedMotion: options.reducedMotion } : {}),
|
|
1171
|
+
payloadPhase: phaseLabel,
|
|
1111
1172
|
},
|
|
1112
1173
|
limitations: [
|
|
1113
1174
|
'cross-origin stylesheets may be unreadable',
|
|
@@ -1123,12 +1184,19 @@ async function main() {
|
|
|
1123
1184
|
],
|
|
1124
1185
|
viewports: [],
|
|
1125
1186
|
};
|
|
1187
|
+
let sawHttpError = false;
|
|
1126
1188
|
try {
|
|
1127
1189
|
browser = await chromium.launch({ headless: true, ...(options.executablePath ? { executablePath: options.executablePath } : {}) });
|
|
1128
1190
|
for (const viewport of breakpoints) {
|
|
1129
|
-
const page = await browser.newPage({
|
|
1191
|
+
const page = await browser.newPage({
|
|
1192
|
+
viewport,
|
|
1193
|
+
...(options.colorScheme ? { colorScheme: options.colorScheme } : {}),
|
|
1194
|
+
...(options.reducedMotion ? { reducedMotion: options.reducedMotion } : {}),
|
|
1195
|
+
});
|
|
1130
1196
|
try {
|
|
1131
|
-
|
|
1197
|
+
const result = await measurePage(page, target.url, viewport, options);
|
|
1198
|
+
if (result.network.status >= 400) sawHttpError = true;
|
|
1199
|
+
report.viewports.push(result);
|
|
1132
1200
|
} finally {
|
|
1133
1201
|
await page.close();
|
|
1134
1202
|
}
|
|
@@ -1146,6 +1214,10 @@ async function main() {
|
|
|
1146
1214
|
} else {
|
|
1147
1215
|
console.log(json);
|
|
1148
1216
|
}
|
|
1217
|
+
if (sawHttpError && !options.allowHttpError) {
|
|
1218
|
+
console.error('style-inventory: target returned HTTP 4xx/5xx; use --allow-http-error only when intentionally measuring error pages');
|
|
1219
|
+
process.exitCode = 1;
|
|
1220
|
+
}
|
|
1149
1221
|
}
|
|
1150
1222
|
|
|
1151
1223
|
main().catch((error) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pixelcraft-web
|
|
3
|
-
description: Translates Pixelcraft direction, tokens, UX, and floor requirements into idiomatic web UI across HTML/CSS, React
|
|
3
|
+
description: Translates Pixelcraft direction, tokens, UX, and floor requirements into idiomatic web UI across HTML/CSS, React, Next.js, Vue, Nuxt, SvelteKit, SolidStart, Angular, Astro, Qwik, Preact, Fresh, Hono, htmx, Alpine, Lit, Rails/Hotwire, Laravel/Livewire/Filament/Inertia, Symfony UX, WordPress, Django/FastAPI/FastHTML, Phoenix LiveView, Blazor, Go templ/Gomponents, Rust Leptos/Dioxus, Kotlin, Java, Dart Jaspr, Elm, ClojureScript, F#, and Scala. Use for browser UI, Tailwind v4, headless/styled kits, cmdk/vaul/sonner/Embla, search/icons/fonts/images, forms/tables/editors, sync/auth/i18n/PWA, GSAP/Motion/Lenis/Rive, Three.js/R3F/Babylon/Spline/Theatre.js, WebGPU/shaders, or audio/video players.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -8,69 +8,125 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Pixelcraft web
|
|
10
10
|
|
|
11
|
-
Use this skill when the rendering surface is HTML/CSS/DOM, including server-rendered pages and
|
|
11
|
+
Use this skill when the rendering surface is HTML/CSS/DOM, including server-rendered pages, hybrid islands, browser 3D/WebGL/WebGPU scenes, and interactive media. Do not assume React or Tailwind; detect the actual stack nearest the changed files.
|
|
12
12
|
|
|
13
13
|
## Surface craft
|
|
14
14
|
|
|
15
|
-
Use one memorable device when the brief warrants it: a real product as the spatial anchor, editorial rows around comparable facts, or expressive type constrained by an underlying grid. Keep navigation and primary controls ordinary. Inspect normal scroll, mobile reflow, first-load payload and the reduced-motion path; never trade orientation for scroll hijacking, a custom cursor or delayed essential content.
|
|
15
|
+
Use one memorable device when the brief warrants it: a real product as the spatial anchor, editorial rows around comparable facts, or expressive type constrained by an underlying grid. Keep navigation and primary controls ordinary. Inspect normal scroll, mobile reflow, first-load payload, and the reduced-motion path; never trade orientation for scroll hijacking, a custom cursor, or delayed essential content.
|
|
16
16
|
|
|
17
17
|
## Detection signals
|
|
18
18
|
|
|
19
|
-
`package.json`
|
|
19
|
+
Inspect `package.json`, `Cargo.toml`, `go.mod`, `Gemfile`, `composer.json`, `pyproject.toml`, `mix.exs`, `*.csproj`, `pubspec.yaml`, `build.gradle*`, `pom.xml`, `deps.edn`, `elm.json`, `block.json`, `theme.json`, framework configs, template extensions, routes/controllers, CSS entry files, and island/hydration markers. Multiple web stacks can coexist; scope each decision to the active route or component surface.
|
|
20
20
|
|
|
21
21
|
## Translate direction to web idioms
|
|
22
22
|
|
|
23
|
-
1. Convert semantic DTCG roles to CSS custom properties or the framework's theme object; primitives
|
|
24
|
-
2. Express composition with
|
|
25
|
-
3. Choose rendering strategy deliberately
|
|
26
|
-
4.
|
|
27
|
-
5. Connect state matrix rows to route
|
|
28
|
-
6. Honor `prefers-reduced-motion`, `prefers-color-scheme`, forced colors, text scaling, logical direction, keyboard/focus
|
|
23
|
+
1. Convert semantic DTCG roles to CSS custom properties or the framework's theme object; keep primitives hidden behind semantic names.
|
|
24
|
+
2. Express composition with native CSS Grid, Flex, container queries, and logical properties before framework-specific utility soup.
|
|
25
|
+
3. Choose rendering strategy deliberately (static, server-rendered, streamed, islands, resumable, SPA, or enhanced partial). Never hydrate a full page for one small control.
|
|
26
|
+
4. Build interactions with real HTML semantics first (`a`, `button`, `form`, `label`, `dialog`, `[popover]`), then layer framework behavior.
|
|
27
|
+
5. Connect state matrix rows to route, cache, and network behavior: loading, empty, error, offline, stale, unauthorized, optimistic rollback, and deep-link restoration.
|
|
28
|
+
6. Honor `prefers-reduced-motion`, `prefers-color-scheme`, forced colors, text scaling, logical direction, keyboard/focus restoration, and browser capability differences.
|
|
29
29
|
|
|
30
30
|
## Platform-wide rules
|
|
31
31
|
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
32
|
+
- **Post-tag 3-run median budgets & initial payload caps**: verify **after** real analytics/GTM/pixels/chat scripts are active—**3-run median Lighthouse** under 4G throttling (**Perf ≥ 90, A11y ≥ 95, Best Practices ≥ 95, SEO ≥ 95**) on **both mobile and desktop for every primary template**, Core Web Vitals **LCP < 2.5 s, INP < 200 ms, CLS < 0.10**, **Long Animation Frames (`LoAF`)** clean on scroll/drag, **`<= 3 Hz` flash cap** (`WCAG 2.3.1`), and **Network waterfall capture on the heaviest page**. Enforce initial compressed JS+CSS payload budgets by surface class (**Content/editorial `<= 150–250 KB`**; **Dashboard/app `<= 250–450 KB`**; **Promotional/rich experience `<= 350–700 KB`**; **Embedded widget `<= 100–200 KB`**—noting the `~3.1 MB / 103 req` showcase median is a cost calibration benchmark, NOT an acceptable budget). Isolate 3rd-party scripts off the main thread (Cloudflare Zaraz / Partytown) or behind interaction/Consent Mode v2 facades with zero banner CLS.
|
|
33
|
+
- **Typography, cascade & print/recovery**: self-host `<= 2–3` subsetted `.woff2` files with `@font-face` fallback metric overrides (`size-adjust`, `ascent-override`, `descent-override`, `line-gap-override`); structure CSS with `@layer` and logical properties (`margin-inline`, `inset-block`) without `!important` sprawl; render a first-focusable **Skip to main content** link; ship branded `404`/`500` recovery routes and a `@media print` stylesheet for articles, docs, receipts, and invoices.
|
|
34
|
+
- **Viewport, short-laptop fold & cross-browser matrix**: verify across `360 / 390 / 768 / 1024 / 1280 / 1440 / 1920+` (`svh`/`dvh`, `env(safe-area-inset-*)`, `clamp()`), scaled 13–14" Windows laptops (`1280×620` / `1366×650` at `125%–150%` OS scale) so the above-the-fold headline + primary CTA stay visible without clipping, and attach deliverable evidence across **`Chrome`, `Firefox`, `Edge`, `Safari macOS`, real `Safari iOS`, and `Chrome Android`**.
|
|
35
|
+
- **SEO, migration, CDN, security headers & deployment safety**: ship per-route `<title>`/description/canonical, `sitemap.xml`, `robots.txt`, JSON-LD, `hreflang` + `x-default`, legacy redesign `301` redirect maps (`0` broken/orphan links), SSR/SSG semantic HTML + `/llms.txt`, `1200×630` HTTPS JPEG/PNG `og:image` cards (Zalo/Slack/iMessage/FB safe—never SVG/WebP-only), `immutable` asset caching (`private, no-store` on auth routes), CSP/HSTS/`nosniff`/`Referrer-Policy`/`Permissions-Policy`/`frame-ancestors`, **PR preview deployments**, and a documented **production rollback plan**.
|
|
36
|
+
- **SaaS, checkout & CMS resilience**: keep search/filter/sort/page/tab/drawer IDs in the URL; sync sign-out and workspace/tenant switches across tabs (`BroadcastChannel`/`storage`); cancel stale fetches (`AbortController`); lock mutations synchronously with `Idempotency-Key`; preserve dirty drafts across `401` session expiry; guard single-key hotkeys inside inputs/contenteditable/IME and use Safe-Triangle submenu corridors; sanitize Word/Docs CMS paste and auto-transcode `10–15 MB` uploads with focal-point crops + Draft Live Preview.
|
|
37
|
+
|
|
38
|
+
## Anti-lazy / do-not-hand-roll guard
|
|
39
|
+
|
|
40
|
+
| Never do this | Use instead |
|
|
41
|
+
|---|---|
|
|
42
|
+
| Build a rich-text or code editor on raw `contenteditable` / `document.execCommand`, or bundle Monaco for static code snippets | ProseMirror, Tiptap, BlockNote, Lexical, CodeMirror 6 (editable), or **Shiki** (zero-JS read-only highlighting) |
|
|
43
|
+
| Render 5,000+ DOM table rows or write DIY scroll virtualization | TanStack Table + TanStack Virtual, AG Grid, MUI X Data Grid, or Glide Data Grid |
|
|
44
|
+
| Hand-roll modals, comboboxes, command palettes, touch drawers, toast stacks, carousels, date grids, split panes, or ad-hoc client search | Native `<dialog>` / `[popover]` / `<input type="date">` first; otherwise `@base-ui/react`, `radix-ui`, React Aria, Ariakit, Zag.js, Melt UI, `cmdk`/`kbar`, `vaul`, `sonner`, Embla/Splide, `react-day-picker`, `react-resizable-panels`, and Pagefind/Orama/Fuse.js/InstantSearch |
|
|
45
|
+
| Ship untouched `shadcn/ui` default zinc neutrals, `0.5rem` radius, and hairline card grids | Author project semantic tokens (`pixelcraft-tokens`) and direction (`pixelcraft-direction`) before building views |
|
|
46
|
+
| Hydrate a full SPA or spin up Three.js just for static content or a single GLB orbit preview | Static/SSR/islands rendering, `<model-viewer>` with `poster` and `alt`, and lazy-loaded heavy chunks |
|
|
37
47
|
|
|
38
48
|
## Common web-specific slop/UX failures
|
|
39
49
|
|
|
40
|
-
- centered hero + eyebrow + two CTAs + three cards regardless of content;
|
|
41
|
-
- div
|
|
42
|
-
- hydration delay
|
|
43
|
-
- infinite scroll without position recovery or
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- modal/dropdown focus escaping or remaining in removed DOM;
|
|
47
|
-
- dark mode implemented by inversion rather than semantic tokens;
|
|
48
|
-
- responsive behavior that merely shrinks desktop instead of restructuring.
|
|
50
|
+
- centered hero + eyebrow + two CTAs + three cards regardless of content, or primary CTA pushed below a `1280×620` scaled-laptop fold;
|
|
51
|
+
- `div`/`span` buttons, missing **Skip to main content** link, or unguarded single-key hotkeys firing while typing in inputs/IME;
|
|
52
|
+
- hydration delay, main-thread 3rd-party pixels/chat widgets tanking INP/`LoAF`, or late cookie banners shifting CLS;
|
|
53
|
+
- infinite scroll without position recovery, trapped memory-only filters/drawers, or stale search responses overwriting newer queries;
|
|
54
|
+
- multi-tab tenant drift after workspace switch/sign-out, double-charge submits without `Idempotency-Key`, or `401` redirects wiping form drafts;
|
|
55
|
+
- modal/dropdown focus escaping, dark mode via CSS filter inversion, or untouched `shadcn/ui` defaults.
|
|
49
56
|
|
|
50
57
|
## Verification options
|
|
51
58
|
|
|
52
|
-
Be explicit
|
|
53
|
-
|
|
54
|
-
##
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- Read [references/
|
|
67
|
-
- Read [references/tailwind.md](references/tailwind.md)
|
|
68
|
-
- Read [references/
|
|
69
|
-
- Read [references/
|
|
70
|
-
- Read [references/
|
|
71
|
-
- Read [references/
|
|
72
|
-
- Read [references/
|
|
73
|
-
- Read [references/
|
|
74
|
-
- Read [references/
|
|
75
|
-
- Read [references/
|
|
76
|
-
- Read [references/
|
|
59
|
+
Be explicit with evidence labels (`rendered`, `static`, `model-judgment`, `not-checked`, `waived`) and enforce **Evidence Rule #0.3** (`static`/`model-judgment` never counts as `pass` for visual, performance, or interactive-a11y rows). Browser rendering, screenshots, DOM/accessibility trees, axe scans, Playwright/Vitest Browser Mode/Storybook tests, 3-run Lighthouse, `LoAF`/Network waterfall traces, responsive emulation, and real devices provide `rendered` evidence; builds, typechecks, and `jsdom` tests are `static` (or DOM-unit) evidence only.
|
|
60
|
+
|
|
61
|
+
## Pre-submit checklist
|
|
62
|
+
|
|
63
|
+
- [ ] zero `TODO`s, placeholder stubs, invented copy/metrics, or dead click/form handlers;
|
|
64
|
+
- [ ] **3-run median Lighthouse** under 4G throttling (`Perf ≥ 90`, `A11y/BP/SEO ≥ 95`) on mobile + desktop per primary template, CWV (`LCP < 2.5s`, `INP < 200ms`, `CLS < 0.1`), `LoAF` scroll/drag trace, Network waterfall on heaviest page, and initial compressed JS+CSS budget (`<= 150–250 KB` content, `<= 250–450 KB` app, `<= 350–700 KB` rich, `<= 100–200 KB` widget) met;
|
|
65
|
+
- [ ] all state-matrix rows wired (URL-synced filters/drawers, `AbortController` race cancellation, `BroadcastChannel` multi-tab auth/tenant sync, `Idempotency-Key` submit lock, `401` draft preservation);
|
|
66
|
+
- [ ] Skip-to-main link, native HTML semantics, keyboard/focus restoration, single-key hotkey input/IME guard, `<= 3 Hz` flash cap, logical properties, WCAG 2.2 AA contrast, branded `404`/`500`, and `@media print` verified;
|
|
67
|
+
- [ ] `prefers-reduced-motion`, `prefers-color-scheme`, `forced-colors`, `360–1920+` widths, `1280×620` / `1366×650` scaled-laptop fold, and cross-browser/device deliverables (`Chrome`, `Firefox`, `Edge`, `Safari macOS`, real `Safari iOS`, `Chrome Android`) verified or labeled `not-checked`;
|
|
68
|
+
- [ ] SEO/canonical/JSON-LD/`hreflang`+`x-default`/`/llms.txt`/`301` redirect map, `1200×630` HTTPS JPEG/PNG OG cards, CDN cache & security headers, PR preview deployment, and rollback plan verified;
|
|
69
|
+
- [ ] **Checklist-Until-Passing Stop-Gate (`<HARD-GATE>`):** walk every checklist item above + run `slop-scan.mjs --fail-on p2`, `check-contrast.mjs`, browser QA (`pixelcraft-visual-qa`), 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/perf/a11y per `Rule #0.3`).
|
|
70
|
+
|
|
71
|
+
## Framework and stack routing
|
|
72
|
+
|
|
73
|
+
- Read [references/html-css.md](references/html-css.md) when working directly in HTML/CSS, native `<dialog>`/`[popover]`/Anchor Positioning, Invoker Commands, customizable `<select>`, or browser-native primitives.
|
|
74
|
+
- Read [references/tailwind.md](references/tailwind.md) when Tailwind CSS v4 (`@theme inline`, `@custom-variant`, `@utility`, `@container`) is the styling layer.
|
|
75
|
+
- Read [references/react-next.md](references/react-next.md) when building with React 19, Next.js 15/16, React Router v7, or TanStack Start / TanStack Router.
|
|
76
|
+
- Read [references/vue-nuxt.md](references/vue-nuxt.md) when building with Vue 3.5/3.6 (Vapor Mode), Pinia, Nuxt 4, or Nuxt UI.
|
|
77
|
+
- Read [references/svelte.md](references/svelte.md) when building with Svelte 5 runes/attachments or SvelteKit 2 (`$app/state`, form actions).
|
|
78
|
+
- Read [references/solid.md](references/solid.md) when building with Solid or SolidStart 1.x (`query`, `createAsync`, `action`, `<Index>`/`<For>`).
|
|
79
|
+
- Read [references/angular.md](references/angular.md) when building with Angular 19–21 signals, zoneless mode, `httpResource`, incremental `@defer`, or NgRx SignalStore.
|
|
80
|
+
- Read [references/astro.md](references/astro.md) when building with Astro 5 Content Layer, Server Islands (`server:defer`), Actions, or `<ClientRouter />`.
|
|
81
|
+
- Read [references/qwik.md](references/qwik.md) when building resumable interfaces in Qwik 1.x/2.0 (`useTask$`, `useResource$`, `server$`).
|
|
82
|
+
- Read [references/preact-fresh-hono.md](references/preact-fresh-hono.md) when building with Preact (`@preact/signals`), Deno Fresh 2.0, Hono JSX/RPC (`hc`), RedwoodSDK, or Waku.
|
|
83
|
+
- Read [references/htmx-alpine.md](references/htmx-alpine.md) when building hypermedia interfaces with htmx 2.x, Alpine.js plugins, Datastar, or Unpoly.
|
|
84
|
+
- Read [references/lit-web-components.md](references/lit-web-components.md) when building Lit or standards-based Web Components with Shadow DOM and `ElementInternals`.
|
|
85
|
+
- Read [references/server-rendered.md](references/server-rendered.md) when building Rails 8/Hotwire (ViewComponent/Phlex), Laravel (Livewire/Filament/Flux/Inertia), Symfony UX, WordPress Gutenberg/Interactivity API, Django (Cotton/Ninja/Unfold/Wagtail), FastAPI+Jinja2, FastHTML, Phoenix LiveView, Blazor (FluentUI/MudBlazor/Radzen), Go `templ`/Gomponents, or Dart Jaspr.
|
|
86
|
+
- Read [references/leptos-yew.md](references/leptos-yew.md) when building Rust web apps in Leptos 0.7/0.8, Dioxus Web, Yew, or Axum + Askama/Maud + htmx.
|
|
87
|
+
- Read [references/kotlin-web.md](references/kotlin-web.md) when building Kotlin web apps in Compose Multiplatform Web (`wasmJs`/`js`) or Kobweb.
|
|
88
|
+
- Read [references/java-web.md](references/java-web.md) when building Java web UIs with Vaadin Flow, Vaadin Hilla, Spring + Thymeleaf + htmx, JTE, or Quarkus Qute.
|
|
89
|
+
- Read [references/elm.md](references/elm.md) when building Elm web applications.
|
|
90
|
+
- Read [references/clojurescript.md](references/clojurescript.md) when building ClojureScript UIs with UIx v2, Helix, or Reagent/re-frame.
|
|
91
|
+
- Read [references/fsharp-fable.md](references/fsharp-fable.md) when building F# Fable Feliz/Elmish apps with Vite.
|
|
92
|
+
- Read [references/scala-laminar.md](references/scala-laminar.md) when building Scala.js Laminar interfaces.
|
|
93
|
+
|
|
94
|
+
## Web engineering and UI architecture routing
|
|
95
|
+
|
|
96
|
+
- Read [references/adaptive-layout.md](references/adaptive-layout.md) when a web surface must adapt across phone, tablet, desktop, split window, shallow viewports, or mixed input modes.
|
|
97
|
+
- Read [references/styling-ecosystem.md](references/styling-ecosystem.md) when choosing CSS Modules, Lightning CSS, Sass, Panda CSS, vanilla-extract, Pigment CSS, StyleX, Tamagui Web, UnoCSS, Linaria, Open Props, CVA, or Tailwind Variants.
|
|
98
|
+
- Read [references/component-systems.md](references/component-systems.md) when selecting headless primitives (`@base-ui/react`, `radix-ui`, React Aria, Ark UI, Zag.js, Melt UI, Ariakit, Kobalte, Corvu, Reka UI, Bits UI), source-first kits (`shadcn/ui`, Park UI), enterprise suites, or Floating UI vs native popover.
|
|
99
|
+
- Read [references/interaction-and-search-primitives.md](references/interaction-and-search-primitives.md) when wiring command palettes (`cmdk`, `kbar`), drawers (`vaul`), toasts (`sonner`), carousels (Embla/Splide/Swiper), date pickers (`react-day-picker`), split panes (`react-resizable-panels`), search UIs (Pagefind, Orama, Fuse.js, InstantSearch, Meilisearch, Typesense), icons (Lucide, Phosphor, Tabler, Iconify), Fontsource fonts, or Unpic/ThumbHash images.
|
|
100
|
+
- Read [references/state-architecture.md](references/state-architecture.md) when designing URL state (`nuqs`), server caches (TanStack Query/DB, tRPC v11, oRPC, Apollo), client stores (Zustand, Pinia, NgRx SignalStore, Legend-State), XState v5, or IndexedDB (`Dexie`, `idb`).
|
|
101
|
+
- Read [references/forms-validation.md](references/forms-validation.md) when implementing TanStack Form, React Hook Form, Conform, SvelteKit Superforms, Modular Forms, VeeValidate, or Zod v4/Valibot/ArkType Standard Schema validation.
|
|
102
|
+
- Read [references/build-and-architecture.md](references/build-and-architecture.md) when configuring Vite 8/Rolldown/Environment API, Rsbuild/Rspack, Turbopack, `tsdown`, Bun, Biome/Oxlint, React Compiler, rendering modes, microfrontends, Web Workers, WASM, or Serwist/Workbox.
|
|
103
|
+
- Read [references/component-testing.md](references/component-testing.md) when setting up Storybook (`@storybook/addon-vitest`, `composeStories`), Vitest Browser Mode, MSW v2, Playwright (`page.clock`, ARIA/visual snapshots), or `axe-core` (`wcag22aa`).
|
|
104
|
+
- Read [references/pwa.md](references/pwa.md) when building installable, offline-capable, push-enabled, update-aware PWAs or testing iOS/iPadOS home-screen constraints.
|
|
105
|
+
- Read [references/enterprise-data-ui.md](references/enterprise-data-ui.md) when building headless tables (TanStack Table/Virtual), enterprise grids (AG Grid, MUI X Data Grid, Glide Data Grid), spreadsheets (Handsontable, Univer), or calendars/schedulers (FullCalendar, Schedule-X, Bryntum).
|
|
106
|
+
- Read [references/rich-text-and-code-editors.md](references/rich-text-and-code-editors.md) when building rich-text editors (ProseMirror, Tiptap, BlockNote, Lexical, Slate, Plate), read-only code highlighting (Shiki), code editors (CodeMirror 6, Monaco), playgrounds, or page builders (Puck).
|
|
107
|
+
- Read [references/canvas-and-node-editors.md](references/canvas-and-node-editors.md) when building whiteboards (tldraw, Excalidraw), 2D scene graphs (Konva, Fabric.js), node graphs (XYFlow/React Flow, Rete.js, Cytoscape), or drag-and-drop (dnd-kit, Pragmatic DnD).
|
|
108
|
+
- Read [references/local-first-sync.md](references/local-first-sync.md) when implementing offline-first or multiplayer sync (Yjs, Automerge, Zero, ElectricSQL, TanStack DB, PowerSync, Jazz, InstantDB, Convex, TinyBase, Liveblocks, RxDB, Durable Objects).
|
|
109
|
+
- Read [references/auth-and-checkout-ui.md](references/auth-and-checkout-ui.md) when building sign-in/auth UI (Better Auth, Clerk, Auth.js, Supabase), WebAuthn Level 3 Passkeys, OTP/MFA, or PCI-safe checkout (Stripe Embedded/Elements, Polar, Paddle, Lemon Squeezy).
|
|
110
|
+
- Read [references/file-upload-media-ui.md](references/file-upload-media-ui.md) when building S3/R2 presigned uploads, UploadThing, `tus-js-client`, Uppy, FilePond, clipboard paste, or Worker image compression.
|
|
111
|
+
- Read [references/i18n-engineering.md](references/i18n-engineering.md) when implementing `next-intl`, i18next, FormatJS, Lingui, Paraglide JS, Vue I18n, Angular localize, ICU plurals, `Intl.DurationFormat`, `Temporal`, RTL, or script/font fallbacks.
|
|
112
|
+
|
|
113
|
+
## Creative, motion, 3D, and media routing
|
|
114
|
+
|
|
115
|
+
- Read [references/creative-runtime.md](references/creative-runtime.md) when isolating motion, canvas, 3D, or media runtimes inside SSR/island web architectures.
|
|
116
|
+
- Read [references/gsap.md](references/gsap.md) when building GSAP 3.13+ timelines, ScrollTrigger, SplitText, Flip, Observer, `quickTo`, or `@gsap/react` lifecycles.
|
|
117
|
+
- Read [references/motion-react.md](references/motion-react.md) when implementing `motion/react`, `LazyMotion`, `AnimatePresence`, `LayoutGroup`, reduced-motion `MotionValue` gating, or vanilla `motion`.
|
|
118
|
+
- Read [references/smooth-scroll.md](references/smooth-scroll.md) before adding Lenis (`lenis/react`, `data-lenis-prevent`, `autoRaf: false`) or GSAP `ScrollSmoother`.
|
|
119
|
+
- Read [references/motion-recipes.md](references/motion-recipes.md) when implementing CSS scroll-driven animations, View Transition Types / `view-transition-class`, or interactive motion recipes.
|
|
120
|
+
- Read [references/rive-lottie.md](references/rive-lottie.md) when choosing or wiring Rive state machines/Data Binding or dotLottie (`.lottie`) vector animations.
|
|
121
|
+
- Read [references/scene-architecture.md](references/scene-architecture.md) when architecting Three.js scenes, `WebGPURenderer` (`three/webgpu`), TSL (`three/tsl`) node materials, Theatre.js choreography, Spline, or Unicorn Studio embeds.
|
|
122
|
+
- Read [references/r3f-integration.md](references/r3f-integration.md) when integrating React Three Fiber v9, `@react-three/postprocessing`, `@react-three/rapier`, and demand rendering (`invalidate`).
|
|
123
|
+
- Read [references/web-3d-engines.md](references/web-3d-engines.md) when choosing or implementing `<model-viewer>`, Babylon.js, PlayCanvas, Threlte v8, TresJS v5, luma.gl v9, or `regl`.
|
|
124
|
+
- Read [references/assets-pipeline.md](references/assets-pipeline.md) when optimizing GLB/glTF pipelines with `gltf-transform`, Meshopt, Draco, KTX2/Basis textures, and LODs.
|
|
125
|
+
- Read [references/rendering-performance.md](references/rendering-performance.md) when budgeting GPU frame times, DPR caps, offscreen pausing, and WebGL context loss/restoration.
|
|
126
|
+
- Read [references/rendering-choice.md](references/rendering-choice.md) when choosing DOM/SVG/Canvas 2D/PixiJS v8/WebGL/WebGPU and capability-detecting GPU backends.
|
|
127
|
+
- Read [references/shader-workflow.md](references/shader-workflow.md) when writing or debugging GLSL, WGSL, or TSL shaders with precision and reduced-motion uniforms.
|
|
128
|
+
- Read [references/creative-effects.md](references/creative-effects.md) when implementing deterministic seeded particle/noise/displacement effects and frozen-time QA hooks.
|
|
129
|
+
- Read [references/audio-reactive.md](references/audio-reactive.md) when wiring Web Audio `AnalyserNode`/`AudioWorklet` pipelines with StrictMode-safe `createMediaElementSource` guards.
|
|
130
|
+
- Read [references/video-media.md](references/video-media.md) when configuring AV1/HEVC/VP9/H.264 `<video>` delivery or `requestVideoFrameCallback` video textures.
|
|
131
|
+
- Read [references/media-players.md](references/media-players.md) when selecting or wiring Vidstack, Media Chrome, Mux Player, `hls.js` (`ManagedMediaSource`), Shaka, `dash.js`, Video.js, `wavesurfer.js`, `Howler.js`, or `Tone.js`.
|
|
132
|
+
- Read [references/accessibility-performance.md](references/accessibility-performance.md) when verifying `<track>` captions/descriptions, WCAG 2.2.2 pause controls, WCAG 2.3.1 flash limits, and media performance budgets.
|