Organize your shared styles using the layers list, create a hierarchy where children inherit properties from their parent.
Installation
Requires Sketch >= 53
- Download the latest release of the plugin
 - Un-zip
 - Double-click on sketch-styles-hierarchy.sketchplugin
 
Usage
- You run the 
setupcommand which creates 2 new pages:Text StylesandLayer Styles. - Then you use the layer list and the inspector to manage the shared styles.
 
Let’s say you have 4 text styles: Button/Primary, Button/Secondary, Header/H1 and Header/H2. You should have 2 groups: Button and Header with 3 text layers in each: Primary (or H1), Secondary (or H2) and __default.
You now have multiple possible actions (each triggered after changing the selection):
- rename a group to rename all the children (eg. renaming the 
Headergroup toHeadingwill changeHeader/H1toHeading/H1andHeader/H2toHeading/H2) - rename a layer to rename the shared style
 - create a new Group (eg. creating a new Group called 
InvertedfromButton/Secondarywill renameButton/SecondarytoButton/Inverted/Secondaryand create a new__defaultlayer) - drag and drop layers in the hierarchy to rename them
 - delete groups or layers to delete the Shared Styles
 - create new layers to create new shared styles
 
Now you might wonder what the __default layers are for, and that’s where the magic comes in ✨
- select a 
__defaultlayer and presscmd + shift + ,to be able to select which style properties its children should inherit (the__defaultis linked to a group, so the children are the children of the parent group of the__defaultlayer) - then, every time you change the 
__defaultstyle, the children will change as well 
														


