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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@unocss-applet/reset

v0.13.8

Published

collection of reset CSS stylesheets.

Readme

@unocss-applet/reset

CSS reset 样式集合。

安装

npm i @unocss-applet/reset --save-dev # with npm
yarn add @unocss-applet/reset -D # with yarn
pnpm add @unocss-applet/reset -D # with pnpm

使用

可在入口文件引入下列任一 reset 样式。

uni-app 的入口是 src/main.[j|t]s

Taro 的入口是 src/app.[j|t]sx?

button-after.css

针对 button::after 的 preflight,会移除所有 button::after 样式。

// uni-app
import '@unocss-applet/reset/uni-app/button-after.css'

// taro
import '@unocss-applet/reset/taro/button-after.css'

何时使用

若想更灵活地自定义按钮边框,请在其他 reset 文件之前引入本文件。

何时不要使用

它可能与 UI 框架产生冲突。若发现按钮样式异常,请移除该引入。

normalize.css

不推荐使用,因为使用了 :where,多数平台可能不支持。

来源:https://github.com/csstools/normalize.csshttps://cdn.jsdelivr.net/npm/@unocss/[email protected]/normalize.css

// uni-app
import '@unocss-applet/reset/uni-app/normalize.css'

// taro
import '@unocss-applet/reset/taro/normalize.css'

sanitize.css

不推荐使用,因为使用了 :where,多数平台可能不支持。

来源:https://github.com/csstools/sanitize.csshttps://cdn.jsdelivr.net/npm/@unocss/[email protected]/sanitize

// uni-app
import '@unocss-applet/reset/uni-app/sanitize/sanitize.css'
import '@unocss-applet/reset/uni-app/sanitize/assets.css'

// taro
import '@unocss-applet/reset/taro/sanitize/sanitize.css'
import '@unocss-applet/reset/taro/sanitize/assets.css'

Eric Meyer

来源:https://meyerweb.com/eric/tools/css/reset/index.htmlhttps://cdn.jsdelivr.net/npm/@unocss/[email protected]/eric-meyer.css

// uni-app
import '@unocss-applet/reset/uni-app/eric-meyer.css'

// taro
import '@unocss-applet/reset/taro/eric-meyer.css'

tailwind.css

基于 Tailwind v3 preflight,采用静态形式

// uni-app
import '@unocss-applet/reset/uni-app/tailwind.css'

// taro
import '@unocss-applet/reset/taro/tailwind.css'

改动点

静态化

这是 Tailwind v3 preflight 的静态版本,不会从主题继承任何样式。

边框颜色

Tailwind v3 preflight 中,边框默认颜色读取自主题的 borderColor.DEFAULT。要在本 reset 中自定义,改用 CSS 变量:

/* uni-app */
@import '@unocss-applet/reset/uni-app/tailwind.css'
/* taro */
@import '@unocss-applet/reset/taro/tailwind.css'

:root {
  --un-default-border-color: #e5e7eb;
}
跨端兼容

我们在样式文件中加入了条件编译,以提供跨端兼容性。

tailwind-compat.css

基于 tailwind.css,清理了部分样式以避免与 UI 框架冲突。

// uni-app
import '@unocss-applet/reset/uni-app/tailwind-compat.css'

// taro
import '@unocss-applet/reset/taro/tailwind-compat.css'

改动点

继承自 tailwind.css 的改动
移除按钮的背景色覆盖

关联 issue:#2127

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* 1 */
  /*background-color: transparent; !* 2 *!*/
  background-image: none; /* 2 */
}

tailwind-v4.css

// uni-app
import '@unocss-applet/reset/uni-app/tailwind-v4.css'

// taro
import '@unocss-applet/reset/taro/tailwind-v4.css'

基于 Tailwind v4 preflight,采用静态形式

改动点

静态化

这是 Tailwind v4 preflight 的静态版本,不会从主题继承任何样式。

跨端兼容

我们在样式文件中加入了条件编译,以提供跨端兼容性。

License

MIT License © 2022-PRESENT ModyQyW