Paddi helps you to set paddings for a Group, a Frame, or a Component. When you specify the padding values in the component name you can change the elements inside the component and apply the paddings in one click. The component will automatically resize itself so that it surrounds all other elements within the component according to padding values.
Specify the padding values within the component group or frame name. E.g. button [12 24]. The format of the padding values is in the same order as CSS.
✅ Paddi works with Groups, Frames, Components, Libraries.
✅ Paddi is simple! The only thing you need to do is specify the paddings in the component name
✅ Recognize components with paddings looking at their names. ⚡️ It works the same as in CSS.
✅ Paddi is flexible. No limitation there, set the same padding for all sides [12] or different for each one [12 24 14 32].
✅ Paddi uses a base element as a parent and calculates paddings from it.
✅ Speed up your workflow! You don’t need to open plugin settings all the time you need to update paddings. You only need to rename the component and run the Paddi.
✅ Natural master & instance behavior. If you change master component paddings, you don’t need to do anything else to update instances, Paddi will update all instances automatically.
✅ Paddi works with libraries. Create a master component in your library file and apply the padding for all its instances in any project file.
Padding values sets by clockwise from top to left sides. It works the same as in CSS. Examples:
- [12] - padding for all sides - 12px
- [12 24] - top&bottom - 12px, right&left - 24 px
- [12 24 32] - top - 12px, right&left - 24px, bottom - 32px
- [12 24 32 16] - top - 12px, right - 24px, bottom - 32px, left - 16px
We recommend to use space for separating padding values to keep it simple, however, you can use a comma as well. Examples:
- [12 24]
- [12, 24, 24, 12]
- Create a rectangle. This element will be the base of the component
- Put some text or another shape inside the rectangle
- Group these elements
- Select the Group and whether rename the Group by adding e.g. [16 32] at the end of the name or just run Paddi to apply the default values - [12 24]
- Change text or resize elements inside the Group
- Select the Group and run Paddi again to apply the paddings
- Write some text or create a shape
- Wrap it with a Frame
⚠️ In case you have only one element in the Frame the paddings will calculate from the Frame to its element.⚠️ In case you have more than 1 element inside the Frame and want to use this Frame as the base you need to wrap all its elements with a Group- Select the Frame and whether rename the Frame by adding e.g. [16 32] at the end of the name or just run Paddi to apply the default values - [12 24]
- Change text or resize elements inside the Frame
- Select the Frame and run Paddi again to apply the paddings
- After you have a Group with some paddings create a master component from it
- Set constraints for the master component to make sure its instances will responsive correctly. Set Scale for the base and make sure all other elements have Left and Top
- Change elements and run Paddi.
⚠️ Because you can’t change elements position in an instance you will be able to change only the text elements and then apply the paddings
To ignore some elements in your component, rename the necessary ones with [ignore] or [nopaddi] at the end of its name.
✅ Buttons
✅ Tab items
✅ Navigation items
✅ Dropdown menus
✅ Tags / Pils / Badges
✅ Tooltips / Popovers
✅ Icons
✅ UI Cards
✅ Modal dialogs
✅ Sections
✅ Etc.
To speed up your workflow add a shortcut to Paddi. It takes a minute to set up but keeps a lot of time later on. Open System Preferences -> Keyboard -> Shortcuts tab -> App Shortcuts -> Add new:
- Application: Figma
- Menu Title: Paddi
- Keyboard shortcut: cmd+shift+P (You can use your own)
Oleksandr Telnov & Mikhail Voloshin at Dumka.io
✅ Ignore Allows to ignore some elements in components with paddings to make it even more flexible. Similar to position absolute in CSS. Use [ignore] or [nopaddi] in layer name to exclude the element from Paddi calculation.
✅ Base Marker Now you can notice “(base)” in the layer name. It shows what elements is the base in your component.
✅ Multi-Paddi Apply Paddi for bunch of components at the same time. Now you can apply Paddi for several components in one click. Just select all necessary components and apply Paddi.