figma-tokens-flattener 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -6
- package/package.json +24 -16
package/index.js
CHANGED
|
@@ -444,7 +444,7 @@ function flatten() {
|
|
|
444
444
|
const lightDefaultKey = `Default/Light`;
|
|
445
445
|
const darkDefaultKey = `Default/Dark`;
|
|
446
446
|
|
|
447
|
-
//
|
|
447
|
+
//Processing of light tokens
|
|
448
448
|
if (allTokensData.hasOwnProperty(lightFullKey)) {
|
|
449
449
|
// Special processing transformation of each collection into a flat structure
|
|
450
450
|
|
|
@@ -478,7 +478,7 @@ function flatten() {
|
|
|
478
478
|
console.warn(`Collection not found, collection key: ${lightFullKey}`);
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
//
|
|
481
|
+
//Processing of dark tokens
|
|
482
482
|
if (allTokensData.hasOwnProperty(darkFullKey)) {
|
|
483
483
|
|
|
484
484
|
if (baseKey === 'colors') {
|
|
@@ -533,8 +533,4 @@ function flatten() {
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
// module.exports = {
|
|
537
|
-
// flatten
|
|
538
|
-
// };
|
|
539
|
-
|
|
540
536
|
flatten();
|
package/package.json
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "figma-tokens-flattener",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A tool for transforming Ant Design tokens from Tokens Studio for Figma (Single file) into flat style mappings for light and dark themes.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"figma-tokens-flattener": "index.js"
|
|
8
|
-
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "figma-tokens-flattener",
|
|
3
|
+
"version": "1.0.16",
|
|
4
|
+
"description": "A tool for transforming Ant Design tokens from Tokens Studio for Figma (Single file) into flat style mappings for light and dark themes.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"figma-tokens-flattener": "index.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/jurassic-period/figma-tokens-flattener.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/jurassic-period/figma-tokens-flattener#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/jurassic-period/figma-tokens-flattener/issues"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
19
|
+
"test:local": "node index.js"
|
|
20
|
+
},
|
|
21
|
+
"keywords": ["figma", "design-tokens", "tokens", "json", "flattener", "transformer", "parser"],
|
|
22
|
+
"author": "Yurii Sudarskii",
|
|
23
|
+
"license": "ISC"
|
|
24
|
+
}
|