Can I add adaptive layout behaviors to code-generated layers?
you can use layer.x = Align.bottom(offset) to set adaptive layouts.
along with setting a layer's width/height relative to Screen. So layer.width = Screen.width - 32
Wont you have to run that with a window.onresize event?
I'd also take a look at this design components module. it uses an awesome constraints module that does what you want. It's not standalone so you'd have to include both module files but its really useful https://github.com/sebcglbailey/framer-DesignComponents