{"id":21448960,"url":"https://github.com/stackcss/sheetify-variables","last_synced_at":"2025-08-08T17:08:29.284Z","repository":{"id":21498418,"uuid":"24817354","full_name":"stackcss/sheetify-variables","owner":"stackcss","description":"Spec compliant CSS variables syntax for sheetify","archived":false,"fork":false,"pushed_at":"2014-11-13T00:49:45.000Z","size":144,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-25T14:04:00.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/stackcss.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.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":"2014-10-05T14:24:11.000Z","updated_at":"2014-10-13T22:26:08.000Z","dependencies_parsed_at":"2022-08-21T16:00:49.136Z","dependency_job_id":null,"html_url":"https://github.com/stackcss/sheetify-variables","commit_stats":null,"previous_names":["yoshuawuyts/sheetify-variables"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackcss/sheetify-variables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackcss%2Fsheetify-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackcss%2Fsheetify-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackcss%2Fsheetify-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackcss%2Fsheetify-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackcss","download_url":"https://codeload.github.com/stackcss/sheetify-variables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackcss%2Fsheetify-variables/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263204576,"owners_count":23430252,"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-23T03:17:40.942Z","updated_at":"2025-07-02T19:35:57.050Z","avatar_url":"https://github.com/stackcss.png","language":"JavaScript","readme":"# sheetify-variables\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Downloads][downloads-image]][downloads-url]\n\nA [sheetify][sheetify-url] transform to add support for\n[W3C-style CSS variables](http://www.w3.org/TR/css-variables/) syntax.\nUses [`rework-vars`][rework-vars-url] to perform the transformation.\n\n__N.B.__ This is not a polyfill. This transform aims to provide a future-proof way\nof using a limited subset of the features provided by native CSS variables.\n\n## Installation\n```bash\nnpm install sheetify-variables\n```\n\n## Usage\nAs a sheetify transform:\n```js\nvar variables = require('sheetify-variables');\nvar sheetify = require('sheetify');\n\nsheetify('path/to/my/index.css')\n  .transform(variables({preserve: true}))\n  .bundle();\n```\n\n## Options\n#### map\nOptionally, you may pass an object of variables to the JavaScript function.\n```js\nvar myVars = {\n  'app-bg-color': 'white'\n};\n\nvariables({map: myVars});\n```\n#### preserve\nSetting preserve to true will preserve the variable definitions and references\nin the output, so that they can be used by supporting browsers.\n```js\nvariables({preserve: true});\n```\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[npm-image]: https://img.shields.io/npm/v/sheetify-variables.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/sheetify-variables\n[travis-image]: https://img.shields.io/travis/yoshuawuyts/sheetify-variables.svg?style=flat-square\n[travis-url]: https://travis-ci.org/yoshuawuyts/sheetify-variables\n[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/sheetify-variables.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/yoshuawuyts/sheetify-variables?branch=master\n[downloads-image]: http://img.shields.io/npm/dm/sheetify-variables.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/sheetify-variables\n\n[sheetify-url]: https://github.com/requireio/sheetify\n[rework-vars-url]: https://github.com/reworkcss/rework-vars\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackcss%2Fsheetify-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackcss%2Fsheetify-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackcss%2Fsheetify-variables/lists"}