The quickest way for AI to build a Bricks page is to write HTML and CSS and let Bricks convert it into native elements. Done right, the result is fully editable in the builder, with no Code element in sight.
How the import works
Bricks’ page import takes your HTML and CSS and creates sections, containers, blocks, headings, text, buttons and images, plus global classes and variables, in a single tracked change. It is meant for an empty page.
Structure that converts cleanly
- Use
section > container > blocknesting, marked with Bricks’ own class names. - Make links that should look like buttons into button elements.
- No
<main>, header or footer inside page content; those live in templates. - Write media queries only at the site’s breakpoints.
Classes are reused by name
If a class in your HTML already exists as a global class, Bricks uses it instead of creating a duplicate. That is how twelve pages share one look. But if you send CSS that redefines an existing class, the import fails. On later pages, send the HTML with no CSS.
What does not convert
<details>and<summary>do not become a working toggle. Add an Accordion (Nestable) element instead.- Inline SVG is blocked unless the user has code-execution rights. Use icon fonts such as
<i class="fas fa-check">, which become native icons. - Font stacks and quoted font names can end up invalid; set fonts on the class afterwards.
After the import
Add the interactive pieces natively (accordions, forms, component instances) and check the page in a browser. More traps in Bricks AI pitfalls.


