Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will Layout Be Supported? #220

Open
otsukatatsuya opened this issue Dec 4, 2024 · 4 comments
Open

Will Layout Be Supported? #220

otsukatatsuya opened this issue Dec 4, 2024 · 4 comments
Labels
feature request under discussion The Code Connect team is currently discussing this request

Comments

@otsukatatsuya
Copy link

Hello. In Code Connect, componentized parts are converted into code, but will layout be supported in the future?

For example, consider a design in Material Web. There is a Dialog component, and within it are Button and Icon components as children.

スクリーンショット 2024-12-04 15 17 15

While information about these Buttons and Icons can be referenced via figma.children, there doesn’t seem to be a way to retrieve layout details (such as alignment, spacing, etc.) at present. Without this, a significant amount of adjustments would be required for the code displayed in Figma.

スクリーンショット 2024-12-04 15 17 11

Ultimately, I’d like to achieve something where selecting an entire page in Figma generates a complete corresponding code.

For instance, it would be great if, when publishing in Figma, Code Connect could internally read the layout and automatically supplement layout-related styles, such as <div class="flex flex-col gap-8">.

@rrabherufigma
Copy link

Thank you for the input. We have nothing planned right now, but we'll discuss it internally

@rrabherufigma rrabherufigma added the under discussion The Code Connect team is currently discussing this request label Dec 4, 2024
@otsukatatsuya
Copy link
Author

@rrabherufigma Thanks!

@Larsthedesigner
Copy link

For the sake of discussion, It would be really cool to create standardized and componentize frames that could be setup to use variables and code connect so that frames are consistently used across designs.

@otsukatatsuya
Copy link
Author

@Larsthedesigner

Thank you.

standardized and componentize frames that could be setup to use variables and code connect

Are they like MUI's Stack or Box, for example?
https://mui.com/material-ui/react-stack/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request under discussion The Code Connect team is currently discussing this request
Projects
None yet
Development

No branches or pull requests

3 participants