Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreipol/scss-utils
A collection of scss utility functions and mixins
https://github.com/dreipol/scss-utils
Last synced: 7 days ago
JSON representation
A collection of scss utility functions and mixins
- Host: GitHub
- URL: https://github.com/dreipol/scss-utils
- Owner: dreipol
- License: mit
- Created: 2017-08-09T08:41:38.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T01:36:10.000Z (almost 2 years ago)
- Last Synced: 2024-03-26T17:39:13.630Z (8 months ago)
- Language: SCSS
- Homepage: https://www.dreipol.dev/scss-utils/
- Size: 1.26 MB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][travis-image]][travis-url]
[![NPM version][npm-version-image]][npm-url]
[![NPM downloads][npm-downloads-image]][npm-url]
[![MIT License][license-image]][license-url]# scss-utils
dreipol scss util @functions and @mixins
# Documentation
https://www.dreipol.dev/scss-utils/
# Usage
## Installation
```bash
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:
```scss
@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:
```scss
// 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;
}
```[travis-image]:https://img.shields.io/travis/dreipol/scss-utils.svg?style=flat-square
[travis-url]:https://travis-ci.org/dreipol/scss-utils[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square
[license-url]:LICENSE[npm-version-image]:http://img.shields.io/npm/v/@dreipol/scss-utils.svg?style=flat-square
[npm-downloads-image]:http://img.shields.io/npm/dm/@dreipol/scss-utils.svg?style=flat-square
[npm-url]:https://npmjs.org/package/@dreipol/scss-utils