openpencil/src
Danila Poyarkov 5ae6234e40
Tailwind CSS v4 JSX export (#54)
* Add Tailwind CSS v4 JSX export format

- Add JSXFormat type ('openpencil' | 'tailwind') to sceneNodeToJSX/selectionToJSX
- Tailwind resolver (tailwind.ts): px→spacing (v4 multiplier), hex→color class,
  fontSize/fontWeight/borderRadius named lookups with arbitrary value fallback
- Export: FRAME→div, TEXT→p, SECTION→section, className with TW utility classes
- CLI: export --format jsx --style tailwind
- CodePanel: format toggle button (OpenPencil / Tailwind)
- Rename Jsx→JSX in all public APIs (sceneNodeToJSX, selectionToJSX, renderJSX, etc.)
- 29 new Tailwind export tests, all 43 export tests pass

* Extract escapeJSXText — replace nested ternary with entity map lookup

* Deduplicate export-jsx: extract shared padding, corner radius, and node context helpers

* Update changelog

* Tighten Tailwind JSX export fidelity
2026-03-06 18:04:11 +03:00
..
ai Port analyze/diff tools from figma-use, split tools into domain files 2026-03-05 19:16:23 +03:00
components Tailwind CSS v4 JSX export (#54) 2026-03-06 18:04:11 +03:00
composables Add double-click to rename layers, extract useInlineRename composable 2026-03-06 09:50:35 +03:00
engine SVG export (#52) 2026-03-05 10:31:02 +03:00
kiwi Deduplicate kiwi and serialization code 2026-03-01 10:59:35 +03:00
shims Stub shiki to eliminate 9MB of unused language grammars 2026-03-01 20:05:52 +03:00
stores Adopt motion-v for mobile drawer and toolbar animations 2026-03-06 08:50:38 +03:00
utils Refactor mobile drawer: use VueUse composables, unify panels 2026-03-05 22:13:24 +03:00
views Refactor mobile drawer: use VueUse composables, unify panels 2026-03-05 22:13:24 +03:00
app.css Fix scrollbar: use utility class instead of global selector 2026-03-04 09:35:30 +03:00
App.vue Toast notifications via Reka UI Toast 2026-03-01 18:25:04 +03:00
constants.ts Fix drawer animation: single spring transition, no jump on close 2026-03-06 09:22:03 +03:00
demo.ts Shadow rendering performance: per-node SkPicture cache (#25) 2026-03-03 11:37:01 +03:00
env.d.ts feat: mobile layout, PWA support (#27) (#27) 2026-03-05 19:51:51 +03:00
global.d.ts Release v0.3.2 2026-03-02 11:36:18 +03:00
main.ts Refactor mobile drawer: use VueUse composables, unify panels 2026-03-05 22:13:24 +03:00
router.ts Collab UI polish, vue-router, extract HsvColorArea 2026-03-01 17:15:08 +03:00
types.ts Extract @open-pencil/core package 2026-03-01 01:03:07 +03:00