openpencil/packages/docs/reference
Danila Poyarkov 7a37f14327
refactor!: register HTML and Tailwind JSX as IO formats (#774)
* refactor!: register HTML and Tailwind JSX as IO formats

HTML and Tailwind JSX went around the IO registry: the CLI appended
`html` to its format list and had its own HTML and Tailwind export paths,
so the app's export options offered neither.

Core now registers `html` and `tailwind-jsx` adapters built on a new
browser-safe `@open-pencil/dom-css/export` entry. Export results can
carry assets written next to the main file, which covers standalone HTML
with external images and fonts, and the CLI writes every format the same
way. The CSS object model and Node file access load only when an export
needs them, so the app bundle stays free of the headless CSS runtime.

BREAKING CHANGE: `sceneNodesToTailwindJSX` and `designDocumentToTailwindJSX`
moved from `@open-pencil/dom-css/browser` to `@open-pencil/dom-css/export`.

* refactor(core): share export support and fixed-size options across IO formats

Five adapters export every target and six have no scale or quality
options; the new HTML and Tailwind JSX adapters repeated those blocks
again. Both are now named once and shared.

* fix(core): keep HTML asset paths relative for Windows output paths

The CLI passed the absolute output path as the export file name, and the
HTML adapter only split it on `/`, so on Windows the page referenced
absolute `C:\...\card.assets` paths and assets were written to a doubled
location. The CLI now passes the file name, and the adapter accepts
either separator.
2026-09-26 11:54:16 +04:00
..
cli.md refactor!: register HTML and Tailwind JSX as IO formats (#774) 2026-09-26 11:54:16 +04:00
design-authoring.md test: cover and document inherited instance dimensions 2026-09-14 00:24:52 +03:00
dom-css-mapping.md refactor!: generate Tailwind JSX through dom-css (#763) 2026-09-26 10:50:28 +04:00
figma-compatibility.md feat(fig): support text on path 2026-08-17 12:00:01 +03:00
file-format.md docs(fig): clarify existing round-trip fidelity limits 2026-09-13 15:32:57 +03:00
keyboard-shortcuts.md feat(app): expand Figma menu and selection parity (#459) 2026-08-03 00:23:05 +03:00
node-types.md feat(editor): add component property controls 2026-07-17 21:59:49 +03:00
scene-graph.md docs: generate llms files 2026-05-22 16:03:04 +03:00