The Converter can handle a wide range of HTML, CSS, and JavaScript. But the closer your code follows a few standard conventions, the more of it lands as native Webflow elements instead of as embedded code. Sections written with these patterns convert quickly, look right in the Designer, and need almost no cleanup afterward.
These are the patterns the Converter is built around. Code that follows them produces the cleanest possible Webflow output:
If you’re writing code yourself, follow these by hand. If you’re generating with AI, use the prompt below.
This is the prompt we recommend handing to your AI tool when you want code that converts well. It’s also visible on the Converter page itself, so you can copy it from there anytime.
Write vanilla HTML and CSS using REM units instead of PX, BEM-style class naming, class-only styling (no tag or ID selectors), no descendant selectors, simple selectors only, minimal utility classes, no complex pseudo-selectors.
Come up with a [SECTION TYPE] section for [YOUR PROJECT]. Add smooth animations using GSAP. Only use free GSAP plugins (ScrollTrigger, Flip, Observer, ScrollTo, Draggable, MotionPathPlugin, EasePack, CustomEase).
Replace [class][SECTION TYPE][/class] with what you want (a pricing section, a hero, a testimonial row, etc.) and [class][YOUR PROJECT][/class] with a short description of the brand or product. The first paragraph sets the technical rules. The second paragraph tells the AI what to build.
This prompt works in Claude, ChatGPT, Lovable, v0, Cursor, and any other AI tool that can generate HTML. Drop it in, fill in the brackets, and the output should convert with very little extra work.
The prompt above gives you technically clean code. To get code that also follows the visual style of a BYQ template, combine it with a Design System:
The Design System tells the AI how it should look. The prompt tells the AI how it should be coded. Together you get a section that’s both visually polished and technically clean — ready for the Converter to bring into Webflow as native elements.
The example prompt includes GSAP because GSAP is the most reliable way to get sophisticated, smooth animations out of AI tools. The trade-off is that GSAP-driven motion lands as an embedded script in Webflow (as covered in How the Converter works), so it won’t render in the Designer and isn’t editable via Webflow’s interactions panel.
If you’d prefer animations that are editable inside Webflow, you can swap that line for something like:
Use CSS transitions and keyframe animations only — no JavaScript animation libraries.
The result is less elaborate motion but fully native Webflow CSS that you can tweak in the style panel.
A short list of things that consistently produce embeds instead of native elements:
None of these will break a conversion. They just produce more custom code embeds and less editable Webflow structure.
Code that follows these patterns converts in seconds and gives you a Webflow section you can edit normally. Code that doesn’t follow them still converts — it just produces more embedded blocks and more cleanup work after. Spending a moment on the prompt before generating saves you that cleanup later, every time.