Giter Site home page Giter Site logo

tinakovalova / scss-reset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frontend-layers/scss-reset

0.0 0.0 0.0 550 KB

SCSS reset compilation: modern + mayers + normalizer

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

License: MIT License

JavaScript 4.76% CSS 11.71% HTML 19.54% SCSS 63.99%

scss-reset's Introduction

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 and easily improve it.

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';

depends of your workspace configuration.

Typography Usage

  • _variables.scss
  • _typography.scss

_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.

Usage with Shopify Dawn theme

  • Please, copy reset-shopify-down.css from '/res' npm folder to '/assets' theme folder
  • Please include reset-shopify-down.css into 'layout/theme.liquid/' after base.css
{{ 'reset-shopify-down.css' | asset_url | stylesheet_tag }}

CDN

https://cdn.jsdelivr.net/gh/andreymatin/scss-reset/build/reset.css

Mixins

Mixins Include Description
disableAnimation @include disableAnimation; Disable CSS animation
acDisableAnimation @include acDisableAnimation; Disable CSS animation depends of OS configuration
acModeBW @include acModeBW; Grayscale Mode
acModeContrast @include acModeContrast; Contrast Mode with Inverted colors
meterReset @include meterReset; Styles reset for <meter>
progressReset @include progressReset; Styles reset for <progress>

Technical Files

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

GitHub

Contributing

For issues, bugs or improvements please open an issue

License

MIT

scss-reset's People

Contributors

andreymatin avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.