Border field sandbox

Back to the lab

Every setting the border has, live. Type in the field, or press a state to see it. When you like it, copy the settings or take the whole thing to CodePen.

Ready-made pens

It's JavaScript. The outline is an SVG path rebuilt every frame from the settings above, about 300 lines with no libraries (border-field.js). CSS does the colours, the icon, the shake and the pop. Your settings are kept in this browser, so they're still here next time.