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

v2.2.2

Published

A modern CSS reset for modern web applications!

Downloads

397

Readme

reset-zone

reset-zone is a lightweight CSS reset designed to provide a consistent starting point for web projects. This CSS reset resets browser styling and removes default margins, padding, and other styles, giving you full control over the appearance of your elements across all major browsers.

Table of Contents

Installation

You can easily add reset-zone to your project via npm or directly include it in your HTML.

via npm:

npm install reset-zone

Or using yarn:

yarn add reset-zone

Usage

After installation, you can simply import the CSS file at the top of your main stylesheet if using npm, or directly in your HTML if you downloaded it.

If you're using a bundler like Webpack, import it at the top of your main CSS or SCSS file (or any CSS preprocessor):

For using SCSS regular version:

@use "/go/to/node_modules/reset-zone/src/reset-zone.regular.scss" as ResetZoneLibraryWithCSSRegular;

For using SCSS layer version:

@use "/go/to/node_modules/reset-zone/src/reset-zone.layer.scss" as ResetZoneLibraryWithCSSLayer;

⭕ But the previous ways is not recommended.

✅ The recommended ways to use the version of CSS because of vendor prefixes in CSS files:

For using regular version:

@import '/go/to/node_modules/reset-zone/dist/reset-zone.regular.css';

And minified version of regular version:

@import '/go/to/node_modules/reset-zone/dist/reset-zone.regular.min.css';

For using layer version:

@import '/go/to/node_modules/reset-zone/dist/reset-zone.layer.css';

And minified version of layer version:

@import '/go/to/node_modules/reset-zone/dist/reset-zone.layer.min.css';

Or, if using JavaScript to manage styles:

import '/go/to/node_modules/reset-zone/dist/reset-zone.{layer/regular}.{min.css|.css}';

Or, you can use it into link tag of your HTML:

For using regular version:

<link rel="stylesheet" href="https://raw.githubusercontent.com/Black-Axis/reset-zone/master/dist/reset-zone.regular.css">

For using minified regular version:

<link rel="stylesheet" href="https://raw.githubusercontent.com/Black-Axis/reset-zone/master/dist/reset-zone.regular.min.css">

For using layer version:

<link rel="stylesheet" href="https://raw.githubusercontent.com/Black-Axis/reset-zone/master/dist/reset-zone.layer.css">

For using minified layer version:

<link rel="stylesheet" href="https://raw.githubusercontent.com/Black-Axis/reset-zone/master/dist/reset-zone.layer.min.css">

This will apply the reset styles globally, ensuring a consistent baseline across browsers.

Features

  • Removes Default Margins and Padding: Strips away all default browser styles, including margins and paddings, to create a level playing field.
  • Consistent Typography: Sets up base font styles, including font size and line height.
  • Improved Accessibility: Sets a clear focus outline and maintains usability for keyboard navigation.
  • Enhanced Layout Control: Reduces browser-specific quirks that interfere with layout styling, such as box-sizing.

Contributing

Contributions, issues, and feature requests are welcome! Please feel free to open an issue or submit a pull request in the GitHub repository or read the CONTRIBUTING.md

License

This project is licensed under the MIT License. See the LICENSE.md file for more details. So, enjoy a consistent and clean starting point with reset-zone!