/css-reset

The New Simple and Lighter CSS Reset revised

Primary LanguageCSSMIT LicenseMIT

CSS Reset

This opinionated css reset is forked from Elad Shechters original version. This iteration includes a number of resets I felt were missing.

How to get started:

npm install @marknotton/css-reset
yarn add @marknotton/css-reset

Or download the latest version.

How to use:

The Sass way:

Import directly in your scss file:

@use "@marknotton/css-reset"

Or

@use "node_module/@marknotton/css-reset/css/reset.css"

Or if you want to use Cascade Layers within your SCSS:

@use 'sass:meta';

@layer reset, defaults;

@layer reset {
  @include meta.load-css("@marknotton/css-reset");
}

@layer defaults { ... }

The Javascript way:

Include the following snippet in one of the JavaScript/TypeScript entry files:

import "@marknotton/css-reset";

Or

import "node_module/@marknotton/css-reset/css/reset.css";