@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.
Files changed (376) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/.claude-plugin/plugin.json +15 -4
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/README.md +185 -328
  13. package/SECURITY.md +28 -0
  14. package/assets/pixelcraft-logo-128.png +0 -0
  15. package/assets/pixelcraft-logo-256.png +0 -0
  16. package/bin/pixelcraft.mjs +431 -23
  17. package/docs/ARCHITECTURE.md +40 -37
  18. package/docs/DESIGN-RATIONALE.md +51 -3
  19. package/docs/INSTALL.md +221 -0
  20. package/evals/README.md +16 -6
  21. package/evals/fixtures/3d-web-engineering.json +69 -0
  22. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  23. package/evals/fixtures/ai-ui-libraries.json +53 -0
  24. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  25. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  26. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  27. package/evals/fixtures/build-and-architecture.json +53 -0
  28. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  29. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  30. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  31. package/evals/fixtures/component-systems.json +53 -0
  32. package/evals/fixtures/component-testing.json +53 -0
  33. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  34. package/evals/fixtures/creative-code-rendering.json +69 -0
  35. package/evals/fixtures/creative-reference-evidence.json +67 -0
  36. package/evals/fixtures/data-app-python-marimo.json +49 -0
  37. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  38. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  39. package/evals/fixtures/desktop-native-workspace.json +48 -0
  40. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  41. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  42. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  43. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  44. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  45. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  46. package/evals/fixtures/enterprise-data-ui.json +53 -0
  47. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  48. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  49. package/evals/fixtures/file-upload-media-ui.json +53 -0
  50. package/evals/fixtures/forms-validation.json +53 -0
  51. package/evals/fixtures/game-go-ebitengine.json +49 -0
  52. package/evals/fixtures/game-godot-gdscript.json +49 -0
  53. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  54. package/evals/fixtures/i18n-engineering.json +53 -0
  55. package/evals/fixtures/local-first-sync.json +53 -0
  56. package/evals/fixtures/lynxjs.json +53 -0
  57. package/evals/fixtures/maizzle-email.json +53 -0
  58. package/evals/fixtures/maps-geospatial.json +53 -0
  59. package/evals/fixtures/media-og-and-video-export.json +43 -0
  60. package/evals/fixtures/media-players.json +53 -0
  61. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  62. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  63. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  64. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  65. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  66. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  67. package/evals/fixtures/motion-engineering.json +69 -0
  68. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  69. package/evals/fixtures/plan-discovery-interview.json +31 -0
  70. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  71. package/evals/fixtures/reactive-data-apps.json +53 -0
  72. package/evals/fixtures/review-evidence-audit.json +43 -0
  73. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  74. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  75. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  76. package/evals/fixtures/state-architecture.json +53 -0
  77. package/evals/fixtures/styling-ecosystem.json +53 -0
  78. package/evals/fixtures/token-tooling.json +53 -0
  79. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  80. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  81. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  82. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  83. package/evals/fixtures/web-3d-engines.json +53 -0
  84. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  85. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  86. package/evals/pixelcraft-accessibility.md +17 -0
  87. package/evals/pixelcraft-craft.md +16 -0
  88. package/evals/pixelcraft-dataviz.md +3 -3
  89. package/evals/pixelcraft-direction.md +17 -0
  90. package/evals/pixelcraft-game-ui.md +3 -3
  91. package/evals/pixelcraft-mobile.md +3 -3
  92. package/evals/pixelcraft-patterns.md +16 -0
  93. package/evals/pixelcraft-plan.md +65 -3
  94. package/evals/pixelcraft-review.md +3 -3
  95. package/evals/pixelcraft-visual-qa.md +11 -5
  96. package/evals/pixelcraft-web.md +21 -3
  97. package/evals/pixelcraft.md +4 -4
  98. package/gemini-extension.json +3 -2
  99. package/install.ps1 +57 -11
  100. package/install.sh +82 -7
  101. package/package.json +32 -4
  102. package/plugin.json +6 -1
  103. package/scripts/build-adapters.mjs +11 -13
  104. package/scripts/run-evals.mjs +397 -0
  105. package/scripts/sync-docs.mjs +381 -0
  106. package/scripts/test-build-adapters.mjs +14 -1
  107. package/scripts/test-cross-platform-qa.mjs +359 -0
  108. package/scripts/test-distribution.mjs +86 -7
  109. package/scripts/test-export-tokens.mjs +259 -3
  110. package/scripts/test-finish-gate.mjs +133 -10
  111. package/scripts/test-installers.mjs +155 -6
  112. package/scripts/test-shoot.mjs +23 -1
  113. package/scripts/test-slop-scan.mjs +390 -3
  114. package/scripts/test-style-inventory.mjs +23 -0
  115. package/scripts/test-sync-docs.mjs +140 -0
  116. package/scripts/test-validate-skills.mjs +82 -4
  117. package/scripts/validate-skills.mjs +149 -3
  118. package/skills/pixelcraft/SKILL.md +67 -47
  119. package/skills/pixelcraft/references/design-brief.md +2 -2
  120. package/skills/pixelcraft/references/floor.md +36 -19
  121. package/skills/pixelcraft/references/report-template.md +25 -11
  122. package/skills/pixelcraft/references/stack-detection.md +138 -67
  123. package/skills/pixelcraft/references/surface-acceptance.md +33 -21
  124. package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
  125. package/skills/pixelcraft-accessibility/SKILL.md +34 -13
  126. package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
  127. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  128. package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
  129. package/skills/pixelcraft-accessibility/references/verification.md +15 -10
  130. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
  131. package/skills/pixelcraft-brandkit/SKILL.md +42 -30
  132. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
  133. package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
  134. package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
  135. package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
  136. package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
  137. package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
  138. package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
  139. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  140. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  141. package/skills/pixelcraft-chat-ui/references/conversation-design.md +12 -6
  142. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
  143. package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
  144. package/skills/pixelcraft-constrained/SKILL.md +21 -20
  145. package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
  146. package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
  147. package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
  148. package/skills/pixelcraft-craft/SKILL.md +29 -15
  149. package/skills/pixelcraft-craft/references/color.md +62 -6
  150. package/skills/pixelcraft-craft/references/layout.md +32 -0
  151. package/skills/pixelcraft-craft/references/motion.md +99 -12
  152. package/skills/pixelcraft-craft/references/typography.md +48 -9
  153. package/skills/pixelcraft-data-apps/SKILL.md +50 -31
  154. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  155. package/skills/pixelcraft-data-apps/references/dash.md +87 -31
  156. package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
  157. package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
  158. package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
  159. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
  160. package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
  161. package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
  162. package/skills/pixelcraft-data-apps/references/panel.md +69 -23
  163. package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
  164. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  165. package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
  166. package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
  167. package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
  168. package/skills/pixelcraft-dataviz/SKILL.md +21 -24
  169. package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
  170. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
  171. package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
  172. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  173. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
  174. package/skills/pixelcraft-desktop/SKILL.md +61 -39
  175. package/skills/pixelcraft-desktop/references/appkit.md +60 -26
  176. package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
  177. package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
  178. package/skills/pixelcraft-desktop/references/electron.md +68 -26
  179. package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
  180. package/skills/pixelcraft-desktop/references/gtk.md +74 -31
  181. package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
  182. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
  183. package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
  184. package/skills/pixelcraft-desktop/references/tauri.md +80 -24
  185. package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
  186. package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
  187. package/skills/pixelcraft-desktop/references/working-context.md +82 -3
  188. package/skills/pixelcraft-direction/SKILL.md +48 -82
  189. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  190. package/skills/pixelcraft-direction/references/direction-card.md +11 -1
  191. package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
  192. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  193. package/skills/pixelcraft-direction/references/movements.md +3 -0
  194. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  195. package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
  196. package/skills/pixelcraft-document/SKILL.md +27 -23
  197. package/skills/pixelcraft-document/references/archetypes.md +27 -4
  198. package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
  199. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  200. package/skills/pixelcraft-document/references/print-css.md +96 -43
  201. package/skills/pixelcraft-document/references/slides.md +123 -27
  202. package/skills/pixelcraft-email/SKILL.md +42 -20
  203. package/skills/pixelcraft-email/references/client-quirks.md +101 -33
  204. package/skills/pixelcraft-email/references/html-tables.md +83 -22
  205. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  206. package/skills/pixelcraft-email/references/mjml.md +13 -11
  207. package/skills/pixelcraft-email/references/react-email.md +76 -34
  208. package/skills/pixelcraft-extensions/SKILL.md +32 -27
  209. package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
  210. package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
  211. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  212. package/skills/pixelcraft-extensions/references/raycast.md +90 -11
  213. package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
  214. package/skills/pixelcraft-game-ui/SKILL.md +45 -26
  215. package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
  216. package/skills/pixelcraft-game-ui/references/godot.md +100 -27
  217. package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
  218. package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
  219. package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
  220. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  221. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
  222. package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
  223. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  224. package/skills/pixelcraft-handoff/SKILL.md +14 -13
  225. package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
  226. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  227. package/skills/pixelcraft-media/SKILL.md +20 -23
  228. package/skills/pixelcraft-media/references/banners-video.md +83 -65
  229. package/skills/pixelcraft-media/references/og-generation.md +110 -63
  230. package/skills/pixelcraft-media/references/social-cards.md +57 -58
  231. package/skills/pixelcraft-mobile/SKILL.md +53 -36
  232. package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
  233. package/skills/pixelcraft-mobile/references/flet.md +53 -26
  234. package/skills/pixelcraft-mobile/references/flutter.md +76 -32
  235. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  236. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
  237. package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
  238. package/skills/pixelcraft-mobile/references/kivy.md +54 -31
  239. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
  240. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  241. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  242. package/skills/pixelcraft-mobile/references/react-native-expo.md +66 -31
  243. package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
  244. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  245. package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
  246. package/skills/pixelcraft-mobile/references/uikit.md +57 -23
  247. package/skills/pixelcraft-patterns/SKILL.md +30 -13
  248. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  249. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  250. package/skills/pixelcraft-patterns/references/auth-onboarding.md +32 -13
  251. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  252. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  253. package/skills/pixelcraft-patterns/references/commerce.md +35 -16
  254. package/skills/pixelcraft-patterns/references/communication.md +34 -15
  255. package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
  256. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  257. package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
  258. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  259. package/skills/pixelcraft-patterns/references/marketing.md +31 -19
  260. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  261. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  262. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  263. package/skills/pixelcraft-patterns/references/pattern-selection.md +8 -2
  264. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  265. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  266. package/skills/pixelcraft-patterns/references/settings.md +40 -12
  267. package/skills/pixelcraft-plan/SKILL.md +54 -18
  268. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  269. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  270. package/skills/pixelcraft-plan/references/plan-template.md +44 -9
  271. package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
  272. package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
  273. package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
  274. package/skills/pixelcraft-review/SKILL.md +41 -19
  275. package/skills/pixelcraft-review/references/audit-report.md +20 -1
  276. package/skills/pixelcraft-review/references/heuristics.md +63 -18
  277. package/skills/pixelcraft-review/references/personas.md +41 -14
  278. package/skills/pixelcraft-review/references/polish.md +66 -26
  279. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  280. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  281. package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
  282. package/skills/pixelcraft-spatial/SKILL.md +16 -17
  283. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
  284. package/skills/pixelcraft-spatial/references/platforms.md +123 -53
  285. package/skills/pixelcraft-tokens/SKILL.md +18 -14
  286. package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
  287. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
  288. package/skills/pixelcraft-tokens/references/format.md +39 -9
  289. package/skills/pixelcraft-tokens/references/governance.md +1 -1
  290. package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
  291. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  292. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
  293. package/skills/pixelcraft-tui/SKILL.md +41 -25
  294. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
  295. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  296. package/skills/pixelcraft-tui/references/ink.md +77 -28
  297. package/skills/pixelcraft-tui/references/ratatui.md +70 -30
  298. package/skills/pixelcraft-tui/references/rich.md +53 -33
  299. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  300. package/skills/pixelcraft-tui/references/textual.md +75 -34
  301. package/skills/pixelcraft-ux/SKILL.md +22 -12
  302. package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
  303. package/skills/pixelcraft-ux/references/forms.md +57 -3
  304. package/skills/pixelcraft-ux/references/i18n.md +50 -12
  305. package/skills/pixelcraft-ux/references/laws.md +35 -14
  306. package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
  307. package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
  308. package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
  309. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
  310. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  311. package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
  312. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
  313. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
  314. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  315. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
  316. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  317. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  318. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  319. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  320. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  321. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +50 -11
  322. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
  323. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
  324. package/skills/pixelcraft-web/SKILL.md +105 -49
  325. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  326. package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
  327. package/skills/pixelcraft-web/references/angular.md +63 -16
  328. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  329. package/skills/pixelcraft-web/references/astro.md +64 -13
  330. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  331. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  332. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  333. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  334. package/skills/pixelcraft-web/references/clojurescript.md +52 -17
  335. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  336. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  337. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  338. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  339. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  340. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  341. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  342. package/skills/pixelcraft-web/references/fsharp-fable.md +3 -2
  343. package/skills/pixelcraft-web/references/gsap.md +102 -0
  344. package/skills/pixelcraft-web/references/html-css.md +144 -12
  345. package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
  346. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  347. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  348. package/skills/pixelcraft-web/references/java-web.md +27 -18
  349. package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
  350. package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
  351. package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
  352. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  353. package/skills/pixelcraft-web/references/media-players.md +104 -0
  354. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  355. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  356. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  357. package/skills/pixelcraft-web/references/pwa.md +6 -1
  358. package/skills/pixelcraft-web/references/qwik.md +51 -11
  359. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  360. package/skills/pixelcraft-web/references/react-next.md +112 -13
  361. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  362. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  363. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  364. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  365. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  366. package/skills/pixelcraft-web/references/server-rendered.md +106 -63
  367. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  368. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  369. package/skills/pixelcraft-web/references/solid.md +67 -16
  370. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  371. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  372. package/skills/pixelcraft-web/references/svelte.md +61 -11
  373. package/skills/pixelcraft-web/references/tailwind.md +40 -14
  374. package/skills/pixelcraft-web/references/video-media.md +69 -0
  375. package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
  376. 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. Paged.js and WeasyPrint implement more. Validate every feature in the actual renderer before depending on it.
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;` | support varies for automatic orientation inversion |
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` | support varies; important for duplex/book layouts |
32
- | page counter | `counter(page)` | current page number where counters are supported |
33
- | total counter | `counter(pages)` | total page count where supported |
34
- | margin boxes | `@bottom-right { content: counter(page); }` | essential for running headers/footers, but not broadly supported by native browser print |
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 in the specification. Chromium/native print does not expose the full margin-box model; do not write production headers/footers assuming it. Use Paged.js/WeasyPrint/print-engine verification.
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
- figure, .signature-block, .total-row {
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, not entire long tables |
66
- | `orphans` | minimum lines left at bottom | set deliberately; initial/support behavior varies |
67
- | `widows` | minimum lines carried to next page | pair with orphans and inspect real text lengths |
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%. Do not copy these numbers as a rule—verify x-height, paper, contrast, and reader needs.
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 text may need different metrics;
85
- - hyphenation/line breaking: language-dependent and renderer-dependent;
86
- - font embedding/license: verify embedding rights and glyph coverage;
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
- Browsers may omit backgrounds by default to save ink. Chromium-family print supports the nonstandard-but-widely-used `-webkit-print-color-adjust: exact` / standard `print-color-adjust: exact`, but users and print settings can still alter output. Do not rely on background color alone for meaning.
145
+ ## Dual print profiles: Office Grayscale vs Commercial Prepress (`PDF/X-4`)
92
146
 
93
- Rules:
147
+ Select and design against the exact target print profile rather than mixing screen RGB habits with print-shop assumptions:
94
148
 
95
- - foreground/background contrast must remain sufficient on white paper if backgrounds are dropped;
96
- - avoid full-bleed dark backgrounds unless the artifact truly requires them; ink cost and printer margins matter;
97
- - test grayscale because office printers often default to monochrome;
98
- - use patterns/line styles as redundant differentiation in charts/tables;
99
- - never use color-only red/green semantics.
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 `marks` is renderer-specific and generally absent from ordinary browser print. Typst supports page `bleed` directly and defines a PDF `TrimBox` when nonzero. For print-shop output, confirm required bleed (often 3mm/0.125in but not universal), color profile, imposition, crop/registration marks, DPI, and PDF/X expectations with the printer instead of guessing.
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 printing is suitable for simple documents, but historically lacks much of the advanced model:
170
+ Native cross-browser `window.print()` is suitable for simple documents, but still has gaps:
118
171
 
119
- - limited/no support for arbitrary margin boxes;
120
- - inconsistent named-page and counter behavior;
121
- - limited footnotes/running strings/leaders/bookmarks;
122
- - page background/user print settings outside app control;
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 the browser when the user controls print invocation and simple pagination is acceptable. Use Paged.js/WeasyPrint/Typst/LaTeX/React-PDF when exact pagination is a product requirement.
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 browser layout.
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 | as a starting floor for projection, body text around 24–32pt/px-equivalent or larger, important content 36–60+, titles larger; validate at authored resolution and viewing distance rather than treating numbers as law |
11
- | safe area | keep essential content inside roughly the central 90–95% of the frame; projector cropping, bezels, captions, and platform UI can obscure edges |
12
- | contrast | high contrast for projection; avoid thin light-gray type and subtle gradients behind text |
13
- | motion | transitions only when they explain sequence/object constancy; provide reduced/static export behavior |
14
- | content ownership | every chart/image/code fragment must be legible and necessary; speaker notes are not a license to hide required detail |
15
- | accessibility | preserve reading order, alt text/data equivalents for visuals, color-independent meaning, and keyboard navigation where interactive |
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 ecosystem extensibility. Slides are separated by `---`; the first frontmatter block configures the deck, including fields such as `theme`, `title`, and export/presentation behavior depending on version. Per-slide frontmatter can choose layouts. Vue components and custom themes make it powerful but easy to overbuild.
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 content readable even if custom components fail;
43
- - use presenter notes intentionally rather than hiding essential content in them;
44
- - pin theme/dependencies and inspect exported PDF/PPTX/PNG behavior with the installed Slidev version;
45
- - validate syntax highlighting size/contrast and line wrapping;
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. Current documented sizing defaults include:
84
+ reveal.js initializes a scalable slide deck in the browser:
51
85
 
52
86
  ```js
53
87
  Reveal.initialize({
54
- width: 960,
55
- height: 700,
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
- For a 16:9 deck, set an explicit authoring frame such as `width: 1280, height: 720` and tune `margin`, `minScale`, and `maxScale` only after testing target displays. `center: false` prevents vertical recentering when fixed layout matters. `embedded: true` changes sizing for embedded decks and requires explicit layout responsibility.
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/print stylesheet, speaker view, and browser scaling;
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/vertical slides need clear navigation purpose.
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, commonly:
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
- Marp CLI can render/export supported formats depending on installation/version. Rules:
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 for every slide;
89
- - test image resolution, math/syntax highlighting, PDF export, and font availability in CI/export containers.
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
- - use a remote/clicker/keyboard path in live presentation rather than assuming mouse control;
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/templates, table-heavy HTML email, inline CSS tooling, ESP templates, plaintext templates, MIME generation, email screenshots/previews, localization catalogs.
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
- - Primary message and call to action must work without images, custom fonts, background images, animation, JavaScript, forms, or exact viewport control.
32
- - Use real text for essential copy; meaningful images require concise alt text. Decorative images use empty alt where supported.
33
- - Maintain plaintext parity: content order, links, dates, cancellation/preferences/legal details, and meaning.
34
- - Use dark-mode-aware color choices and transparent imagery carefully; test inversion/mutation rather than assuming control.
35
- - Respect accessibility: semantic-ish heading order where clients permit, readable contrast, target spacing, descriptive links, no image-only content.
36
- - Account for clipping, forwarding, threading, preview text/preheader, localization expansion, RTL, and plain-text clients.
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 `&#847;&zwnj;&nbsp;`.
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
- - CTA relying on background image/border-radius/CSS unsupported in Outlook;
42
- - white/logotype disappearing in forced dark/light inversion;
43
- - no plaintext or plaintext generated as raw HTML dump;
44
- - dense multi-column desktop layout collapsing unpredictably;
45
- - generic “View in browser” replacing actual resilient design;
46
- - tracking/privacy/legal footer omitted or unreadable;
47
- - testing only one modern webmail screenshot.
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
- Email can be inspected only by rendering across real clients or preview services. Local HTML render is necessary but insufficient. Validate plaintext, image-off behavior, dark mode, narrow/wide rendering, clipping, forwarding, and accessibility manually or through ESP/client testing tools. Label untested clients explicitly; never claim universal compatibility.
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` `&#847;&zwnj;&nbsp;` 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/client-quirks.md](references/client-quirks.md) whenever targeting Outlook, Gmail, Apple Mail, dark mode, image blocking, clipping, or plaintext behavior.
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.