Introducing Padding in Sketch with Anima

Stacks Gets Upgrades Too

Anima App
Anima App
Oct 31, 2018 · 3 min read

Anima allows designers to create high-fidelity prototypes right inside Sketch, Adobe XD, and Figma and export HTML, CSS, or React code.

Starting today, it also lets you add padding to your groups and symbols 🎉

Padding means that when you change the content, the background changes dynamically with it. It works great when used with Stacks or Pins. And when used inside Symbols.

Here’s the basic flow:

  • Group a Text layer with a background Rect.
  • Click the Padding icon.
  • Adjust the distance you’d like that background Rectangle to keep from the text.
  • Edit the values to see it in action.
  • Click below the Padding input to toggle modes (See gif).
  • Click & Drag a label to adjust the Padding values (See gif).
  • Select the Padding group and click Create Symbol.
  • Change the text value using Overrides to see the Padding applying in real-time.
  • It will also resizes the Symbol instance.

Stacks allows layers to push each other, and keep a constant spacing between them.

To see how Padding and Stacks play together:

  • Stack some groups with Padding.
  • Adjust the Padding of the Padding Group to see how it works.
  • Advanced: Create a Symbol from that Stack and edit Overrides.
  • Advanced 2: Add a background with padding to the whole Stack.

To see how Padding and Pins play together:

  • Create a group with Padding.
  • Pin it to the right of the Artboard.
  • Edit content to see it in action.

Sadly, we don’t support nested symbols with overrides yet (i.e symbol with padding inside a symbol with Stack). If you find it limiting for your use-case, you can vote for Anima features here.

Edit 11/14: Padding now supports Nested Symbols

Stack Upgrades

Stacks are a popular feature, and today we have a few treats for Stacks fans:

If you have a single Stack in a symbol, it will now resize the symbol instance for overrides. This is optional, but default for new Stacks is On.

You can now use negative values. Main use-case here is overlapping border.

Click the spacing label and drag it to the sides. Happy times.

Join the discussion or show off your designs on Facebook, Twitter, Slack, Instagram, and vote for new features at UserVoice.

Stay creative!
❤️ Anima team

Design + Sketch

The best collection of articles, tips, tutorials, and…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store