PHPackages                             officialxviid/sasses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. officialxviid/sasses

ActiveLibrary[Queues &amp; Workers](/categories/queues)

officialxviid/sasses
====================

Sass modules (Sasses) provide more advanced variables, mixins and functions for Sass.

1.0.0(10mo ago)00BSD-3-ClauseSass

Since Jun 23Pushed 10mo agoCompare

[ Source](https://github.com/officialxviid/sasses)[ Packagist](https://packagist.org/packages/officialxviid/sasses)[ Docs](https://github.com/officialxviid/sasses/wiki)[ RSS](/packages/officialxviid-sasses/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 [![](https://raw.githubusercontent.com/officialxviid/sasses/3c837cc01e97df4504b0ebd7796c548c1646245d/assets/images/logo/Sasses/SVG/SassesText%20-%20Solid.svg)](https://raw.githubusercontent.com/officialxviid/sasses/3c837cc01e97df4504b0ebd7796c548c1646245d/assets/images/logo/Sasses/SVG/SassesText%20-%20Solid.svg)

 **Sass modules (Sasses) provide more advanced variables, mixins and functions for Sass.**

 [![NPM Version](https://camo.githubusercontent.com/7321cd096c1d051e96bde31859730fbff8a6297f80c045e86464a6d3b7bd70ae/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f736173736573)](https://www.npmjs.com/package/sasses) [![Composer Version](https://camo.githubusercontent.com/5a0c4d3fb973cee00d641dd8cdd0dd3ca64ffe2ee88771c5982039d3f79d828e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6666696369616c78766969642f736173736573)](https://packagist.org/packages/officialxviid/sasses) [![License](https://camo.githubusercontent.com/5c8658a50af7128cfbe43b35bc6fc21acf334d06c378911a016275cb9d1d1da1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f6666696369616c78766969642f736173736573)](https://github.com/officialxviid/sasses/blob/main/LICENSE.txt)

Getting Started
===============

[](#getting-started)

Require
-------

[](#require)

- Dart Sass: `>= 1.23.0`

Installation
------------

[](#installation)

###  [![](https://camo.githubusercontent.com/8993bfa9c04408417fb6050848db0532874a63a8d7fcb27cba163fb0676c53b5/68747470733a2f2f7777772e7376677265706f2e636f6d2f73686f772f3335353134362f6e706d2e737667)](https://camo.githubusercontent.com/8993bfa9c04408417fb6050848db0532874a63a8d7fcb27cba163fb0676c53b5/68747470733a2f2f7777772e7376677265706f2e636f6d2f73686f772f3335353134362f6e706d2e737667) Node Package Manager (NPM)

[](#--------node-package-manager-npm)

```
npm i sasses
```

###  [![](https://camo.githubusercontent.com/0bab15c43eadc84f42c8371de3fbf94d1382be1cb4f5cf8aa117946ace6143cc/68747470733a2f2f7061636b61676973742e6f72672f696d672f6c6f676f2d736d616c6c2e706e673f763d31373438343435393731)](https://camo.githubusercontent.com/0bab15c43eadc84f42c8371de3fbf94d1382be1cb4f5cf8aa117946ace6143cc/68747470733a2f2f7061636b61676973742e6f72672f696d672f6c6f676f2d736d616c6c2e706e673f763d31373438343435393731) Packagist

[](#--------packagist)

```
composer require officialxviid/sasses
```

How to Use
----------

[](#how-to-use)

For example, we use the `parameter-type()` function in the **[throw package](https://github.com/officialxviid/sasses/wiki/Throw-Package)**.

```
throw.parameter-type($context, $name, $value, $catch: false, $types...);
// or
parameter-type-exception($context, $name, $value, $catch: false, $types...);
```

If you use a specific package, then:

```
@use "sass:meta";
@use "sass:color";
@use "@sasses/throw";

@function tint-color($color, $amount) {
  @if meta.type-of($color) != "color" {
    @return throw.parameter-type("tint-color", "color", $color, false, "color");
  }

  @if meta.type-of($amount) != "number" {
    @return throw.parameter-type(
      "tint-color",
      "amount",
      $amount,
      false,
      "number"
    );
  }

  @return color.mix(#fff, $color, $amount);
}

// ❌ Try the result with Invalid input
@debug tint-color(true, "one");

// ✅ Try the result with Valid input
@debug tint-color(#c69, 90%);
```

Otherwise,

```
@use "sass:meta";
@use "sass:color";

@function tint-color($color, $amount) {
  @if meta.type-of($color) != "color" {
    @return parameter-type-exception(
      "tint-color",
      "color",
      $color,
      false,
      "color"
    );
  }

  @if meta.type-of($amount) != "number" {
    @return parameter-type-exception(
      "tint-color",
      "amount",
      $amount,
      false,
      "number"
    );
  }

  @return color.mix(#fff, $color, $amount);
}

// ❌ Try the result with Invalid input
@debug tint-color(true, "one");

// ✅ Try the result with Valid input
@debug tint-color(#c69, 90%);
```

Packages
========

[](#packages)

[Throw Package](https://github.com/officialxviid/sasses/wiki/Throw-Package)
---------------------------------------------------------------------------

[](#throw-package)

Provides Sass mixins and functions to standardize exception messages.

### Mixins

[](#mixins)

 [Exception](https://github.com/officialxviid/sasses/wiki/Throw-Package#exception-mixin) Use in place of `@error` statements inside mixins or other control structures with CSS output (not functions). [Variable](https://github.com/officialxviid/sasses/wiki/Throw-Package#variable-mixin) Use in place of variable `@error` statements inside mixins or other control structures with CSS output (not functions). [Variable Type](https://github.com/officialxviid/sasses/wiki/Throw-Package#variable-type-mixin) Use in place of variable type `@error` statements inside mixins or other control structures with CSS output (not functions). [Parameter](https://github.com/officialxviid/sasses/wiki/Throw-Package#parameter-mixin) Use in place of parameter `@error` statements inside mixins or other control structures with CSS output (not functions). [Parameter Type](https://github.com/officialxviid/sasses/wiki/Throw-Package#parameter-type-mixin) Use in place of parameter type `@error` statements inside mixins or other control structures with CSS output (not functions).### Function

[](#function)

 [Exception](https://github.com/officialxviid/sasses/wiki/Throw-Package#exception-function) Use in place of `@error` statements inside functions. [Variable](https://github.com/officialxviid/sasses/wiki/Throw-Package#variable-function) Returns an error message stating an issue with one or more variables. [Variable Type](https://github.com/officialxviid/sasses/wiki/Throw-Package#variable-type-function) Returns an error message stating a variable received the wrong type. [Parameter](https://github.com/officialxviid/sasses/wiki/Throw-Package#parameter-function) Returns an error message stating an issue with one or more parameters. [Parameter Type](https://github.com/officialxviid/sasses/wiki/Throw-Package#parameter-type-function) Returns an error message stating a parameter received the wrong type.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance53

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

323d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23bf721c6f40f7399c3ea048b7cbe8e099128e9fc9e4e76f50438beaa06beaad?d=identicon)[officialxviid](/maintainers/officialxviid)

---

Top Contributors

[![officialxviid](https://avatars.githubusercontent.com/u/100110814?v=4)](https://github.com/officialxviid "officialxviid (44 commits)")

---

Tags

dart-sassexceptionmessagemodulepackagesassscssstylesheetsthrowmessagepackageexceptionsassscssmodulestylesheetsthrowdart-sass

### Embed Badge

![Health badge](/badges/officialxviid-sasses/health.svg)

```
[![Health](https://phpackages.com/badges/officialxviid-sasses/health.svg)](https://phpackages.com/packages/officialxviid-sasses)
```

###  Alternatives

[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
