uichemy_create_project
Creates a new UiChemy project from layouts in the UiChemy template library, using the copy, fonts and colours passed in. It is the only way to start a project here: every site is built from the template library, and HTML, CSS or JavaScript written elsewhere is not imported. For library sections as code in the user's own React app, uichemy_get_page_code is the tool. Each page is a list of sections, normally a navbar first and a footer last; a home page usually has 8 to 12 sections (hero, social proof, features, how it works, testimonials, pricing or offer, FAQ, CTA) and an inner page 5 to 8. Text and image slots belong to the layout: uichemy_template_slots lists them with their maximum length and what each one is for. A slot left empty shows its token on the page, an image slot left empty keeps the template's stock photo, and copy over a slot's limit makes the whole call fail. Two sections using the same layout share the same copy. Image slots take urls, so a generated picture needs to be uploaded first. category files a page in the sitemap (Blog, Legal, Site Extras...); pages without one are filed under Core Pages. brief fills the project's Scope tab and is required, as are headingFont, bodyFont and all five palette colours. The result names any slot left unfilled and any layout that was not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The project's name. When the user has not named the business, a fitting name works; it can be renamed later in UiChemy. | |
| brief | No | The project's Scope — what the business is, who it serves and what the site must do. This fills the Scope tab; without it the project opens with an empty brief. | |
| pages | Yes | Pages in order; the first is the home page. | |
| palette | Yes | All five slots, as #RGB or #RRGGBB. | |
| bodyFont | Yes | A Google Font family name for body text. | |
| headingFont | Yes | A Google Font family name for headings. | |
| createCanvas | No | Also do what the editor's "Continue to design" does on first open — colour roles, the section style's band colours, the export section list, every page marked built — with no AI call, so the project needs no editor visit. Same as uichemy_create_canvas afterwards. | |
| sectionStyle | No | With createCanvas: the section style to pin (default subtle_01). Without one the canvas rolls a random one. |