Skip to content

Commit

Permalink
convertDesignTokens.mjs: wrapping darken() & lighten() into #{}
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Nov 28, 2023
1 parent 0290654 commit 009c000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildScripts/convertDesignTokens.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function parseTokens(fileContent, prefix=tokenPrefix, map=[]) {
keys.forEach(objKey => {
if (objKey !== baseKey) {
modify = value[objKey].$extensions?.['studio.tokens']?.modify;
keyValue = `${modify.type}(${baseValue}, ${modify.value * 100}%)`;
keyValue = `#{${modify.type}(${baseValue}, ${modify.value * 100}%)}`;

map.push([`${ns}-${objKey}`, keyValue]);
} else {
Expand Down

0 comments on commit 009c000

Please sign in to comment.