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

Can we write and use our own code generator? #71

Open
aleksandrlat opened this issue Mar 4, 2023 · 3 comments
Open

Can we write and use our own code generator? #71

aleksandrlat opened this issue Mar 4, 2023 · 3 comments

Comments

@aleksandrlat
Copy link

Is it possible to write and use our own code generator from Plasmic UI builder?
It would be nice if we could get some abstract model of components and render whatever code we want to render ourselves

@yang
Copy link
Contributor

yang commented Mar 4, 2023

Hi @aleksandrlat , yes it's possible - the full underlying model is available here:

https://docs.plasmic.app/learn/model-quickstart/

Note that this is still quite early. First, the schema does evolve, but usually pretty incrementally/non-violently. Second, the main thing that's missing is documentation of the types. But sharing this in case it helps unblock you.

Out of curiosity, what are you thinking of doing with that?

@aleksandrlat
Copy link
Author

aleksandrlat commented Mar 6, 2023

Thank you @yang!

Out of curiosity, what are you thinking of doing with that?

We have our design system and we use styled components in the code. Styled components is strict requirement for code base. So to get buy in from the team to use Plasmic I want to try to generate react styled components.

I will read the docs. Do you have open source react code code generation? This can be a good example for me to see implementation. And I can re-use part of it for sure.

@yang
Copy link
Contributor

yang commented Mar 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants