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

reset-css-complete

v2.0.0

Published

A complete CSS reset file for all modern browsers

Downloads

67

Readme

reset-css-complete

Look ma no styles!

How to use it, or how I learned to stop worrying and install css from npm

npm i reset-css-complete

If using webpack or some other css loader

You can import the css file into your JS directly: import reset from 'reset-css-complete'; or you can import it through webpack into your css files with: @import '~reset-css-complete/reset.css';

If not using webpack

You can either reference the css file at ./node-modules/reset-css-complete/reset.css, write a script to move it into a new location, or just copy-paste it from this repository

Note that reset-css-complete doesn't define any typography rules (all elements are set to inherit) or other global styles so after including reset-css-complete you'll likely also want to define your own font: rules and globals - (I define mine in a second stylesheet with :root {})

Why build another reset.css?

Most reset.css files don't actually completely reset all elements. The most popular reset.css file (Eric Meyer's - which this reset is based on), doesn't completely reset many elements - including buttons, inputs, links, and more.

So this reset.css takes it up a notch and resets everything it can to plain text (some funky input elements like color, radio and file can't be completely restyled)

Why would you want to reset everything?

Resetting everything to a consistent baseline means that you can build your styles from the ground up and you never need to reset elements again. Not resetting elements globally means you often end up having to reset buttons or link elements multiple times in different places. A complete reset.css allows you to use html semantically without worrying whether an element will add any styles.

What about normalize.css?

normalize.css is another popular baseline css file. Unlike a reset css file, normalize only attempts to make elements consistent between browsers, but keeps them styled. If you want h1's to still be larger than h2's or inputs to still look like inputs then normalize might be a good choice.

Browser support

reset-css-complete has been tested on the latest versions of Chrome, Firefox, Safari, and IE Edge and 11. It probably works on older browsers too. If you've tested on an older browser or find an un-reset element, let me know - contributions are also welcome!

Test it yourself or take a look at the beautiful minimilism you'll get at the reset-css-complete test page.

Thanks

This project was heavily inspired by (and modified from) Eric Meyer's reset.css file https://meyerweb.com/eric/tools/css/reset/