{"id":21148769,"url":"https://github.com/2ue/rest-css","last_synced_at":"2026-05-20T15:07:15.056Z","repository":{"id":57354900,"uuid":"81325211","full_name":"2ue/rest-css","owner":"2ue","description":"A rest css style list that you can use it in javascript and css。","archived":false,"fork":false,"pushed_at":"2018-01-08T07:46:57.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T21:48:35.404Z","etag":null,"topics":["css","normalize","rest"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rest-css","language":"CSS","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/2ue.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-02-08T11:56:55.000Z","updated_at":"2017-11-27T06:17:27.000Z","dependencies_parsed_at":"2022-09-26T16:31:35.333Z","dependency_job_id":null,"html_url":"https://github.com/2ue/rest-css","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/2ue%2Frest-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Frest-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Frest-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2ue%2Frest-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2ue","download_url":"https://codeload.github.com/2ue/rest-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589333,"owners_count":20315471,"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","normalize","rest"],"created_at":"2024-11-20T09:28:55.827Z","updated_at":"2026-05-20T15:07:10.000Z","avatar_url":"https://github.com/2ue.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/rest-css\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/rest-css.svg\" alt=\"Version\"\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/rest-css\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/rest-css.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/rest-css\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/rest-css.svg\" alt=\"License\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003e a css file, you can import it anywhere that use the javascript.\r\n\r\n## Start\r\n``` shell\r\nnpm i --save rest-css\r\n```\r\n\r\n## Use\r\n\u003e you can use it in javascript(maybe vue, react, angluar, etc) directly, as long as you can use javascript. but you sholud keep it importing before all other css files;\r\n- in javascript file\r\n``` javascript\r\nimport 'rest-css'\r\n```\r\n- in vue, as long as you can use javacript, you also can inport it.\r\n``` vue\r\n\u003ctemplate\u003e\r\n    \u003cdiv id=\"app\"\u003e\u003c/div\u003e\r\n\u003c/template\u003e\r\n\u003cscript\u003e\r\n    //import css，package autoly\r\n    import 'rest-css'\r\n    export default { }\r\n\u003c/script\u003e\r\n\u003cstyle\u003e\r\n\u003c/style\u003e\r\n```\r\n- of course, if you don't like import css in js, also in css to import it;\r\n``` css\r\n@import url('../node_modules/rest-css/src/rest.css')\r\n```\r\n## Reference\r\n- [-webkit-text-size-adjust](http://blog.csdn.net/mxy2013/article/details/49813331)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Frest-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2ue%2Frest-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2ue%2Frest-css/lists"}