Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lopi-py/figblox
A Figma to Roblox converter
https://github.com/lopi-py/figblox
figma rbxts react-lua roblox roblox-ts
Last synced: about 1 month ago
JSON representation
A Figma to Roblox converter
- Host: GitHub
- URL: https://github.com/lopi-py/figblox
- Owner: lopi-py
- License: mit
- Created: 2023-07-20T01:21:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T19:09:12.000Z (about 1 year ago)
- Last Synced: 2023-12-18T23:19:05.631Z (about 1 year ago)
- Topics: figma, rbxts, react-lua, roblox, roblox-ts
- Language: TypeScript
- Homepage: https://devforum.roblox.com/t/figblox-a-roblox-to-figma-converter/2745211
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Done with the tedious Figma to Roblox conversion? Our **codegen** plugin automates it for a hassle-free, time-saving, and seamless experience. Focus on creativity, not translations!
## Usage
Get the [figma plugin](https://www.figma.com/community/plugin/1259633080534983873/Figblox), select one frame, enable dev mode and set the codegen feature to this plugin and there you go!
> [!NOTE]
> Your designs must be inside of a `1920x1080` frame, so the plugin can get proper scales## Demo
![image](https://github.com/lopi-py/figblox/assets/70210066/1d2fb315-7c85-441b-b5ae-fbc5dcad40bc)
![image](https://github.com/lopi-py/figblox/assets/70210066/8852fe42-fc24-40ed-ac21-66c2317c456f)
![image](https://github.com/lopi-py/figblox/assets/70210066/03f2a95e-8801-4f8a-8539-39a07e56036e)## Supported codegen frameworks
- [React](https://github.com/jsdotlua/react-lua)
- [Fusion](https://elttob.uk/Fusion/0.2/)
- [JSX](https://roblox-ts.com/docs/guides/roact-jsx)
- Vanilla (no UI framework)## Supported properties
- Position (scale)
- Size (scale)Those are shared properties between all instances
## Supported instances
### Frame
- BackgroundColor3
- BackgroundTransparency
- ClipsDescendants
- LayoutOrder### ScrollingFrame
- ScrollBarThickness
You need **two frames** inside of the frame predenting to be a scrolling frame:
| Name | Description |
| --- | --- |
| `Scrollbar` | Represents the scrollbar, should be at the right side |
| `Content` | May have auto layout wrap feature and one frame children (template) |> [!WARNING]
> Roblox seems buggy when using `UIPadding` and `UIAspectRatioConstraint` inside of `ScrollingFrame`### TextLabel
- FontFace
- Text
- TextColor3
- TextTransparency
- TextXAlignment
- TextYAlignment### UIAspectRatioConstraint
- AspectRatio
### UIFlexItem
- FlexMode
### UIListLayout
- FillDirection
- HorizontalAlignment
- HorizontalFlex
- Padding (offset)
- VerticalAlignment
- VerticalFlex
- Wraps### UIPadding
- PaddingBottom (offset)
- PaddingLeft (offset)
- PaddingRight (offset)
- PaddingTop (offset)