@economic/taco-tokens 3.0.5-EC-87491-test-release.0 → 3.0.5
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/README.md +6 -2
- package/package.json +2 -2
- package/tokens/tokens.css +2 -0
- package/tokens/tokens.js +2 -0
- package/tokens/tokens.ts +2 -0
package/README.md
CHANGED
|
@@ -54,14 +54,18 @@ packages/taco-tokens/
|
|
|
54
54
|
|
|
55
55
|
### Prerequisites
|
|
56
56
|
|
|
57
|
-
1.
|
|
57
|
+
1. Have view access to the Taco tokens Figma file, and a Figma personal access token created from that account (Figma → Settings → Security → Personal access tokens, with `file_content:read` scope). Figma returns `404 Not Found` for files your account can't see.
|
|
58
|
+
|
|
59
|
+
2. Create a `.env` file (see `.env.example`):
|
|
58
60
|
|
|
59
61
|
```bash
|
|
60
62
|
FIGMA_API_TOKEN=your_token_here
|
|
61
63
|
FIGMA_FILE_ID=your_file_id_here
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
`FIGMA_FILE_ID` is only the key from the file URL, not the full URL. For `https://www.figma.com/design/<FILE_ID>/Taco-tokens?node-id=0-1`, use `<FILE_ID>`. Pasting the full URL also gives a `404`.
|
|
67
|
+
|
|
68
|
+
3. Tokens are read from a page named exactly `Export` (case-sensitive), organized in frames/groups with TEXT nodes or color fills. If the fetch fails with `Could not find Figma page "Export"`, check the page name or that you're using the right file.
|
|
65
69
|
|
|
66
70
|
### Sync Command
|
|
67
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@economic/taco-tokens",
|
|
3
|
-
"version": "3.0.5
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"@types/node": "^22.20.5",
|
|
36
36
|
"typescript": "^6.0.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "77bc8dbba83be92989d8c6738d2ec8085dfc37d6"
|
|
39
39
|
}
|
package/tokens/tokens.css
CHANGED
package/tokens/tokens.js
CHANGED
package/tokens/tokens.ts
CHANGED