{"id":24803894,"url":"https://github.com/serendie/figma-utils","last_synced_at":"2026-02-08T07:01:51.030Z","repository":{"id":274775503,"uuid":"916523291","full_name":"serendie/figma-utils","owner":"serendie","description":"Import/Export Figma Variables to JSON (W3C Design Tokens spec) with Figma REST API","archived":false,"fork":false,"pushed_at":"2025-01-29T09:49:06.000Z","size":392,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T06:45:19.340Z","etag":null,"topics":["figma","figma-api","figma-plugin","figma-variables"],"latest_commit_sha":null,"homepage":"https://serendie.design/foundations/design-tokens/#section-6","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serendie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-14T09:07:40.000Z","updated_at":"2025-02-03T21:09:19.000Z","dependencies_parsed_at":"2025-01-29T10:31:46.712Z","dependency_job_id":"a74e3ca3-c621-47d2-878f-2a0c4a577a0a","html_url":"https://github.com/serendie/figma-utils","commit_stats":null,"previous_names":["serendie/figma-utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serendie/figma-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serendie%2Ffigma-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serendie%2Ffigma-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serendie%2Ffigma-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serendie%2Ffigma-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serendie","download_url":"https://codeload.github.com/serendie/figma-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serendie%2Ffigma-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262647172,"owners_count":23342607,"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":["figma","figma-api","figma-plugin","figma-variables"],"created_at":"2025-01-30T06:13:46.678Z","updated_at":"2026-02-08T07:01:49.795Z","avatar_url":"https://github.com/serendie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDS Figma Utilities\n\n[![GitHub](https://img.shields.io/github/license/serendie/figma-utils?style=flat)](https://github.com/serendie/figma-utils/blob/main/LICENSE)\n[![NPM Version](https://img.shields.io/npm/v/%40serendie%2Ffigma-utils)](https://www.npmjs.com/package/@serendie/figma-utils)\n[![X](https://img.shields.io/twitter/follow/SerendieDesign)](https://x.com/SerendieDesign/)\n\n[Serendie Design System](https://serendie.design/)で使われるFigma用ユーティリティーです。\n[`@serendie/design-token`](https://github.com/serendie/design-tokens)の中で定義される[W3C Design Tokens Spec](https://tr.designtokens.org/format/)準拠のJSONを、Figma VariablesにImport/Exportするスクリプトが含まれています。\n\nなお、Figma REST APIを前提としており、利用にはFigmaエンタープライズプランが必要です。\n\n## Usage\n\n### Prepare\n\n`.env`に下記を設定してください。\n\n- `PERSONAL_ACCESS_TOKEN`\n  - Variablesの[Read/Write Scope](https://www.figma.com/developers/api#authentication-scopes)を有するFigmaのpersonal access token\n- `FILE_KEY`\n  - Import/Export先のVariablesを有するFigmaファイルのKey\n  - FigmaファイルのURLに含まれます (`https://www.figma.com/file/{FILE_KEY}/...`)\n\n### Commands\n\n**JSON to Figma Variables (Import)**\n```\nnpm run sync-json-to-figma\n```\n\n**Figma Variables to JSON (Export)**\n```\nnpm run sync-figma-to-json\n```\n\n## Spec\n\nW3C Design Tokens Specではテーマ (Variablesモード) の扱いが定まっていないため、独自の命名規則を採用しています。詳しくは[こちら](https://github.com/serendie/serendie/tree/main/design-tokens#%E4%BB%95%E6%A7%98)を参照してください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserendie%2Ffigma-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserendie%2Ffigma-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserendie%2Ffigma-utils/lists"}