From c7c421248b54453cf77834b6bb7f934b217556f3 Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 25 Mar 2021 13:50:48 -0500 Subject: [PATCH] docs(sketch): additional notes on syncIconSymbols --- packages/sketch/src/commands/icons/shared.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sketch/src/commands/icons/shared.js b/packages/sketch/src/commands/icons/shared.js index 106ccbd0c116..3f05cf7a3361 100644 --- a/packages/sketch/src/commands/icons/shared.js +++ b/packages/sketch/src/commands/icons/shared.js @@ -105,6 +105,7 @@ export function syncIconSymbols({ IDL_SKETCH_LIBRARY_METADATA, }); + // import shared color styles from IDL Sketch library idlSketchLibrary .getImportableLayerStyleReferencesForDocument(document) .forEach((layerStyle) => { @@ -113,6 +114,7 @@ export function syncIconSymbols({ } }); + // set default icon color shared style const sharedStyle = [...document.sharedLayerStyles].find((sharedLayerStyle) => sharedLayerStyle?.name.endsWith('black') );