@sass-collective/strip-unit
v3.1.2
Published
Strip unit on CSS value.
Downloads
2,772
Readme
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