Socket
Book a DemoInstallSign in
Socket

@dreipol/scss-utils

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreipol/scss-utils

Dreipol scss util @functions and @mixins

Source
npmnpm
Version
4.0.1
Version published
Weekly downloads
50
19.05%
Maintainers
2
Weekly downloads
 
Created
Source

scss-utils

dreipol scss util @functions and @mixins

Build Status NPM version NPM downloads MIT License

Installation

npm i @dreipol/scss-utils -S

Documentation

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

API

The of all the exported modules is online available https://www.dreipol.dev/scss-utils/

Keywords

sass

FAQs

Package last updated on 14 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts