{"id":13774057,"url":"https://github.com/gmfun/rollup-plugin-sass-variables","last_synced_at":"2025-05-11T06:32:00.660Z","repository":{"id":53873407,"uuid":"141913225","full_name":"gmfun/rollup-plugin-sass-variables","owner":"gmfun","description":"rollup plugin for loading sass/scss variables as javascript object","archived":false,"fork":false,"pushed_at":"2019-07-18T02:53:04.000Z","size":8,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T08:06:05.677Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmfun.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":"2018-07-22T16:41:14.000Z","updated_at":"2023-10-10T16:16:01.000Z","dependencies_parsed_at":"2022-09-19T03:41:20.801Z","dependency_job_id":null,"html_url":"https://github.com/gmfun/rollup-plugin-sass-variables","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/gmfun%2Frollup-plugin-sass-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmfun%2Frollup-plugin-sass-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmfun%2Frollup-plugin-sass-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmfun%2Frollup-plugin-sass-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmfun","download_url":"https://codeload.github.com/gmfun/rollup-plugin-sass-variables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225021957,"owners_count":17408523,"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-08-03T17:01:23.307Z","updated_at":"2024-11-17T09:30:29.935Z","avatar_url":"https://github.com/gmfun.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["CSS"],"readme":"# rollup-plugin-sass-variables\n\n### Rollup plugin for loading sass/scss variables as javascript object\n\n\u003ca href=\"LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\" alt=\"Software License\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/gmfun/rollup-plugin-sass-variables/issues\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/gmfun/rollup-plugin-sass-variables.svg\" alt=\"Issues\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"http://standardjs.com/\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg\" alt=\"JavaScript Style Guide\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://npmjs.org/package/rollup-plugin-sass-variables\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/rollup-plugin-sass-variables.svg?style=flat-squar\" alt=\"NPM\" /\u003e\n\u003c/a\u003e\n\n## Installation\n```bash\nnpm install rollup-plugin-sass-variables -D\n// or\nyarn add rollup-plugin-sass-variables --dev\n```\n\n## Usage\nCall the pluglin inside `plugins` array\n\n```js\nimport scssVariable from 'rollup-plugin-sass-variables'\n\nexport default {\n  ...\n  plugings: [\n    ...\n    scssVariable()\n  ]\n}\n```\n\nImport `.scss` or `.sass` file like any of the following\n\n```js\nimport variables from 'variables!../../styles/colors.scss'\n\nimport variables from 'sass-variable-loader!../../styles/colors.scss'\n\nimport variables from '!!sass-variable-loader!../../styles/colors.scss'\n\nimport variables from '!!sass-variable-loader?preserveVariableNames!../../styles/colors.scss'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmfun%2Frollup-plugin-sass-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmfun%2Frollup-plugin-sass-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmfun%2Frollup-plugin-sass-variables/lists"}