Create Advanced Adaptive Buttons Using Layers In Sketch

Travis Folck
Design + Sketch
Published in
8 min readJan 7, 2019

--

Note: With Sketch 58, this method is no longer needed. Check out my new article on how to easily create adaptive buttons using Sketch’s Smart Layout.

This is the second method for creating adaptive buttons in Sketch. Be sure to check out the first method: Create Adaptive Buttons Using Combined Shapes In Sketch.

This method allows you to create adaptive buttons with a drop shadow, ability to change the button surface color and text color; even when nested in other symbols.

This method allows adaptive solid buttons with optional drop shadow

⬇︎ Download Sketch File

As mentioned in the Combined Shapes article, symbol dimensions do not respond to text length. Thus, solid button dimensions do not adapt to their override text length. Let’s fix that.

Introducing the Layer Method

This article can be used to create a combination of multiple button styles, we’ll be focusing on creating a button row. For maximum flexibility, we’ll create two symbols: one with a drop shadow and one without.

How this method works

This method uses some techniques from the previous article, but uses layers instead, allowing for the ability to apply different colors to the button surface and labels.

--

--

Travis Folck
Design + Sketch

I love technology and design. I find great satisfaction when they come together to create a great experience.