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

frontline-css-reset

v7.0.0

Published

Threespot’s CSS reset

Downloads

558

Readme

Frontline CSS Reset

npm version gzip file size

Background

All browsers include some basic default styles, like heading sizes, list item bullets, table borders, form field styles, etc. These are known as the user agent styles. If you’d like to see what they look like here’s a collection from the past and present.

When developers began using CSS in the late 1990s and early 2000s they found themselves having to cancel out the user agent styles more often than not, particularly default margins. In an effort to reduce the amount of CSS they had to write on every project, some developers created their own reusable global styles they would include on every project, before their own custom styles. These became known as CSS resets. If you’re interested in the history of CSS reset, check out these resources:

  • https://en.wikipedia.org/wiki/Reset_style_sheet
  • https://www.webfx.com/blog/web-design/the-hishistorytory-of-css-resets/
  • https://css-tricks.com/reboot-resets-reasoning/
  • https://css-tricks.com/css-remedy/

CSS resets typically do a combination of the following:

  • Remove unwanted default browser styles
    • e.g. remove default margins
  • Fix browser bugs and inconsistencies
    • e.g. remove rounded corners on buttons in iOS
  • Apply custom global styles
    • e.g. set box-sizing: border-box; on all elements

Our CSS reset focuses on removing unwanted default styles. There aren’t many browser inconsistencies to worry about these days, and we prefer to let developers add their own global styles rather than include any opinionated styles in the reset (i.e. unlike normalize.css which aims to improve upon the user agent styles rather than reset them).

Usage

Download frontline-css-reset.min.css and include it in your project before any other custom styles.

It can also be downloaded via npm: $ npm install frontline-css-reset

Browser Support

This reset uses :where() as much as possible to reduce specificity to zero, making it easier for devs to override any of the styles later. It’s fully supported in all browser that support :where() (see https://caniuse.com/mdn-css_selectors_where).

If your project requires deeper browser support try using version 6.0.1, which doesn’t use :where().

License

Frontline CSS Reset is free software and may be redistributed under the terms of the MIT license.

Thanks

We’re very thankful to the many developers and open-source projects that informed our work. Special thanks to Eric Meyer, Paul Irish, Nicolas Gallagher, Jonathan Neal, Andy Bell, Chris Coyier, and Josh Comeau.

Our reset was heavily influenced by these other resets:

About Threespot

Threespot is a design and development agency from Washington, DC. We work for organizations that we believe are making a positive change in the world. Find out more about us, our projects or hire us!

Threespot