Skip to content

Commit

Permalink
update icons.mjs instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Jan 9, 2025
1 parent bc1cd0c commit f212a7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/icons.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// 1. export icons from Figma using Export Variants plugin using either option below:
/*
This script is used to generate the icons/gtp-figma-export.json file and icons/gtp-icon-names.ts file
from the SVG icons in the icons/small directory. The icon names are exported to the icons/gtp-icon-names.ts file
for use in TypeScript. The icons/gtp-figma-export.json file is used to import the icons into the project.
*/
// Follow these steps to update the icons in the project:
// 1. export icons from Figma using either option below:
// a. export using lib/figma.ts (requires FIGMA_ACCESS_TOKEN and FIGMA_FILE_KEY in .env.local)
// - ensure FIGMA_ACCESS_TOKEN and FIGMA_FILE_KEY are set in .env.local - see https://help.figma.com/hc/en-us/articles/8085703771159-Manage-personal-access-tokens, file key can be found in the Figma URL for the file
// - ensure ts-node is installed globally (npm install -g ts-node)

0 comments on commit f212a7b

Please sign in to comment.