ingrammicro / puzzle-tokens

Batch create, manage and update Sketch styles and symbols using SCSS/LESS
GNU General Public License v3.0
92 stars 17 forks source link

Change symbol overrides in symbol instances #39

Closed bigmediumjosh closed 3 years ago

bigmediumjosh commented 3 years ago

Added the -pt-override-symbol property for symbol instances which lets you change the symbol source for a symbol override in an instance. This is useful, for example, if you want to change the icon displayed in the symbol instance.

Usage:

#Card .IconButton {                      // Path to a symbol-instance layer
    // -pt-override-symbol: ('AffectedLayerName', '#Path #To #New #Symbol');
    // -pt-override-symbol: ('AffectedLayerName', 'none');
    // For example:

    -pt-override-symbol: ('RightIcon ', '#Icons #Arrows #RightArrow');
}
MaxBazarov commented 3 years ago

I'm glad to get such pull requests!