A custom-made SCSS utility library inspired by Tailwind CSS. This library provides a collection of utility classes and mixins to streamline the development of responsive and maintainable styles for your projects.
gap
, object-fit
, and more.git clone https://github.com/fedehiga/scss-utilities.git
npm install
@import "scss/utils.scss";
Or just link the compiled CSS in your HTML:
<link rel="stylesheet" href="output/utils.css">
Example
<div class="container mx-auto p-4">
<h1 class="text-center text-xl">Welcome to SCSS Utilities</h1>
<p class="text-left mt-2">This is an example of using utility classes.</p>
</div>
Development Mode: Automatically compiles SCSS files and watches for changes.
npm run dev
Build for Production: Compiles and minifies SCSS files for production.
npm run build
scss-utils/
├── scss/
│ ├── variables/ # SCSS variables for customization
│ ├── utils.scss # Main entry point for utilities
│ ├── properties.scss # Utility class definitions
│ ├── engine.scss # Core mixins and logic
│ └── config.scss # Configuration settings
├── output/
│ └── utils.css # Compiled CSS output
├── gulpfile.babel.js # Gulp tasks for building and watching
├── package.json # Project metadata and dependencies
└── README.md # Documentation
You can customize the library by modifying the SCSS variables in the scss/variables/ directory. For example:
$responsive
map in variables/_sizes.scss
.$spacerCount
in config.scss
or modify the $spacer
map in variables/_spacer.scss
.