Codia offers two modes of code generation. One is the Base Code
, which is based on a basic DSL recognition model. Its advantage is the fast speed of code generation, but the downside is that the code quality is relatively average. AI Code
, built on the Base Code, introduces multiple AI models. This allows for the generation of higher quality code without much impact on speed, and the code is closer to what expert programmers would produce.
Base Code
As the name suggests, the Base Code
mode generates more basic, usable code. This code is generated by the basic DSL Model and can ensure that the page is nearly 100% identical to the design draft with fast generation speed. However, the downside is that the code quality is relatively average. This is especially true if the Figma design draft is complex, in which case the quality of the generated code can be difficult to guarantee. This is also a limitation of traditional code generation tools.
AI Code
Completely different from before, the code generated by AI Code
is close to that of an expert engineer. The design is basically 100% similar to the original design, with very high code quality. It also employs many coding techniques and best practices that only expert engineers would use.
Using trained LLM, smart structure analysis and vision recognition, the generated code is high-quality and ready for developers to use without many changes like humans.
You can learn more about AI Code
by checking here.
How do I choose
If you don't have very high requirements for code quality, and only focus on whether the generated code makes the UI look the same as your design, achieving a high fidelity to the design, then Base Code
can meet your needs.
If you are a professional engineer, and you are more concerned about code quality and need to further develop the code, then AI Code
is very suitable for you.