Figma Support Forum

5 Tips to Design Maintainable Inputs in Figma

I build several design systems every year and have learned a lot about designing components that are easy to use and maintain. One of the most important ones being inputs. They deserve to be built with great care because of how important, frequently used, and complex they are. I’m always telling my team to use these 5 tips so thought I’d share them here as well!

1) Use Variants

Use variants to make designing with input components faster, easier, and more consistent. With variants, you can simply select the “Input” component, then adjust the property values based on your design needs. Rather than sifting through multiple versions in the assets panel or making ad hoc overrides from memory.
Value - Com

Inputs are the perfect use case for variants because there are so many different versions of the same component (e.g. types, states, feedback messages, etc…). By creating them in advance, you’ll enable your design system to scale with your product, maintaining perfect consistency.
To create input variants, design every possible version of your input, turn them into components, then combine all of them as variants.

2) Use Base Components

Creating a brand new component for every possible version of your input (200+) takes time and is difficult to maintain. Instead, create a “Base Component” for each input type (e.g. right icon, left icon, double icon, text area, ect.) and nest an instance of that base component into each version. The nested base component can then have overrides applied to create a unique state (e.g. focused)

This method makes bulk customizations, or updates, quick and easy. Simply edit the base component(s) and watch all the variants follow suit. For example, to update the spacing on all 36 “Text Area” inputs, just edit the 1 “Text Area” base component.
Base - Com

3) Use Atoms

Atoms are small master components whose instances are used as building blocks in other, more complex components. Inputs can use atoms for things like the label, placeholder text, input text, feedback messages ect… Once your inputs have been built with atomic elements, making bulk edits is very easy. All you need to do is edit the atom’s master component and all of the instances will update to match. For example, to update the label on all 216 inputs, just edit the 1 “Label” atom.
Atom - Com

4) Use Auto Layout

Use auto layout to give your inputs multiple resizing behaviors for different amounts of content and container sizes. Below are three ways auto layout can make designing with inputs easier.

A. Dynamic width
Determine how the input contents will behave when the width changes to fit different container sizes. The width for each child (nested layer) should be set to “fill container” so they expand and contract with the input parent frame.
Auto - Width - com

B. Dynamic height
Make the input height dynamic to fit different amounts of content. The input parent frame height should be set to “hug contents” so it can expand and contract for new lines of text or feedback messages. “Text Areas” should set their input field height to “hug contents” as well to allow for multiple lines of text.
Auto - Height

C. Dynamic forms
Apply auto layout to forms to make them dynamic and perfectly fit any number of inputs and their changing sizes. The form frame’s height should be set to “hug contents” and the input’s widths should be set to “fill container”.
Auto - Form - Com

5) Override instances while designing

Overrides allow you to customize instances depending on the context of your designs while remaining attached to the master component. For example, you can apply overrides to an input by changing the copy and swapping out the icons. These overrides will only affect that instance and will persevere when the variant property values are updated.
Note: Style overrides (e.g. input color, font-weight, ect.) will never need to be made while designing as they were already made when creating the variants.
Override - Com


If you want to learn how to design maintainable inputs in Figma, I made a (free) Input UI kit using all the tips mentioned above. Feel free to use it as a playground or for your next project:)
Input UI Kit (free): Figma Freebie - Inputs 4.0

2 Likes

Good write up, i use this methodology for making quick edits across several components.

Do you use Input/Atom/X or Atom/X naming conventions or something different, so that its easy to tell the difference between what is a base component and what is an actual component?

2 Likes

Yes, all Base components are named “Base” and Atoms are named “Atom/[TYPE]”. Because they are both placed on a frame called “Bulk Edit Zone”, they will end up nesting under the title “Bulk Edit Zone” in the Assets Panel.

1 Like