Stack Layout Hacks is a powerful productivity plugin for Sketch (Athens release and newer) designed to bridge the gaps in the native Stack Layout implementation. It provides advanced controls for bulk-managing stack properties, deep-toggling clipping behavior, and streamlining design system workflows.
- Copy & Paste Stack Properties: Copy full stack configurations (direction, spacing, wrapping, padding, sizing, and corner styles) from one layer and apply them to multiple targets.
- Deep Padding Control: Forces individual padding mode (
paddingSelection: 2) to ensure asymmetric values (e.g., Top: 6, Bottom: 0) are applied correctly.
- Bulk Enable/Disable Clip Content: Deeply traverse layer trees to enable or disable the "Clip Content" property on all nested Stacks within a selection.
- Smart Logic: Uses native
clippingBehaviorkeys to ensure UI consistency in the Sketch Inspector.
Quickly set Horizontal or Vertical sizing for parents and all nested children:
- Width: Set to Fill (children), Fit, or Fixed.
- Height: Set to Relative, Fit, or Fixed.
- Separate Horizontal Stacks: Wrap each selected object (Text, Shape, Group, or Frame) into its own individual Horizontal Stack wrapper.
- Separate Vertical Stacks: Wrap objects into individual Vertical Stacks using native
flexDirectionandaxisparameters for 100% accuracy.
Coming Soon
01text-styles.mp4
- Download the latest release of the plugin.
- Double-click
stack-layout-hacks.sketchpluginto install.
- Select a Frame or Group with an active Stack Layout.
- Run
Plugins -> Stack Layout Hacks -> Copy Stack Properties. - Select one or more target layers.
- Run
Plugins -> Stack Layout Hacks -> Paste Stack Properties.
Select a top-level container and run Enable Clip Content or Disable Clip Content. The plugin will recursively find all nested Stacks and update their clipping behavior.
Select multiple layers (e.g., several icons or text fields) and run Create Separate Vertical Stacks. Each layer will be wrapped in a new Frame named "Stack" with the vertical layout enabled.
- Sketch 100+ (Athens Release) is highly recommended for full compatibility with modern
MSFlexGroupLayoutandFrameobjects.
If you find this plugin helpful, consider supporting its development:
- Visit our store: WhiteUI.Store
- Donate: Buy Me a Coffee
Created by WhiteUI.Store. Reach out for feedback or custom plugin development.
MIT © WhiteUI.Store
