Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kilian/react-xd-example
Example Adobe XD plugin that uses the React-XD reconciler
https://github.com/kilian/react-xd-example
Last synced: 15 days ago
JSON representation
Example Adobe XD plugin that uses the React-XD reconciler
- Host: GitHub
- URL: https://github.com/kilian/react-xd-example
- Owner: Kilian
- License: mit
- Created: 2019-02-28T13:14:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:00:51.000Z (almost 2 years ago)
- Last Synced: 2024-05-08T17:04:45.251Z (6 months ago)
- Language: JavaScript
- Size: 583 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
### Made by [@kilianvalkhof](https://twitter.com/kilianvalkhof)
#### Other projects:
- 💻 [Polypane](https://polypane.app) - Develop responsive websites and apps twice as fast on multiple screens at once
- 🖌️ [Superposition](https://superposition.design) - Kickstart your design system by extracting design tokens from your website
- 🗒️ [FromScratch](https://fromscratch.rocks) - A smart but simple autosaving scratchpad---
# React-XD Example
**Work-In-Progress, not ready for production**
An example plugin for Adobe XD that uses a custom React reconciler so you can declaratively write out the elements to render to an artboard.
Nowhere near feature complete and `lib/react-xd.js` will move to it's own repository soon.
## What works
Right now you can style and place [GraphicNodes](https://adobexdplatform.com/plugin-docs/reference/scenegraph.html#GraphicNode) onto a selected artboard.Shapes are written in lowercase per React convention (so `new Rectangle()` becomes ``). Positioning shapes with x/y is always relative to their parent.
I haven't tested nesting, groups or anything other than `GraphicNode`s
## Working with this example
First, install xdpm:
```
npm install -g @adobe/xdpm
```Then clone the repository and install the dependencies with `npm install` or `yarn`.
In one terminal run `npm run watch`, and in another run `xdpm watch`. This will recompile your plugin every time you make a change in the `src` folder and sync it to the Adobe XD plugin folder.
Once in XD, reload your plugins and you can execute your plugin. Any errors will show up in the developer console of XD.