{"id":36593637,"url":"https://github.com/elementsinteractive/design-tokens","last_synced_at":"2026-01-12T08:24:28.054Z","repository":{"id":37474828,"uuid":"505866368","full_name":"elementsinteractive/design-tokens","owner":"elementsinteractive","description":"Design Tokens generation library","archived":false,"fork":false,"pushed_at":"2023-12-08T14:52:33.000Z","size":1110,"stargazers_count":4,"open_issues_count":6,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-23T02:51:32.535Z","etag":null,"topics":["codegeneration","figma-tokens","kotlin","style-dictionary","swift"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elementsinteractive.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-21T13:57:32.000Z","updated_at":"2023-03-30T11:39:08.000Z","dependencies_parsed_at":"2023-02-18T06:45:15.916Z","dependency_job_id":null,"html_url":"https://github.com/elementsinteractive/design-tokens","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/elementsinteractive/design-tokens","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Fdesign-tokens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Fdesign-tokens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Fdesign-tokens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Fdesign-tokens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elementsinteractive","download_url":"https://codeload.github.com/elementsinteractive/design-tokens/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elementsinteractive%2Fdesign-tokens/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["codegeneration","figma-tokens","kotlin","style-dictionary","swift"],"created_at":"2026-01-12T08:24:21.256Z","updated_at":"2026-01-12T08:24:28.049Z","avatar_url":"https://github.com/elementsinteractive.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/@makerstreet%2Fdesign-tokens.svg)](https://badge.fury.io/js/@makerstreet%2Fdesign-tokens)\n\n# Elements Design Tokens\n\n\u003e Design System code generation for Elements projects with Figma Tokens and Style Dictionary\n\n## Contents\n\n- [Goal of this library](#goal-of-this-library)\n- [Supported platforms](#supported-platforms)\n- [Installation](#installation)\n- [CLI Usage](#cli-Usage)\n\n## Goal of this library\n\nAt Elements we use Figma to create our designs. By using the [Figma Tokens](https://www.figmatokens.com/) plugin we define design tokens by with all the values needed to construct and maintain a design system for a project.\n\nWith this library you can generate the theme code for a specific platform.\n\n## Supported platforms\n\n- Android with Compose UI\n- iOS with SwiftUI\n\n## Installation\n\nYou can install it globally:\n\n```bash\n$ npm install -g @makerstreet/design-tokens\n```\n\nOr as a dev dependency:\n\n```bash\n$ npm install -D @makerstreet/design-tokens\n```\n\nIf you use yarn:\n\n```bash\n$ yarn add @makerstreet/design-tokens --dev\n```\n\n## CLI Usage\n\n```bash\nelements-design-tokens \u003cplatform\u003e\n```\n\n| Flag      | Short Flag | Description             |\n| --------- | ---------- | ----------------------- |\n| --help    | -h         | Display help content    |\n| --version | -v         | Display current version |\n| platform  |            | Values: android, ios    |\n\n### Android\n\n```bash\nelements-design-tokens android\n```\n\n| Flag                | Short Flag | Description                                      |\n| ------------------- | ---------- | ------------------------------------------------ |\n| --input \\[input\\]   | -i         | JSON file with design tokens                     |\n| --config \\[config\\] | -c         | JSON file with configuration for the theme files |\n\n#### Config file\n\nContains configuration for the different theme files. Including where to store the file and which packageName to use\n\n```json\n{\n  \"theme\": {\n    \"typography\": {\n      \"destination\": \"\",\n      \"packageName\": \"\"\n    },\n    \"colors: {\n      \"destination\": \"\",\n      \"packageName\": \"\"\n    },\n    \"spacings\": {\n      \"destination\": \"\",\n      \"packageName\": \"\"\n    }\n  }\n}\n```\n\n### iOS\n\n```bash\nelements-design-tokens ios\n```\n\n| Flag                          | Short Flag | Description                       |\n| ----------------------------- | ---------- | --------------------------------- |\n| --input \\[input\\]             | -i         | JSON file with design tokens      |\n| --theme \\[theme\\]             | -t         | Theme name, ex. LightTheme        |\n| --destination \\[destination\\] | -d         | Where to write the generated code |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementsinteractive%2Fdesign-tokens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felementsinteractive%2Fdesign-tokens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felementsinteractive%2Fdesign-tokens/lists"}