@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Print CSS and CSS Paged Media
|
|
2
2
|
|
|
3
|
-
Browser print engines implement only part of CSS Paged Media.
|
|
3
|
+
Browser print engines implement only part of CSS Paged Media. Chromium 131+ supports CSS `@page` margin boxes, whereas Firefox and Safari still lag; dedicated paged-media engines (PrinceXML, WeasyPrint, Vivliostyle, Paged.js) implement the deeper specification. Validate every feature in the actual renderer before depending on it.
|
|
4
4
|
|
|
5
5
|
## Core `@page` model
|
|
6
6
|
|
|
@@ -25,27 +25,86 @@ Useful forms:
|
|
|
25
25
|
| Feature | Example | Notes |
|
|
26
26
|
|---|---|---|
|
|
27
27
|
| explicit dimensions | `size: 210mm 297mm;` | width then height |
|
|
28
|
-
| standard size/orientation | `size: letter landscape;` |
|
|
28
|
+
| standard size/orientation | `size: letter landscape;` | verify automatic orientation inversion per renderer |
|
|
29
29
|
| page margins | `margin: 18mm 15mm;` | physical margin inside paper edge |
|
|
30
30
|
| named pages | `page: invoice;` + `@page invoice` | assign from an element; renderer support is not universal |
|
|
31
|
-
| pseudo pages | `@page :first`, `:left`, `:right`, `:blank` |
|
|
32
|
-
| page counter | `counter(page)` | current page number
|
|
33
|
-
| total counter | `counter(pages)` | total page count
|
|
34
|
-
| margin boxes | `@bottom-right { content: counter(page); }` |
|
|
31
|
+
| pseudo pages | `@page :first`, `:left`, `:right`, `:blank` | essential for duplex/book layouts; test in target engine |
|
|
32
|
+
| page counter | `counter(page)` | current page number inside `@page` margin boxes |
|
|
33
|
+
| total counter | `counter(pages)` | total page count inside `@page` margin boxes |
|
|
34
|
+
| margin boxes | `@bottom-right { content: counter(page) " / " counter(pages); }` | supported in Chromium 131+, PrinceXML, WeasyPrint, Vivliostyle, and Paged.js; Firefox/Safari still lag |
|
|
35
35
|
|
|
36
|
-
Margin boxes include `@top-left`, `@top-center`, `@top-right`, `@bottom-left`, `@bottom-center`, `@bottom-right`, and side margin boxes
|
|
36
|
+
Margin boxes include `@top-left`, `@top-center`, `@top-right`, `@bottom-left`, `@bottom-center`, `@bottom-right`, and side margin boxes. Chromium 131+ (including Playwright/Puppeteer and Gotenberg Chromium) supports CSS `@page` margin boxes, while Firefox and Safari still lack full margin-box support. Do not rely on `@page` margin boxes for cross-browser native `window.print()`; use them confidently in controlled Chromium PDF pipelines, PrinceXML, WeasyPrint, Vivliostyle, or Paged.js.
|
|
37
|
+
|
|
38
|
+
## Modern CSS Paged Media idioms
|
|
39
|
+
|
|
40
|
+
These rules work in dedicated paged-media engines (PrinceXML, WeasyPrint, Vivliostyle, and partially Paged.js); native browser print does not support them reliably:
|
|
41
|
+
|
|
42
|
+
```css
|
|
43
|
+
/* 1. Dynamic running section headers via string-set + string() */
|
|
44
|
+
h1.chapter-title {
|
|
45
|
+
string-set: chapter content(text);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@page {
|
|
49
|
+
@top-center {
|
|
50
|
+
content: string(chapter, first); /* first | start | last | first-except */
|
|
51
|
+
font-size: 8.5pt;
|
|
52
|
+
color: #4b5563;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* 2. Automatic Table of Contents dot leaders and target page numbers */
|
|
57
|
+
nav.toc a::after {
|
|
58
|
+
content: " " leader('.') " " target-counter(attr(href url), page);
|
|
59
|
+
font-variant-numeric: tabular-nums;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* 3. True paged-media footnotes */
|
|
63
|
+
@page {
|
|
64
|
+
@footnote {
|
|
65
|
+
border-top: 0.5pt solid #9ca3af;
|
|
66
|
+
padding-top: 3mm;
|
|
67
|
+
margin-top: 4mm;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
span.fn {
|
|
72
|
+
float: footnote;
|
|
73
|
+
font-size: 8.5pt;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
::footnote-call {
|
|
77
|
+
content: counter(footnote);
|
|
78
|
+
vertical-align: super;
|
|
79
|
+
font-size: 75%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
::footnote-marker {
|
|
83
|
+
content: counter(footnote) ". ";
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Test `string()` edge cases on pages without headings, verify `target-counter()` resolves across multi-pass renders, and keep footnote density bounded so footnote blocks do not push body paragraphs into infinite page loops.
|
|
37
88
|
|
|
38
89
|
## Fragmentation control
|
|
39
90
|
|
|
40
91
|
Use modern properties plus legacy aliases only when needed by the target renderer:
|
|
41
92
|
|
|
42
93
|
```css
|
|
43
|
-
h2, h3 {
|
|
94
|
+
h1, h2, h3 {
|
|
44
95
|
break-after: avoid;
|
|
45
96
|
break-inside: avoid;
|
|
46
97
|
}
|
|
47
98
|
|
|
48
|
-
|
|
99
|
+
thead {
|
|
100
|
+
display: table-header-group; /* repeat column headers at the top of every split page */
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
tfoot {
|
|
104
|
+
display: table-footer-group;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
tr, figure, .signature-block, .total-row {
|
|
49
108
|
break-inside: avoid;
|
|
50
109
|
}
|
|
51
110
|
|
|
@@ -62,11 +121,9 @@ table {
|
|
|
62
121
|
|---|---|---|
|
|
63
122
|
| `break-before: page` | force a break before the element | use for chapters/major sections, not every card |
|
|
64
123
|
| `break-after: avoid` | prevent a break immediately after | essential for headings before content |
|
|
65
|
-
| `break-inside: avoid` | keep a box together where possible | use for figures/signatures/totals,
|
|
66
|
-
| `
|
|
67
|
-
| `widows` | minimum lines carried to next page |
|
|
68
|
-
|
|
69
|
-
Tables need separate rules: repeat `<thead>` where the renderer supports it, avoid breaking rows (`tr { break-inside: avoid; }`), and never apply `break-inside: avoid` to a table taller than one page.
|
|
124
|
+
| `break-inside: avoid` | keep a box together where possible | use for `tr`/figures/signatures/totals, never entire multi-page tables |
|
|
125
|
+
| `thead { display: table-header-group }` | repeat table header across page breaks | mandatory on multi-page financial, audit, and line-item tables |
|
|
126
|
+
| `orphans` / `widows` | minimum lines at bottom / carried to next page | set `orphans: 3; widows: 3;` and inspect real paragraph lengths |
|
|
70
127
|
|
|
71
128
|
## Physical units and typography
|
|
72
129
|
|
|
@@ -76,59 +133,55 @@ Exact relationships in CSS print:
|
|
|
76
133
|
1in = 25.4mm = 72pt = 96 CSS px
|
|
77
134
|
```
|
|
78
135
|
|
|
79
|
-
Use `mm`, `cm`, `in`, and `pt` for print-critical dimensions. Use `px` only for hairline rules or screen-first components whose conversion is intentional. Body copy for ordinary print often starts around 9–11pt depending on typeface, measure, and audience; legal/compact tables may go smaller only when tested at 100%.
|
|
136
|
+
Use `mm`, `cm`, `in`, and `pt` for print-critical dimensions. Use `px` only for hairline rules or screen-first components whose conversion is intentional. Body copy for ordinary print often starts around 9–11pt depending on typeface, measure, and audience; legal/compact tables may go smaller only when tested at 100%. Verify x-height, paper, contrast, and reader needs rather than copying arbitrary numbers.
|
|
80
137
|
|
|
81
138
|
Design a type system:
|
|
82
139
|
|
|
83
140
|
- measure: often 60–90 characters for prose, narrower for dense reference matter;
|
|
84
|
-
- leading: enough for script/ascenders/diacritics; CJK/Indic/Arabic
|
|
85
|
-
- hyphenation/line breaking: language-dependent and renderer-dependent;
|
|
86
|
-
- font embedding
|
|
87
|
-
- fallback: test Latin diacritics, CJK, RTL, Indic shaping, symbols, emoji, and numeric styles actually used.
|
|
88
|
-
|
|
89
|
-
## Print color and backgrounds
|
|
141
|
+
- leading: enough for script/ascenders/diacritics; CJK/Indic/Arabic/Vietnamese stacked diacritics need generous leading;
|
|
142
|
+
- hyphenation/line breaking: language-dependent (`lang` attribute required for `hyphens: auto`) and renderer-dependent;
|
|
143
|
+
- font embedding, `ToUnicode` CMap, and license: verify `pdffonts` (`emb=yes`, `uni=yes`) so ligatures (`fi`, `fl`), Vietnamese, and CJK copy cleanly without `□` tofu.
|
|
90
144
|
|
|
91
|
-
|
|
145
|
+
## Dual print profiles: Office Grayscale vs Commercial Prepress (`PDF/X-4`)
|
|
92
146
|
|
|
93
|
-
|
|
147
|
+
Select and design against the exact target print profile rather than mixing screen RGB habits with print-shop assumptions:
|
|
94
148
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## Bleed, trim, and printer marks
|
|
102
|
-
|
|
103
|
-
Professional print artifacts use bleed so color/images extend beyond trim:
|
|
149
|
+
| Dimension | Profile A — Digital & Office Grayscale Proof | Profile B — Commercial Prepress (`PDF/X-4`) |
|
|
150
|
+
|---|---|---|
|
|
151
|
+
| **Margins & bleed** | **`10–12mm` minimum safe outer margin** (office laser/inkjet unprintable gripper edge); `0mm` bleed | **`3mm` (`0.125"`) bleed on all 4 sides** (`TrimBox` + `BleedBox`) + **`5mm` inner trim safety inset** for all live text/logos |
|
|
152
|
+
| **Color & ink budget** | sRGB with `-webkit-print-color-adjust: exact` / `print-color-adjust: exact`, **verified in grayscale** and with backgrounds disabled (`>= 4.5:1` contrast on white paper; patterns/direct labels distinguish red vs green series without color ink) | Target CMYK ICC output intent (e.g. `FOGRA39` / `ISO Coated v2` or `GRACoL 2013`), **Total Area Coverage `TAC <= 300%`**; **body black text (`< 18–24pt`) strictly `100% K` overprint (`C0 M0 Y0 K100`)**—never 4-plate rich black (`C60 M40 Y40 K100`), which ghosts/halos from press plate misregistration |
|
|
153
|
+
| **Graphics & DPI** | Strict vector SVG/PDF primitives for charts/logos; `150–300 DPI` photos | Strict vector SVG/PDF primitives for charts/logos/type; **`>= 300 effective DPI` at final printed dimensions** for continuous-tone photography |
|
|
154
|
+
| **Navigation & compliance** | Clickable TOC outline/bookmarks, hyperlinks, and **`PDF/UA-1` / `PDF/UA-2`** tag tree | **`PDF/X-4`** output intent, crop/registration marks outside bleed box (`marks: crop cross`), embedded fonts (`100%` subset/full), flattened or `PDF/X-4` live transparency per print shop spec |
|
|
104
155
|
|
|
105
156
|
```css
|
|
157
|
+
/* Commercial Prepress (@page in PrinceXML / WeasyPrint / Vivliostyle) */
|
|
106
158
|
@page {
|
|
107
159
|
size: 210mm 297mm;
|
|
160
|
+
margin: 16mm; /* >= 5mm trim safety inset strictly respected */
|
|
108
161
|
bleed: 3mm;
|
|
109
162
|
marks: crop cross;
|
|
110
163
|
}
|
|
111
164
|
```
|
|
112
165
|
|
|
113
|
-
Support for `bleed` and `
|
|
166
|
+
Support for `bleed`, `marks`, and `cmyk()` / ICC profiles is renderer-specific (PrinceXML, WeasyPrint, Vivliostyle) and absent from native browser print. In Typst, verify pinned version flags or expand page dimensions (`width: 210mm + 6mm, height: 297mm + 6mm`) with explicit trim marks (see [pdf-tools.md](pdf-tools.md)).
|
|
114
167
|
|
|
115
168
|
## Browser print limitations
|
|
116
169
|
|
|
117
|
-
Native browser
|
|
170
|
+
Native cross-browser `window.print()` is suitable for simple documents, but still has gaps:
|
|
118
171
|
|
|
119
|
-
-
|
|
120
|
-
- inconsistent named-page and counter behavior;
|
|
121
|
-
-
|
|
122
|
-
- page background/
|
|
123
|
-
- no reliable crop marks/bleed.
|
|
172
|
+
- `@page` margin boxes work in Chromium 131+, while Firefox and Safari still lag;
|
|
173
|
+
- inconsistent named-page, `:blank`, and counter behavior across engines;
|
|
174
|
+
- no cross-browser support for `string-set`, `target-counter()`, `leader()`, or `@footnote` / `float: footnote`;
|
|
175
|
+
- page background and header/footer toggles remain under end-user print-dialog control;
|
|
176
|
+
- no reliable crop marks/bleed or PDF/A / PDF/X prepress profiles.
|
|
124
177
|
|
|
125
|
-
Use
|
|
178
|
+
Use browser print when the user invokes print directly and simple pagination is acceptable. Use Playwright/Gotenberg, PrinceXML, Vivliostyle, Paged.js, WeasyPrint, Typst, LaTeX, or React-PDF when exact pagination is a product requirement.
|
|
126
179
|
|
|
127
180
|
## Verification protocol
|
|
128
181
|
|
|
129
182
|
1. Print-preview or generate PDF with real content length distribution.
|
|
130
|
-
2. Inspect every page at 100% zoom and physically printed scale when possible.
|
|
183
|
+
2. Inspect every page at 100% zoom and physically printed scale when possible (`rendered`).
|
|
131
184
|
3. Test first/middle/last page, blank pages, duplex left/right, repeated table headers, footnotes, figures, and totals.
|
|
132
|
-
4. Text-select/search/extract output. Invisible vector text or rasterized type is an accessibility failure unless explicitly accepted.
|
|
185
|
+
4. Text-select/search/extract output (`pdftotext`). Invisible vector text or rasterized type is an accessibility failure unless explicitly accepted.
|
|
133
186
|
5. Compare light/dark/backgrounds-disabled/grayscale outputs.
|
|
134
|
-
6. Label unavailable verification `not-checked`; do not infer correct pagination from
|
|
187
|
+
6. Label unavailable verification `not-checked`; do not infer correct pagination from screen layout.
|
|
@@ -7,12 +7,12 @@ Slides are performance aids viewed at distance. They are not dense reports paste
|
|
|
7
7
|
| Concern | Practical rule |
|
|
8
8
|
|---|---|
|
|
9
9
|
| idea density | one claim/idea per slide; split sequences instead of shrinking everything |
|
|
10
|
-
| type scale |
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
| accessibility |
|
|
10
|
+
| type scale | **`>= 24pt` body floor for live room projection** (`>= 36–60pt` key claims/titles); step down to **`>= 18pt` strictly for dense read-alone leave-behind decks**—never drop below `18pt` for body or axis labels |
|
|
11
|
+
| master slides | define reusable **Master Slide** layouts (`Title`, `Section`, `1-Col`, `2-Col Evidence`, `Stat/Quote`) for consistent margins, grid anchors, running footers, and slide numbers instead of nudging text boxes manually per slide |
|
|
12
|
+
| safe area & frame | author `16:9` (`1920×1080` or `10" × 5.625"`) with pixel-snapped assets inside the central `90–95%` safe zone; keep total `.pptx`/`.pdf` deck size **`< 25–30 MB`** so email attachments and corporate upload portals never reject the file |
|
|
13
|
+
| contrast & fonts | high contrast for washed-out venue projectors (`>= 7:1` preferred); embed licensed subsetted fonts or restrict editable `.pptx` decks to universal cross-OS fonts (`Aptos`/`Calibri`/`Arial`/`Segoe UI`) so line breaks never shift on the presenter laptop |
|
|
14
|
+
| motion | transitions only when they explain sequence/object constancy; export both presenter build and flattened-step static handout PDF |
|
|
15
|
+
| parity & accessibility | verify **`PPTX <-> PDF` visual parity** (convert `.pptx` via PowerPoint/LibreOffice to PDF and inspect every slide for reflow, font substitution, or clipped callouts), reading order, alt text, and color-independent chart labels |
|
|
16
16
|
|
|
17
17
|
Common slide sizes:
|
|
18
18
|
|
|
@@ -35,42 +35,138 @@ Common slide sizes:
|
|
|
35
35
|
|
|
36
36
|
## Slidev
|
|
37
37
|
|
|
38
|
-
Slidev uses Markdown-driven slides with Vue
|
|
38
|
+
Slidev uses Markdown-driven slides (`---` separators) with Vue components, MDC inline styling, and Shiki Magic Move code transitions:
|
|
39
|
+
|
|
40
|
+
````markdown
|
|
41
|
+
---
|
|
42
|
+
theme: default
|
|
43
|
+
title: Query Planner Walkthrough
|
|
44
|
+
mdc: true
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# Step-by-step index scan [v2.4]{.text-sm.px-2.py-0.5.rounded.bg-emerald-900.text-emerald-100}
|
|
48
|
+
|
|
49
|
+
````md magic-move
|
|
50
|
+
```sql
|
|
51
|
+
SELECT * FROM events WHERE org_id = $1;
|
|
52
|
+
```
|
|
53
|
+
```sql
|
|
54
|
+
SELECT id, created_at FROM events
|
|
55
|
+
WHERE org_id = $1
|
|
56
|
+
ORDER BY created_at DESC LIMIT 50;
|
|
57
|
+
```
|
|
58
|
+
````
|
|
59
|
+
|
|
60
|
+
<!--
|
|
61
|
+
Speaker notes: explain why the covering index eliminates heap fetches.
|
|
62
|
+
-->
|
|
63
|
+
````
|
|
64
|
+
|
|
65
|
+
Export commands (uses Playwright Chromium underneath—pin fonts and assets so headless export matches live preview):
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npx slidev export --format pdf --with-clicks --output deck.pdf
|
|
69
|
+
# WARNING: Slidev --format pptx exports flattened raster slide images, NOT editable PowerPoint text or Slide Masters!
|
|
70
|
+
npx slidev export --format pptx --output deck.pptx
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
> **Editable `.pptx` handoff warning:** `slidev export --format pptx` screenshots each slide into a non-editable PNG inside PowerPoint. Never deliver a Slidev `.pptx` when executives or clients expect editable text, live charts, or native Slide Masters—use **`PptxGenJS`** (see [pdfjs-and-pptx.md](pdfjs-and-pptx.md)), **Quarto `--to pptx` with `reference-doc`**, or native PowerPoint/Keynote masters instead.
|
|
39
74
|
|
|
40
75
|
Rules:
|
|
41
76
|
|
|
42
|
-
- keep Markdown
|
|
43
|
-
- use
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- test presenter mode/keyboard navigation if used live.
|
|
77
|
+
- enable `mdc: true` in deck frontmatter only when MDC inline syntax is actually used, and keep Markdown readable without custom components;
|
|
78
|
+
- use `magic-move` to explain genuine code diffs across 2–4 concise steps rather than scrolling walls of 40-line files;
|
|
79
|
+
- validate syntax highlighting contrast and line wrapping in both light/dark exports (`--dark`) and live presenter mode;
|
|
80
|
+
- test keyboard navigation (`Space`, arrows, `o` overview) and click steps (`--with-clicks`) when exporting PDF handouts.
|
|
47
81
|
|
|
48
82
|
## reveal.js
|
|
49
83
|
|
|
50
|
-
reveal.js initializes a scalable slide deck in the browser
|
|
84
|
+
reveal.js initializes a scalable slide deck in the browser:
|
|
51
85
|
|
|
52
86
|
```js
|
|
53
87
|
Reveal.initialize({
|
|
54
|
-
width:
|
|
55
|
-
height:
|
|
88
|
+
width: 1280,
|
|
89
|
+
height: 720,
|
|
56
90
|
margin: 0.04,
|
|
57
91
|
minScale: 0.2,
|
|
58
92
|
maxScale: 2.0,
|
|
93
|
+
center: false,
|
|
59
94
|
});
|
|
60
95
|
```
|
|
61
96
|
|
|
62
|
-
|
|
97
|
+
Default sizing in reveal.js is `960×700`; explicitly set `width: 1280, height: 720` for modern 16:9 venues, and set `center: false` when fixed vertical alignment matters. `embedded: true` changes sizing for embedded decks and requires explicit layout responsibility.
|
|
63
98
|
|
|
64
99
|
Rules:
|
|
65
100
|
|
|
66
|
-
- test keyboard navigation, fragments, overflow scrolling, PDF export
|
|
101
|
+
- test keyboard navigation, fragments, overflow scrolling, PDF export (`?print-pdf`), speaker view (`S`), and browser scaling;
|
|
67
102
|
- do not rely on automatic scaling to rescue overcrowded slides;
|
|
68
103
|
- fragments should reveal logic, not every bullet merely for rhythm;
|
|
69
|
-
- nested
|
|
104
|
+
- nested vertical slides need clear navigation cues so audiences do not lose orientation.
|
|
105
|
+
|
|
106
|
+
## Quarto RevealJS
|
|
107
|
+
|
|
108
|
+
Use Quarto RevealJS (`.qmd`) when slides embed live computational charts, tables, or code outputs from Python, R, Julia, or Observable:
|
|
109
|
+
|
|
110
|
+
```markdown
|
|
111
|
+
---
|
|
112
|
+
title: "Latency Distribution Q4"
|
|
113
|
+
format:
|
|
114
|
+
revealjs:
|
|
115
|
+
width: 1280
|
|
116
|
+
height: 720
|
|
117
|
+
slide-number: true
|
|
118
|
+
smaller: false
|
|
119
|
+
theme: [default, custom.scss]
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## P99 tail latency {auto-animate=true}
|
|
123
|
+
|
|
124
|
+
```{python}
|
|
125
|
+
#| echo: true
|
|
126
|
+
#| code-line-numbers: "1-2|4"
|
|
127
|
+
import polars as pl
|
|
128
|
+
df = pl.read_parquet("metrics.parquet")
|
|
129
|
+
# Highlighted on step 2
|
|
130
|
+
p99 = df.select(pl.col("ms").quantile(0.99))
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
::: {.notes}
|
|
134
|
+
Speaker note: cite the exact dataset revision and sample size.
|
|
135
|
+
:::
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Render with `quarto render talk.qmd --to revealjs` and verify `quarto render` PDF print output (`?print-pdf` or DeckTape) so interactive widgets/plots have static fallbacks.
|
|
139
|
+
|
|
140
|
+
## Touying and Polylux (Typst slides)
|
|
141
|
+
|
|
142
|
+
Use **Touying** (recommended for Typst 0.12–0.14+) or **Polylux** when exact physical typography, vector math/diagrams (`CeTZ`), speaker notes, and deterministic browser-free PDF compilation matter:
|
|
143
|
+
|
|
144
|
+
```typst
|
|
145
|
+
#import "@preview/touying:0.6.1": *
|
|
146
|
+
#import themes.simple: *
|
|
147
|
+
|
|
148
|
+
#show: simple-theme.with(aspect-ratio: "16-9")
|
|
149
|
+
#set text(font: "Inter", size: 22pt)
|
|
150
|
+
|
|
151
|
+
= Architecture Trade-offs
|
|
152
|
+
|
|
153
|
+
== State Isolation
|
|
154
|
+
|
|
155
|
+
- Keep domain logic pure. #pause
|
|
156
|
+
- Push rendering and I/O to edges.
|
|
157
|
+
|
|
158
|
+
#speaker-note[Walk through the single failure trace from last week's incident.]
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Rules:
|
|
162
|
+
|
|
163
|
+
- pin `@preview/touying` or `@preview/polylux` versions and bundle fonts via `typst compile --font-path ./fonts`;
|
|
164
|
+
- generate both presenter deck (with `#pause` progressive reveals) and static handout mode (`config-common(handout: true)` in Touying) so PDF readers do not click through 80 duplicate build frames;
|
|
165
|
+
- inspect exported PDF metadata, selectable text, and contrast at projection scale.
|
|
70
166
|
|
|
71
167
|
## Marp
|
|
72
168
|
|
|
73
|
-
Marp uses Markdown with directives in frontmatter
|
|
169
|
+
Marp uses Markdown with directives in frontmatter:
|
|
74
170
|
|
|
75
171
|
```markdown
|
|
76
172
|
---
|
|
@@ -81,20 +177,20 @@ size: 16:9
|
|
|
81
177
|
---
|
|
82
178
|
```
|
|
83
179
|
|
|
84
|
-
|
|
180
|
+
Rules:
|
|
85
181
|
|
|
86
|
-
- choose or create a theme rather than accepting default typography by accident;
|
|
87
|
-
- use directives consistently (`paginate`, `header`, `footer`, `size`) and inspect actual output
|
|
88
|
-
- keep Markdown semantic; do not inject fragile HTML/CSS
|
|
89
|
-
- test image resolution, math/syntax highlighting,
|
|
182
|
+
- choose or create a theme CSS (`--theme-set`) rather than accepting default typography by accident;
|
|
183
|
+
- use directives consistently (`paginate`, `header`, `footer`, `size`) and inspect actual output via `npx @marp-team/marp-cli deck.md --pdf --allow-local-files`;
|
|
184
|
+
- keep Markdown semantic; do not inject fragile raw HTML/CSS on every slide;
|
|
185
|
+
- test image resolution, math/syntax highlighting, and font availability in CI export containers.
|
|
90
186
|
|
|
91
187
|
## Export and live verification
|
|
92
188
|
|
|
93
|
-
- inspect slides at 100% authored frame and projected/scaled size;
|
|
189
|
+
- inspect slides at 100% authored frame and projected/scaled size (`rendered`);
|
|
94
190
|
- test first/middle/last slides, overflow, long titles, missing images/fonts, offline assets, presenter notes, and laser/pointer contrast;
|
|
95
191
|
- export PDF/PPTX/video using the real pipeline and inspect frame edges;
|
|
96
|
-
- verify embedded fonts/licenses where applicable;
|
|
97
|
-
-
|
|
192
|
+
- verify embedded fonts/licenses (`pdffonts`) where applicable;
|
|
193
|
+
- test with a clicker/keyboard path rather than assuming mouse control;
|
|
98
194
|
- label accessibility and export verification honestly (`rendered` versus `not-checked`).
|
|
99
195
|
|
|
100
196
|
## Anti-slop warnings
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pixelcraft-email
|
|
3
|
-
description: Translates Pixelcraft direction, tokens, UX, and floor requirements into email that survives real clients. Use for HTML email, table-based email, MJML, React Email, transactional messages, newsletters, onboarding email, dark mode, image blocking, plaintext parity, accessibility, localization, responsive behavior, client quirks, and deliverability-conscious design.
|
|
3
|
+
description: Translates Pixelcraft direction, tokens, UX, and floor requirements into email that survives real clients. Use for HTML email, table-based email, MJML, React Email, Maizzle, Vue Email, Resend, Loops, AMP for Email, BIMI, transactional messages, newsletters, onboarding email, Outlook, Gmail clipping, dark mode, image blocking, plaintext parity, accessibility, localization, responsive behavior, client quirks, and deliverability-conscious design.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -16,43 +16,65 @@ Make the subject and opening live text state who sent the message, why it matter
|
|
|
16
16
|
|
|
17
17
|
## Detection signals
|
|
18
18
|
|
|
19
|
-
`.mjml`, React Email packages
|
|
19
|
+
`.mjml`, React Email / Vue Email / Svelte Email packages, `maizzle.config.*`, table-heavy HTML email, inline CSS tooling, ESP templates (Resend, Loops, Postmark, Stripo), plaintext templates, MIME generation, email screenshots/previews, localization catalogs.
|
|
20
20
|
|
|
21
21
|
## Translate direction with constrained fidelity
|
|
22
22
|
|
|
23
23
|
1. Preserve concept through hierarchy, typography fallback, spacing, real copy, restrained color, and signature structure—not fragile pixel precision.
|
|
24
24
|
2. Map tokens manually into inline/table-compatible values or generator constants. CSS variables are unreliable across clients.
|
|
25
|
-
3. Choose implementation: hand-written tables for maximum control, MJML for responsive abstraction, React Email for component workflow. Do not pretend they produce identical client support automatically.
|
|
25
|
+
3. Choose implementation: hand-written tables for maximum control, MJML for responsive abstraction, React Email (or Vue/Svelte Email) for component workflow, or Maizzle for Tailwind CSS inlining and purging. Do not pretend they produce identical client support automatically.
|
|
26
26
|
4. Design image-off and plaintext as first-class variants, not fallbacks written afterward.
|
|
27
27
|
5. Use progressive enhancement: modern clients may receive polish; baseline must remain readable/actionable everywhere.
|
|
28
28
|
|
|
29
29
|
## Platform-wide rules
|
|
30
30
|
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
31
|
+
- **Zero external dependency for core meaning**: primary message and CTA must work without images, custom fonts, CSS backgrounds, animation, JavaScript, forms, or exact viewport control.
|
|
32
|
+
- **Pre-ESP HTML & `<style>` byte budgets + `GANGA` inline survival**: keep pre-ESP compiled HTML **`< 85–90 KB` target** (`< 80 KB` ideal headroom before ESP click-tracking link wrapping hits Gmail's **`102 KB`** hard clip); keep `<style>` **`<= 8–16 KB`** with **zero modern CSS (`@layer`, `@property`, CSS nesting)** inside `<style>` (any unsupported syntax causes Gmail to strip the **entire** `<style>` block!); and ensure **Gmail Non-Google Account (`GANGA` IMAP/POP)** survival where `<style>` is stripped completely so layout and `>= 4.5:1` contrast hold on inline CSS alone.
|
|
33
|
+
- **Merge-tag fallbacks, descriptive links & Dual-Engine CTAs**: define **explicit personalization merge-tag fallbacks** (e.g., `{{ first_name | default: "there" }}`—never rendering raw `{{name}}` or blank awkward gaps); write **self-describing link text** (**never `"click here"`**); pair `<!--[if mso]><v:roundrect>` with `<!--[if !mso]><!--><table role="presentation"><tr><td bgcolor="..." style="border-radius:..."><a>` for Classic + New Outlook; and pad hidden preheaders with 50–90 repeats (`~140+` chars) of `͏‌ `.
|
|
34
|
+
- **3-Regime Dark Mode survival**: design simultaneously for (1) **No change**, (2) **Partial inversion / CSS opt-in** (`Apple Mail`, `Outlook.com` / `New Outlook`, `Gmail iOS`), and (3) **Full forced inversion** (`Gmail Android`, `Classic Outlook Windows`). Declare `color-scheme: light dark`, wire `.light-img`/`.dark-img` swaps where supported, and add a **subtle light keyline/halo (`1–2px`) or translucent pill** around dark logos/icons so forced `#121212` backgrounds never swallow brand marks.
|
|
35
|
+
- **2025–2026 Bulk Sender Mandate (Gmail, Yahoo, Outlook.com)**:
|
|
36
|
+
- Authenticate with aligned **`SPF` + `DKIM` (`>= 2048-bit`) + `DMARC` (`p=quarantine` or `p=reject`)**; optionally add **`BIMI`** (`SVG Tiny-PS` + VMC/CMC) for verified sender avatars.
|
|
37
|
+
- Include **`List-Unsubscribe` + `List-Unsubscribe-Post: List-Unsubscribe=One-Click` (`RFC 8058`)** honored within **`<= 48h` with zero login wall** on all promotional/bulk mail, and keep transactional mail (receipts, OTPs, security alerts) strictly free of marketing upsells.
|
|
38
|
+
- Hold Postmaster spam complaint rates **`< 0.10%` target** (**`0.30%` hard block**).
|
|
39
|
+
- Account for **Apple Mail Privacy Protection (MPP)** proxy pre-fetches: never treat open pixels as human reads or gate workflows on opens; measure clicks, replies, and conversions.
|
|
40
|
+
- **Plaintext & accessibility parity**: ship a complete `text/plain` MIME companion matching HTML order, URLs, dates, and unsubscribe/legal text; set `lang`, `dir`, `<title>`, semantic `<h1>`–`<h3>`/`<p>`, `alt` text, descriptive anchor copy, and `role="presentation"` on every layout `<table>`.
|
|
41
|
+
|
|
42
|
+
## Anti-lazy-default & anti-slop guard
|
|
43
|
+
|
|
44
|
+
- **Never paste modern-CSS web layouts into email**: raw `display: flex`, CSS Grid, `position: fixed`, CSS custom properties, `@layer`/`@property`/nesting inside `<style>`, and uninlined utility sheets shatter in Classic Outlook, strip Gmail `<style>` blocks, fail `GANGA` IMAP/POP clients, and bloat past Gmail's `102 KB` clip threshold.
|
|
45
|
+
- **Pick an explicit email pipeline first**: commit to **MJML**, **React Email**, **Maizzle**, or hand-authored **HTML tables** (with MSO conditional comments) before writing markup.
|
|
46
|
+
- **Reject image-only hero blasts and bare `<a>` buttons**: never hide headlines, dates, prices, or CTAs inside a raster banner, never write vague `"click here"` links, and never ship a bare `<a style="padding:...">` CTA whose hit area and fill collapse in Classic Outlook.
|
|
37
47
|
|
|
38
48
|
## Common email failures
|
|
39
49
|
|
|
40
|
-
- beautiful hero image containing all essential copy;
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
50
|
+
- beautiful hero image containing all essential copy, or generic `"click here"` link text;
|
|
51
|
+
- raw `{{name}}` merge tags leaking when recipient profile fields are null/empty;
|
|
52
|
+
- `@layer`, `@property`, or CSS nesting inside `<style>` causing Gmail to strip the entire `<style>` block, or uninlined styles collapsing in `GANGA` (IMAP/POP);
|
|
53
|
+
- bare `<a>` or VML-only CTA breaking in Classic Outlook or vanishing in New Outlook;
|
|
54
|
+
- dark logo/icon vanishing on forced `#121212` dark-mode backgrounds (`Gmail Android` / `Outlook Windows`);
|
|
55
|
+
- short 3-repeat preheader spacer leaking `"View in browser"` into 120-char inbox snippets;
|
|
56
|
+
- promotional mail missing `RFC 8058` one-click unsubscribe headers or gating unsubscribe behind a login wall;
|
|
57
|
+
- HTML exceeding `< 85–90 KB` pre-ESP (`102 KB` post-ESP) and clipping legal/unsubscribe footers, or missing `text/plain` parity.
|
|
48
58
|
|
|
49
59
|
## Verification options
|
|
50
60
|
|
|
51
|
-
|
|
61
|
+
Run `check-email.mjs` (`pixelcraft-visual-qa`) on compiled HTML + `text/plain` (`static`), then render across representative real clients or preview rigs (including `<style>`-stripped `GANGA` mode, all 3 dark-mode regimes, narrow mobile width, null-merge-tag fixture, and images-off mode) (`rendered`; **Rule #0.3** forbids counting browser-tab or `static` checks as client-rendered `pass`). Label untested clients `not-checked`.
|
|
62
|
+
|
|
63
|
+
## Pre-submit checklist
|
|
64
|
+
|
|
65
|
+
- [ ] zero `TODO`s, placeholder copy, raw `{{merge}}` leaks (**merge-tag fallbacks tested with null/empty data**), `"click here"` links, or dead CTA/unsubscribe URLs;
|
|
66
|
+
- [ ] explicit email pipeline used (MJML, React Email, Maizzle, or tested HTML tables)—no Flexbox/Grid/`var(--)` web markup;
|
|
67
|
+
- [ ] pre-ESP HTML **`< 85–90 KB` target** (`< 102 KB` post-ESP hard cap), `<style>` **`<= 8–16 KB`** with **zero `@layer` / `@property` / CSS nesting**, **`GANGA` (`<style>`-stripped) inline survival**, and `~140+`-char padded preheader (`50–90` `͏‌ ` repeats);
|
|
68
|
+
- [ ] Bulletproof Dual-Engine CTA (`<!--[if mso]><v:roundrect>` + `<td bgcolor>` HTML `<a>`) survives Classic & New Outlook;
|
|
69
|
+
- [ ] primary message, logos (with light halo/pill or `.dark-img` swap), descriptive links, and CTA survive images off and all 3 dark-mode regimes;
|
|
70
|
+
- [ ] bulk/promotional headers (`SPF`/`DKIM >= 2048-bit`/`DMARC`, `RFC 8058` one-click unsubscribe `<= 48h` no-login, `< 0.10%` complaint design, MPP-safe analytics) addressed;
|
|
71
|
+
- [ ] full `text/plain` MIME parity, `lang`/`dir`/`<title>`, and `role="presentation"` on every layout `<table>`;
|
|
72
|
+
- [ ] **Checklist-Until-Passing Stop-Gate (`<HARD-GATE>`):** walk every checklist item above + run `slop-scan.mjs --fail-on p2`, `check-email.mjs --plaintext --headers`, 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/client/a11y per `Rule #0.3`).
|
|
52
73
|
|
|
53
74
|
## Framework routing
|
|
54
75
|
|
|
55
|
-
- Read [references/html-tables.md](references/html-tables.md) for hand-authored table-based HTML email.
|
|
76
|
+
- Read [references/html-tables.md](references/html-tables.md) for hand-authored table-based HTML email, Bulletproof Dual-Engine CTAs, and `< 80 KB` byte discipline.
|
|
56
77
|
- Read [references/mjml.md](references/mjml.md) for MJML.
|
|
57
78
|
- Read [references/react-email.md](references/react-email.md) for React Email.
|
|
58
|
-
- Read [references/
|
|
79
|
+
- Read [references/maizzle.md](references/maizzle.md) for Maizzle (Tailwind CSS email build pipeline, inlining, purging, and Outlook parity).
|
|
80
|
+
- Read [references/client-quirks.md](references/client-quirks.md) whenever targeting Outlook, Gmail, Apple Mail, the 3-regime dark-mode matrix, 2025–2026 bulk-sender mandates, image blocking, clipping, or plaintext behavior.
|