{"id":21575465,"url":"https://github.com/rangle/invision-dsm-utlities","last_synced_at":"2025-04-10T16:32:11.912Z","repository":{"id":42930055,"uuid":"236815118","full_name":"rangle/invision-dsm-utlities","owner":"rangle","description":"Utility scripts to help integrate InVision Design System Manager (DSM) into your front-end codebase.","archived":false,"fork":false,"pushed_at":"2023-01-05T16:24:38.000Z","size":746,"stargazers_count":3,"open_issues_count":21,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T14:12:59.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rangle.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}},"created_at":"2020-01-28T18:59:36.000Z","updated_at":"2021-04-16T20:20:02.000Z","dependencies_parsed_at":"2023-02-04T07:00:33.336Z","dependency_job_id":null,"html_url":"https://github.com/rangle/invision-dsm-utlities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Finvision-dsm-utlities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Finvision-dsm-utlities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Finvision-dsm-utlities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Finvision-dsm-utlities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/invision-dsm-utlities/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801160,"owners_count":20998339,"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":[],"created_at":"2024-11-24T12:13:22.156Z","updated_at":"2025-04-10T16:32:11.889Z","avatar_url":"https://github.com/rangle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# invision-dsm-utils\n\nUtility scripts to help integrate [InVision Design System Manager (DSM)](https://www.invisionapp.com/design-system-manager) into your front-end codebase.\n\n*You will need to be an InVision DSM customer to get value out of this library*\n\n## Functionality\n\n* Download design token files\n* Transform design tokens into JS file that meets [Styled System Theme Specification](https://styled-system.com/theme-specification)\n\n## Installation\n\n```\nnpm install --dev invision-dsm-utils\n```\n\n## API\n\n### Configuration\n\nYou must set two variables in a configuration file that follows the [cosmicconfig](https://github.com/davidtheclark/cosmiconfig) pattern (e.g. a `package.json` property, an extensionless \"rc file\", etc.)\n\n**.invisiondsmutilsrc**\n\n```\n{\n    dsmExportUrl: \u003curl\u003e,\n    key: \u003cstring\u003e\n}\n``` \n\nFind these values by:\n\n* Log into InVision DSM\n* Select your project\n* In the top right corner select the icon `\u003c/\u003e`\n* Select `Design tokens`\n* Select `CSS`\n* Copy the URL displayed underneath the `Styles` heading and paste it into a text editor. For instance:\n\n```\nhttps://rangle.invisionapp.com/dsm-export/rangle-io/where-van-gogh/_style-params.css?key=Hk4MnZ1bU\n```\n\n* The `dsmExportUrl` is `https://rangle.invisionapp.com/dsm-export/rangle-io/where-van-gogh`\n* The `key` is the url query parameter value `Hk4MnZ1bU`\n\n### Download\n\nThis is a node script that accepts inputs from the command line.\n\n```\ninvision-dsm-utils download \u003ctype\u003e \u003coutDir\u003e [options]\n```\n\n**Arguments**\n```\ntype: css | scss | less | styl | xml | json | yaml | android | ios\noutDir: relative path to output directory\n``` \n\n**Optional Inputs**\n```\n--icons-out-dir: relative path to output directory\n--json-export-format: lookup | list\n```\n\nNote that `json-export-format` is only relevant when `type` is `json`. The default value is `lookup`.\n\nSetting the `--icons-out-dir` will download a zip file of icons from the DSM.\n\n### Transform\n\nThis is a node script that accepts inputs from the command line.\n\n```\ninvision-dsm-utils transform \u003cinFile\u003e \u003coutFile\u003e\n```\n\n**Arguments**\n```\ninFile: relative path to input to design tokens in JSON lookup format\noutFile: relative path to JS file \n```\n\nThe outfile can be used as a theme object for any library that supports the `Styled System Theme Specification` (e.g. [styled-system](https://styled-system.com/)).\n\n## Examples\n\nView the `examples` folder.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Finvision-dsm-utlities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Finvision-dsm-utlities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Finvision-dsm-utlities/lists"}