/scss-reset

SCSS reset compilation: modern + mayers + normalizer

Primary LanguageSCSSMIT LicenseMIT

SCSS Reset

License: MIT npm npm

Reset compilation = modern reset + meyer's reset + normalizer.

Demo: https://andreymatin.github.io/scss-reset/test/index.html

Features

Why

For instantly fix some persistent CSS issues and add missing parts for popular CSS resets. It is also compatible with other HTML/CSS frameworks like Twitter Bootstrap, Tailwind CSS, etc. You can extend styles reset by mixin collection.

I recommend to use copies of _typography.scss and _variables.scss for design systems and themes extending.

Install

NPM

yarn add scss-reset;

or

npm i scss-reset --save;

Usage

Please include into top of the main.scss:

@import '../node_modules/scss-reset/src/scss/_reset.scss';

or:

@import '../node_modules/scss-reset/_reset.scss';

or shorter:

@import 'scss-reset/_reset.scss';

Typography Usage

_variables.scss and _typography.scss are optional.

Please copy them from

'node_modules/scss-reset/src/scss/_variables.scss';
'node_modules/scss-reset/src/scss/_typography.scss';

for additional modifications.

Ready to use HTML template with all necessary includes is there:

html-initial-bundle

Typography normalization

  • _variables.scss
  • _typography.scss

Mixins

  • disableAnimation
  • acDisableAnimation
  • acModeBW
  • acModeContrast
  • meterReset
  • progressReset

disableAnimation

Disable animation

@include disableAnimation;

acDisableAnimation

Disable animation by Browser Configuration

@include acDisableAnimation;

acModeBW

Grayscale Mode

@include acModeBW;

acModeContrast

Contrast Mode with Inverted colors

@include acModeContrast;

meterReset

Styles reset for <meter>

@include meterReset;

progressReset

Styles reset for <progress>

@include progressReset;

Technical Files

  • Compressed CSS version: /dist/main.css
  • Test Page: /test/index.html

GitHub

Contributing

For issues, bugs or imporvements please open an issue

License

MIT