Playground ยท 2.2.0

Try the markup.

The preview uses the same /layoutkit.css this site loads. Narrow the window and the switcher, sidebar, and grid respond on their own. The editor is the only script on the page. It copies the textarea into the preview. It does not compute the layout.

LayoutKit markup
Live preview

Switcher

Row above 30rem.

Container

Stacked below 30rem.

Equivalent layout CSS, written by hand
/* The hand-written rules appear here when the editor runs. */