You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/nimiq-icons/README.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,30 @@ You can preview the icons in the `apps/icons-ui` directory. This directory conta
18
18
19
19
## Environment Variables
20
20
21
-
The package requires the following environment variables:
21
+
The package uses the following environment variables for Figma integration:
22
22
23
23
```bash
24
-
FIGMA_FILE_ID: The ID of the Figma file.
25
-
FIGMA_API_TOKEN: The API token for Figma.
24
+
FIGMA_FILE_ID: The ID of the Figma file
25
+
FIGMA_API_TOKEN: The API token for Figma
26
26
```
27
27
28
+
**Important:** These are ONLY required if you're actively working on updating icons from Figma. Most developers can ignore this - the icon build will automatically skip if credentials are not configured.
29
+
30
+
### Setup for Icon Development
31
+
32
+
1. Copy `.env.example` to `.env` in the `packages/nimiq-icons` directory
33
+
2. Get a Figma API token from https://www.figma.com/developers/api#access-tokens
34
+
3. Get the File ID from the Nimiq Figma file URL
35
+
4. Fill in the values in your `.env` file
36
+
5. Ensure you have access permissions to the Nimiq Figma file
37
+
38
+
### Troubleshooting
39
+
40
+
If you encounter a 404 error when running `pnpm dev`:
41
+
42
+
-**Don't need to update icons?** Delete the `.env` file - the build will skip automatically
43
+
-**Need to update icons?** Verify your credentials are correct and you have access to the Figma file
44
+
28
45
## Scripts
29
46
30
-
The package provides a dev script that you can run with npm run dev. This script uses bun to compile the TypeScript source code.
47
+
The package provides a dev script that you can run with `pnpm dev`. This script processes icons from Figma and generates the icon packages.
0 commit comments