@dreipol/scss-utils

Dreipol scss util @functions and @mixins

Stats

StarsIssuesVersionUpdatedCreatedSize
@dreipol/scss-utils
074.0.48 months ago4 years agoMinified + gzip package size for @dreipol/scss-utils in KB

Readme

Build Status NPM version NPM downloads MIT License

scss-utils

dreipol scss util @functions and @mixins

Documentation

https://www.dreipol.dev/scss-utils/

Usage

Installation

npm i @dreipol/scss-utils -S

Import

These utils are built as sass modules. You can import them in your sass files simply using the @use rule for example:

@use 'node_modules/@dreipol/scss-utils/mixins/has-focus' as *;

a {
    @include has-focus {
        color: red;
    }
}

Notice that you can import all the mixins or functions namespacing them for example:

// all utils
@use 'node_modules/@dreipol/scss-utils' as utils;
// or also only mixins
@use 'node_modules/@dreipol/scss-utils/mixins' as mixins;

a {
    @include utils.has-focus {
        color: red;
    }
}

.hidden {
    @include mixins.hide-visually;
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.