npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cmui-zero

v0.1.2

Published

HTML5 CSS reset in Stylus.

Downloads

11

Readme

Zero

HTML5 CSS reset in Stylus.

Zero 只做一件事——CSS Reset。

光有 Normalize.css 是不够的,我们还需要 CSS Reset。因为,放眼望去,我们做的绝大多数页面都已经不再是 “文档”,而是 “界面”。以呈现文档为导向的浏览器默认样式和 Normalize.css 对我们来说就显得不那合适了,还是需要把样式清干净,从零开始。

当然,我们还是需要 Normalize.css 的,它将负责消灭各大浏览器默认样式的缺陷和差异。

安装

通过 npm 3 安装:

$ npm install cmui-zero

使用

有两种方式可以使用 Zero:

  • 直接使用 Zero 的 dist 文件(需要先加载 Normalize.css):

    <!DOCTYPE html>
    <html>
    <head>
    	...
    	<link rel="stylesheet" href="node_modules/normalize.css/normalize.css">
    	<link rel="stylesheet" href="node_modules/cmui-zero/dist/zero.css">
    </head>
    <body>
    	...
    </body>
    </html>
  • 使用 Zero 的 Stylus 源码。在你的样式入口文件中导入 Normalize.css 和 Zero:

    @import './node_modules/normalize.css/normalize.css'
    @import './node_modules/cmui-zero/src/zero.styl'

    (注意:在这种方式下,Stylus 的编译选项需要打开 include-css 这个开关,以确保 Normalize.css 的代码被正确引入。)

谁在用?

移动 UI 框架 CMUI 采用 Zero 作为全局的样式基础,因此所有 CMUI 用户都在使用它:


License

MIT License