uichemy_get_page_code
Builds a page for the user's own React app (Vite, Next.js, Remix…) from UiChemy library sections in one call. For a UiChemy project, uichemy_create_project is the tool instead. Give the sections top to bottom, each a kind + layout (pick with uichemy_find_templates or uichemy_search_layouts; uichemy_list_templates lists a kind's layouts), optional text (slot token → copy) per section, photos — what the pictures should show, chosen per section (e.g. hero: ["sourdough loaf on a wooden board"], testimonials: ["smiling woman portrait"]) with a page-wide default — and palette/fonts. Returns every component file, an App.jsx that stacks them, and a one-line command that downloads the matching stylesheet. Slots you did not fill get the template's sample copy; each file comes with what its copy slots are, so rewrite the copy by editing the files. The files are meant to be used as returned; their styling comes from the kit. Photos are searched on the server from the queries given (free-licence stock), so no separate image search is needed. Copy and image urls can be changed afterwards by editing the files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fonts | No | Google Fonts names. | |
| photos | No | Default picture subject for sections without their own, e.g. "artisan bakery". | |
| palette | No | #RRGGBB colours. | |
| sections | Yes | Top to bottom: [{ "kind": "navbar", "variant": "layout-x1" }, { "kind": "hero", "variant": "layout-x1" }, …] |