Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(token => {
const { type } = meta.colors.find(group => {
return group.tokens.includes(token);
});
const name = `theme / ${theme.toLowerCase()} / ${type} tokens / ${formatTokenName(
token
)}`;
return syncColorStyle(document, name, themes[theme][token]);
});
});