3.1.2 • Published 2 years ago
@sass-collective/strip-unit v3.1.2
Introduction
Strip unit on CSS value.
Installing
npm install @sass-collective/strip-unit
Usage
@use "@sass-collective/strip-unit";
API
Sass functions
Function | Description |
---|---|
strip($value) | Return value without the unit. |
Strip unit value with strip-unit.strip()
The following Sass will produce:
@use "@sass-collective/strip-unit";
$value: strip-unit.strip(100px);
// 100