Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

valantic/scss-utils

Open more actions menu

Repository files navigation

valantic SCSS Utils

A reusable library of SCSS utilities, mixins, and functions designed for scalable and maintainable styling across projects. This package includes features like container queries, typography utilities, spacing helpers, and more.

This will add no extra output to your css files, include it to your project and use what you need.

This package is also part of your vue-template a boilerplate (starting point) for a vue3 project.

Changelog

See all per version here: CHANGELOG.md

Requirements

Your project needs at least node 22 and sass 1.98. We suggest stylelint to be installed.

"devDependencies": {
  "sass": "~1.98.0",
  "stylelint": "~17.4.0",
  "stylelint-config-valantic": "~10.1.0"
}

Installation

Add the package to your package.json:

"dependencies": {
  "@valantic/scss-utils": "github:valantic/scss-utils#v1.1.0",
}

Usage

This library uses the Sass module system. You can import variables, functions, and mixins separately:

@use '@valantic/scss-utils/variables';
@use '@valantic/scss-utils/functions';
@use '@valantic/scss-utils/mixins';

.card {
  font-size: functions.calc-em(16px);
  color: variables.$va-color-primary;
  
  @include mixins.line-clamp(2);
  
  @include mixins.container(sm, lg) {
    background-color: variables.$va-color-secondary;
  }
}

// Optional: emit base element styles
@use '@valantic/scss-utils/setup';

License

This project is licensed under the MIT License.

Contributing

We welcome contributions! If you’d like to make improvements, submit a pull request or open an issue.

About

A repository for useful styling helpers

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.