{"id":13765297,"url":"https://github.com/jxnblk/figma-theme","last_synced_at":"2025-10-02T23:34:08.181Z","repository":{"id":67375962,"uuid":"140108691","full_name":"jxnblk/figma-theme","owner":"jxnblk","description":"Generate development-ready theme JSON files from Figma Styles","archived":true,"fork":false,"pushed_at":"2018-07-10T18:51:53.000Z","size":12,"stargazers_count":139,"open_issues_count":0,"forks_count":25,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-29T06:01:26.658Z","etag":null,"topics":["css-in-js","design-systems","figma","figma-api","figma-js","styled-system","styles","theme","tokens"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jxnblk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-07T18:35:48.000Z","updated_at":"2024-09-29T02:25:19.000Z","dependencies_parsed_at":"2023-02-21T03:00:54.014Z","dependency_job_id":null,"html_url":"https://github.com/jxnblk/figma-theme","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnblk%2Ffigma-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnblk%2Ffigma-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnblk%2Ffigma-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jxnblk%2Ffigma-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jxnblk","download_url":"https://codeload.github.com/jxnblk/figma-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235049009,"owners_count":18927715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css-in-js","design-systems","figma","figma-api","figma-js","styled-system","styles","theme","tokens"],"created_at":"2024-08-03T16:00:36.660Z","updated_at":"2025-10-02T23:34:07.815Z","avatar_url":"https://github.com/jxnblk.png","language":"JavaScript","funding_links":[],"categories":["Rest API integrations","Rest API 集成","JavaScript"],"sub_categories":[],"readme":"\n# figma-theme\n\nGenerate development-ready theme JSON files from Figma Styles\n\n- Parse [Styles][] from a Figma file ID\n- Works with [Styled System][] and other CSS-in-JS setups\n- Built with [figma-js][]\n\n```sh\nnpm i figma-theme\n```\n\n## Getting Started\n\n1. Install `figma-theme` as a dev dependency in your project\n2. Get a [personal access token][token] for the Figma API\n3. Create a `.env` file with your access token\n  - `FIGMA_TOKEN=\u003cpersonal-access-token\u003e`\n  - Alternatively add an environment variable for `FIGMA_TOKEN`\n4. Add an npm run script: `figma-theme \u003cfigma-file-id\u003e`\n5. Run the script to create a `theme.json` file based on Figma Styles\n\n## Options\n\nOptions can be passed as CLI flags or included in a `figma-theme` object in your `package.json`\n\n- `--out-dir`: output directory (default current working directory)\n- `--metadata`: include additional metadata from the Figma API\n\n[Styles]: https://help.figma.com/properties-panel/styles\n[Styled System]: https://jxnblk.com/styled-system\n[token]: https://www.figma.com/developers/docs#auth-dev-token\n[figma-js]: https://github.com/jongold/figma-js\n\n\u003c!--\n- TRi6YSk76405ImoatoMF1u28\n- 2aMG4hw2qp3jSTGmtAMyhZ\n- JGLoPfwRFqCwn4xZ8wUmSwp7\n- Yw9L6FATzLpdcsnA5vdSgCRT\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxnblk%2Ffigma-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjxnblk%2Ffigma-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjxnblk%2Ffigma-theme/lists"}