Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanwittwer/figtype
🪄 Figma widget for modeling simple types and entities in FigJam
https://github.com/stefanwittwer/figtype
figjam figma figma-plugin figma-widget widget
Last synced: 12 days ago
JSON representation
🪄 Figma widget for modeling simple types and entities in FigJam
- Host: GitHub
- URL: https://github.com/stefanwittwer/figtype
- Owner: stefanwittwer
- License: mit
- Created: 2022-08-07T20:17:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-14T11:54:52.000Z (over 2 years ago)
- Last Synced: 2025-01-21T00:09:22.056Z (16 days ago)
- Topics: figjam, figma, figma-plugin, figma-widget, widget
- Language: TypeScript
- Homepage: https://www.figma.com/community/widget/1138124743486355601/
- Size: 563 KB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
FigType
The easiest way to model anything in Figma.## What is FigType?
🪄 FigType is a widget that makes modeling simple types and entities in Figma and FigJam easy.
Works great for planning out:
- Interface types, database models, classes, etc. in development;
- Properties for design system components;
- Fields in a marketing website CMS## Screenshot
![Screenshot of FigType widget](https://raw.githubusercontent.com/stefanwittwer/FigType/main/static/screenshot.png)
## Build scripts
This codebase was initially created through Figma's "New widget..." menu in the desktop app.
However, some modifications to the build scripts and `tsconfig.json` have been made:- There is an additional `postbuild` step that is automatically executed when compiling the TypeScript source, which automatically appends the line `widget.register(Widget);` to the very end of the compiled JavaScript. This is a workaround for an issue where this line of code would be executed too early when the Widget code is split up into multiple files, resulting in "Lexical variable is not initialised" crashes at runtime.
- `tsconfig.json` has been modified to bundle all .ts and .tsx source files into a single, combined `code.js`. This codebase does not use modules because Figma widgets don't seem to support `import` and `export`.## License and copyright
FigType's source code is available under the MIT license. [Read the full license terms here.](https://github.com/stefanwittwer/FigType/blob/main/LICENSE.md)