{"id":21701397,"url":"https://github.com/ktsn/vue-custom-properties","last_synced_at":"2026-04-12T18:03:11.418Z","repository":{"id":57395496,"uuid":"91176199","full_name":"ktsn/vue-custom-properties","owner":"ktsn","description":"Make easier to use CSS custom properties in Vue components","archived":false,"fork":false,"pushed_at":"2017-05-13T13:29:09.000Z","size":47,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T11:56:41.401Z","etag":null,"topics":["css","css-custom-properties","vue"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ktsn.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}},"created_at":"2017-05-13T13:28:40.000Z","updated_at":"2019-08-06T13:25:02.000Z","dependencies_parsed_at":"2022-08-27T14:26:19.720Z","dependency_job_id":null,"html_url":"https://github.com/ktsn/vue-custom-properties","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ktsn/vue-custom-properties","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fvue-custom-properties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fvue-custom-properties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fvue-custom-properties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fvue-custom-properties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktsn","download_url":"https://codeload.github.com/ktsn/vue-custom-properties/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktsn%2Fvue-custom-properties/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268371994,"owners_count":24239795,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css","css-custom-properties","vue"],"created_at":"2024-11-25T20:19:36.774Z","updated_at":"2025-10-07T10:21:56.396Z","avatar_url":"https://github.com/ktsn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-custom-properties\n\nMake easier to use CSS custom properties in Vue components\n\n## Installation\n\n```bash\n$ npm install --save vue-custom-properties\n# or\n$ yarn add vue-custom-properties\n```\n\n## Example\n\n1. Install it into Vue.js.\n\n```js\nimport Vue from 'vue'\nimport VueCustomProperties from 'vue-custom-properties'\n\nVue.use(VueCustomProperties)\n```\n\n2. Define `customProperties` option in your components.\n\n```js\nexport default {\n  data() {\n    return {\n      color: 'red',\n      size: 12\n    }\n  },\n\n  customProperties: {\n    '--base-color': 'color', // --base-color: red;\n    '--base-size'() {\n      return this.size + 'px' // --base-size: 12px;\n    }\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsn%2Fvue-custom-properties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktsn%2Fvue-custom-properties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktsn%2Fvue-custom-properties/lists"}