{"id":17952369,"url":"https://github.com/lostcrew/vue-styletron","last_synced_at":"2025-03-25T00:31:41.356Z","repository":{"id":49739069,"uuid":"94265269","full_name":"LostCrew/vue-styletron","owner":"LostCrew","description":"Styletron for Vue.js","archived":false,"fork":false,"pushed_at":"2017-06-14T22:37:42.000Z","size":33,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-19T05:42:40.003Z","etag":null,"topics":["css-in-js","javascript","plugin","styletron","styletronjs","vue","vuejs"],"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/LostCrew.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-06-13T22:52:34.000Z","updated_at":"2023-08-23T12:58:53.000Z","dependencies_parsed_at":"2022-09-09T05:50:15.810Z","dependency_job_id":null,"html_url":"https://github.com/LostCrew/vue-styletron","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LostCrew%2Fvue-styletron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LostCrew%2Fvue-styletron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LostCrew%2Fvue-styletron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LostCrew%2Fvue-styletron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LostCrew","download_url":"https://codeload.github.com/LostCrew/vue-styletron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377920,"owners_count":20605374,"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":["css-in-js","javascript","plugin","styletron","styletronjs","vue","vuejs"],"created_at":"2024-10-29T09:57:05.446Z","updated_at":"2025-03-25T00:31:40.947Z","avatar_url":"https://github.com/LostCrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-styletron\n\n[![Travis](https://img.shields.io/travis/LostCrew/vue-styletron.svg)](Build)\n[![David](https://img.shields.io/david/LostCrew/vue-styletron.svg)](dependencies)\n[![David](https://img.shields.io/david/dev/LostCrew/vue-styletron.svg)](DevDependencies)\n[![npm](https://img.shields.io/npm/l/vue-styletron.svg)](License)\n\n\u003e [Styletron](https://github.com/rtsao/styletron) for [Vue.js](https://github.com/vuejs/vue)\n\n## Install\n\n#### Add dependency\n\n`npm install vue-styletron --save` or `yarn add vue-styletron`\n\n#### Initialize plugin\n\n```js\nimport VueStyletron from 'vue-styletron'\n\nVue.use(VueStyletron)\n```\n\n## Usage\n\n#### Define `style` in data, use `v-style` in template\n\n```js\nnew Vue({\n  el: '#el',\n  data: {\n    style: {\n      el: {\n        color: 'white'\n      }\n    }\n  }\n  template: '\u003cdiv v-style=\"el\"\u003eWhite text\u003c/div\u003e'\n})\n\n// Styletron generated style:\n// .a {\n//   color: white\n// }\n\n// Vue rendered template:\n// \u003cdiv class=\"a\"\u003eWhite text\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostcrew%2Fvue-styletron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostcrew%2Fvue-styletron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostcrew%2Fvue-styletron/lists"}