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

@unocss-applet/reset

v0.8.5

Published

collection of reset CSS stylesheets.

Downloads

234

Readme

@unocss-applet/reset

Collection of reset CSS stylesheets.

Install

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

Usage

You can add one of the following reset stylesheets to your entry file.

For uni-app, it should be src/main.[j|t]s.

For taro, it should be src/app.[j|t]sx?.

button-after.css

Preflight for button::after. Will remove all button::after styles.

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

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

When to use it

Import this file before other reset files if you want to customize button border more flexibly.

When not to use it

It may bring conflicts with UI frameworks. Remove the import if you find button styles wrong.

normalize.css

NOT RECOMMEND since :where is used which is not likely supported in many platforms.

Source: https://github.com/csstools/normalize.css

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

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

modern-normalize

Source: https://github.com/sindresorhus/modern-normalize

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

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

sanitize.css

NOT RECOMMEND since :where is used which is not likely supported in many platforms.

Source: https://github.com/csstools/sanitize.css

// 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

Source: https://meyerweb.com/eric/tools/css/reset/index.html

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

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

tailwind.css

Based on Tailwind's preflight, in static forms.

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

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

Changes

Static

This is provided as a static version of Tailwind's preflight, so it doesn't inherit any styles from the theme.

Border color

In Tailwind's preflight, the border color default border color is read from the theme borderColor.DEFAULT. To customize it in Uno's reset, we use CSS variable instead:

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

:root {
  --un-default-border-color: #e5e7eb;
}
Cross-platform compatibility

We add conditional compilation in style files to bring cross-platform compatibility.

tailwind-compat.css

Based on tailwind.css, with some styles clean up to avoid conflicts with UI frameworks.

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

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

Changes

Changes inherit from tailwind.css
Remove background color override for buttons

Linked 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 */
}

License

MIT License © 2022-PRESENT ModyQyW