openpencil/packages/docs
Danila Poyarkov 9bc353587f
refactor!: generate Tailwind JSX through dom-css (#763)
* refactor!: generate Tailwind JSX through dom-css

Core kept its own SceneGraph → Tailwind mapper next to the one dom-css
uses for Tailwind HTML, and the two drifted: HTML export turned grid
frames into flex columns and dropped rotation, inner shadows, blur, and
flex grow, while Tailwind JSX had them.

Tailwind JSX is now printed by dom-css from the same CSS projection as
HTML export, with esrap building the JSX and string literals carrying
text or attributes that JSX would otherwise reinterpret. The projection
gains grid layout and placement, rotation, every shadow, layer and
background blur, flex grow, right-to-left direction, and sections, and
writes opaque colors as hex so Tailwind can match its palette.

BREAKING CHANGE: `sceneNodeToJSX` and `selectionToJSX` in
`@open-pencil/core` no longer accept a format, and `JSXFormat` and
`JSXExportOptions` are removed. Use `sceneNodesToTailwindJSX` from
`@open-pencil/dom-css` or `@open-pencil/dom-css/browser`.

* fix(dom-css): keep backslashes and line breaks in Tailwind JSX attributes

JSX attribute strings keep backslashes literally, but the printer
escapes backslashes and line breaks in string literals, so a layer
named `a\b` came back as `a\\b`. Such values are now written as
expression containers, like values containing quotes or `&`.
2026-09-26 10:50:28 +04:00
..
.vitepress docs: remove GitHub Discussions link from docs header 2026-09-18 23:58:37 +03:00
de refactor(export): derive export format lists from the IO registry (#755) 2026-09-25 15:42:42 +04:00
development ci: shard unit tests by owner and cut the quick suite from 100 s to 13 s (#715) 2026-09-17 10:18:16 +03:00
es fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
fr fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
it fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
overview fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
pl refactor(export): derive export format lists from the IO registry (#755) 2026-09-25 15:42:42 +04:00
programmable feat(updater): show download progress while installing an update 2026-09-25 23:15:14 +04:00
public feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00
reference refactor!: generate Tailwind JSX through dom-css (#763) 2026-09-26 10:50:28 +04:00
ru refactor(export): derive export format lists from the IO registry (#755) 2026-09-25 15:42:42 +04:00
user-guide docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md Refine docs structure for SDK and automation 2026-03-24 23:24:08 +03:00
package.json feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00