{"id":25232966,"url":"https://github.com/cmui/zero","last_synced_at":"2025-12-12T04:17:48.201Z","repository":{"id":26441236,"uuid":"29892060","full_name":"CMUI/zero","owner":"CMUI","description":"HTML5 CSS reset in Stylus.","archived":false,"fork":false,"pushed_at":"2016-11-15T06:32:11.000Z","size":4,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T07:02:36.356Z","etag":null,"topics":["cmui","css","css-reset","html5","normalize","reset","stylus"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/CMUI.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":"2015-01-27T01:51:31.000Z","updated_at":"2018-03-13T05:34:07.000Z","dependencies_parsed_at":"2022-07-07T22:34:39.497Z","dependency_job_id":null,"html_url":"https://github.com/CMUI/zero","commit_stats":null,"previous_names":["cssmagic/zero"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMUI%2Fzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CMUI","download_url":"https://codeload.github.com/CMUI/zero/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238306527,"owners_count":19450145,"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":["cmui","css","css-reset","html5","normalize","reset","stylus"],"created_at":"2025-02-11T13:55:52.419Z","updated_at":"2025-10-26T09:31:03.653Z","avatar_url":"https://github.com/CMUI.png","language":"CSS","readme":"# Zero\n\n\u003e HTML5 CSS reset in Stylus.\n\nZero 只做一件事——CSS Reset。\n\n光有 Normalize.css 是不够的，我们还需要 CSS Reset。因为，放眼望去，我们做的绝大多数页面都已经不再是 “文档”，而是 “界面”。以呈现文档为导向的浏览器默认样式和 Normalize.css 对我们来说就显得不那合适了，还是需要把样式清干净，从零开始。\n\n当然，我们还是需要 Normalize.css 的，它将负责消灭各大浏览器默认样式的缺陷和差异。\n\n## 安装\n\n通过 npm 3 安装：\n\n```sh\n$ npm install cmui-zero\n```\n\n## 使用\n\n有两种方式可以使用 Zero：\n\n* 直接使用 Zero 的 dist 文件（需要先加载 Normalize.css）：\n\n\t```html\n\t\u003c!DOCTYPE html\u003e\n\t\u003chtml\u003e\n\t\u003chead\u003e\n\t\t...\n\t\t\u003clink rel=\"stylesheet\" href=\"node_modules/normalize.css/normalize.css\"\u003e\n\t\t\u003clink rel=\"stylesheet\" href=\"node_modules/cmui-zero/dist/zero.css\"\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t...\n\t\u003c/body\u003e\n\t\u003c/html\u003e\n\t```\n\n* 使用 Zero 的 Stylus 源码。在你的样式入口文件中导入 Normalize.css 和 Zero：\n\t\n\t```stylus\n\t@import './node_modules/normalize.css/normalize.css'\n\t@import './node_modules/cmui-zero/src/zero.styl'\n\t```\n\t\n\t（注意：在这种方式下，Stylus 的编译选项需要打开 `include-css` 这个开关，以确保 Normalize.css 的代码被正确引入。）\n\n## 谁在用？\n\n移动 UI 框架 [CMUI](https://github.com/CMUI/CMUI) 采用 \nZero 作为全局的样式基础，因此所有 CMUI 用户都在使用它：\n\n* [百姓网 - 手机版](http://m.baixing.com/)\n* [薇姿官方电子商城 - 手机版](http://m.vichy.com.cn/)\n* [优e网 - 手机版](http://m.uemall.com/)\n\n***\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmui%2Fzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmui%2Fzero/lists"}