You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn the IR + design tokens into importable React artifacts — the final build
stage of the InDesign-to-React pipeline (#66, part of #62).
- One typed .tsx component per spread; names from page/spread with safe-id fallback
- Text frames -> semantic tags (h1-h6/p/figcaption) by paragraph-style role;
image frames -> <img> or next/image; token-spaced flow/grid layout
- Explicit content prop types with extracted text/src as defaults
- Two styling modes: Tailwind classes via the mapper preset, or co-located
CSS Modules referencing tokens.css custom properties
- Storybook stories per component with extracted content as default args
- index.ts barrel + indesign-pipeline-report.md (files, assets, unmapped nodes,
a11y TODOs); deterministic output
- CLI: --emit-components <dir> with --style and --framework
- 11 new tests (128 total): generated TSX type-checks under strict tsc (Tailwind,
CSS Modules, Next.js), renders via react-dom/server, plus JSX snapshots
Refs #66, #62
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
"// AUTO-GENERATED by @aurelius/pipeline. Do not edit by hand.
36
+
37
+
export type Spread1Props = {
38
+
heading?:string;
39
+
body?:string;
40
+
caption?:string;
41
+
};
42
+
43
+
export function Spread1({
44
+
heading="Annual Report 2026",
45
+
body = "Body paragraph line 1 with enough text to read as flowing copy.\\nBody paragraph line 2 with enough text to read as flowing copy.\\nBody paragraph line 3 with enough text to read as flowing copy.\\nBody paragraph line 4 with enough text to read as flowing copy.\\nBody paragraph line 5 with enough text to read as flowing copy.\\nBody paragraph line 6 with enough text to read as flowing copy.\\nBody paragraph line 7 with enough text to read as flowing copy.\\nBody paragraph line 8 with enough text to read as flowing copy.\\nBody paragraph line 9 with enough text to read as flowing copy.\\nBody paragraph line 10 with enough text to read as flowing copy.\\nBody paragraph line 11 with enough text to read as flowing copy.\\nBody paragraph line 12 with enough text to read as flowing copy.\\nBody paragraph line 13 with enough text to read as flowing copy.\\nBody paragraph line 14 with enough text to read as flowing copy.\\nBody paragraph line 15 with enough text to read as flowing copy.\\nBody paragraph line 16 with enough text to read as flowing copy.\\nBody paragraph line 17 with enough text to read as flowing copy.\\nBody paragraph line 18 with enough text to read as flowing copy.\\nBody paragraph line 19 with enough text to read as flowing copy.\\nBody paragraph line 20 with enough text to read as flowing copy.\\nBody paragraph line 21 with enough text to read as flowing copy.\\nBody paragraph line 22 with enough text to read as flowing copy.\\nBody paragraph line 23 with enough text to read as flowing copy.\\nBody paragraph line 24 with enough text to read as flowing copy.",
46
+
caption="Figure 1 — a small caption set in eight point type.",
0 commit comments