A collection of Sass classes, functions, mixins, and other utilities
MIT License
A collection of Sass classes, functions, mixins, and other utilities.
NPM
npm install sass-utilities
// All utilities
@use "sass-utilities";
// All functions
@use "sass-utilities/functions";
// All mixins
@use "sass-utilities/mixins";
// Single function
@use "sass-utilities/functions/_file-name";
// Single mixin
@use "sass-utilities/mixins/_file-name";
CDN
This library is available on jsdelivr (below), unpkg, and other CDN services that auto-publish npm packages.
💡 Note the
@
version number lock in the URLs below. This prevents breaking changes in future releases from affecting your project and is therefore the safest method of loading dependencies from a CDN. When a new major version is released, you will need to manually update your CDN URLs by changing the version number after the @ symbol.
// All utilities
@use "https://cdn.jsdelivr.net/npm/sass-utilities@1";
// All functions
@use "https://cdn.jsdelivr.net/npm/sass-utilities@1/functions";
// All mixins
@use "https://cdn.jsdelivr.net/npm/sass-utilities@1/mixins";
// Single function
@use "https://cdn.jsdelivr.net/npm/sass-utilities@1/functions/_file-name";
// Single mixin
@use "https://cdn.jsdelivr.net/npm/sass-utilities@1/mixins/_file-name";
Git
git clone https://github.com/jhildenbiddle/sass-utilities.git
// All utilities (installed via npm)
@use "sass-utilities" as su;
div {
@include su.triangle(right, 16px);
}
A sponsorship is more than just a way to show appreciation for the open-source authors and projects we rely on; it can be the spark that ignites the next big idea, the inspiration to create something new, and the motivation to share so that others may benefit.
If you benefit from this project, please consider lending your support and encouraging future efforts by becoming a sponsor.
Thank you! 🙏🏻
This project is licensed under the MIT License. See the LICENSE for details.
Copyright (c) John Hildenbiddle (@jhildenbiddle)