figma-tokens-flattener 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,10 +13,10 @@ Create a figma-tokens-flattener-config.json file in your project root:
13
13
  ```
14
14
  {
15
15
  "source": {
16
- "tokensFile": "src/tokens/tokens.json"
16
+ "tokensFile": "src/tokens/tokens.json" // path to the token file
17
17
  },
18
18
  "target": {
19
- "jsonsDir": "src/tokens"
19
+ "jsonsDir": "src/tokens" // path for the created files
20
20
  }
21
21
  }
22
22
  ```
@@ -39,7 +39,7 @@ Add a script to your package.json:
39
39
 
40
40
  And run with:
41
41
 
42
- ```npm run flatten-tokens```
42
+ `npm run flatten-tokens`
43
43
 
44
44
  ## How It Works
45
45
 
@@ -52,6 +52,7 @@ And run with:
52
52
  4. Result Saving - Creates separate JSON files for each theme
53
53
 
54
54
  ## Output
55
+
55
56
  After running the command, the following files will be created in the target directory:
56
57
 
57
58
  light-theme-tokens.json - tokens for light theme
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "figma-tokens-flattener",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
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
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
- "keywords": [],
9
+ "keywords": ["figma", "design-tokens", "tokens", "json", "flattener", "transformer", "parser"],
10
10
  "author": "Yurii Sudarskii",
11
11
  "license": "ISC"
12
12
  }