Sketch Tutorial and Freebie
How to make responsive Forms in Sketch
Use the power of nested symbols to turn a simple rectangle with text into a muscular user-oriented form .
This is part of Frames for Sketch — series of short tutorials about best practices we used to make Frames Kit truly useful tool.
To start download Demo to feel the power of Sketch smart components, and don’t forget to check out Frames for Sketch to grab the entire kit, built with all kinds of smart components just like this one.
Use multiple inputs
With Frames you can achieve more flexibility when working with forms. We always want to have room to try different types of input fields and change them on fly, this could be really useful when we design for real projects so we want forms to be more friendly to work with.
In this demo, I want to highlight this three simple types of inputs: basic, with an icon on right, with an icon on the left and right. For each type we will have a nested symbol that has its own structure and elements inside, you can check them and find out how they looks like from the inside.
See them below.
The First Rule of Symbol Club.
Sketch allows you to swap symbols between each other, ONLY if they have the exact same artboard size. Remember this.
In order to make the magic happen so we can swap this input types, we need to put one of this symbols into another parent symbol, this will give us possibility to switch between all of input types easily from it overrides dropdown. As a parent we will be using another symbol with a upper label, use this small buddy-labels to describe the expected value of an input field to a user, for more information on different form types see the Symbol map in the demo file.
Customize visual details
For every symbol in Frames, we have a small building blocks inside each component, such as: Label , Text, Icon and State. Each of this blocks attributes can be accessed and tailored via overrides panel to fit the current interface situation. You can either use this pre-made attributes or customize them and inherit into your projects.
Since 44, resizing options have been updated with new resizing panel, to give you more power and control over how your layers should behave when you resize their parent container.
So keep an eye on that resizing panel on the right, and set it up for every child component, to be sure you symbols are always ready to be resized.
Before you leave, don’t forget to: