# custom-properties-sass

> Transpile Custom Properties to Sass variables

Latest version **0.1.0** (published 2016-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install custom-properties-sass
pnpm add custom-properties-sass
yarn add custom-properties-sass
bun add custom-properties-sass
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-08-29 |
| First published | 2016-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Masaaki Morishita |
| Maintainers | morishitter |
| Keywords | css, transform, sass, scss |

## Links

- npm: https://www.npmjs.com/package/custom-properties-sass
- Repository: https://github.com/morishitter/custom-properties-sass/git
- npm.io page: https://npm.io/package/custom-properties-sass

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^5.1.2
- [postcss-scss](https://npm.io/package/postcss-scss.md) ^0.2.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-08-29

## README

# custom-properties-sass [![Build Status](https://travis-ci.org/morishitter/custom-properties-sass.svg)](https://travis-ci.org/morishitter/custom-properties-sass)

Transpile Custom Properties to Sass variables

## Installation

```shell
$ npm install custom-properties-sass
```

## Example

Input:

```css
:root {
  --red: #ff4136;
  --green: #2ecc40;
  --blue: #0074d9;
}
```

Output:

```scss
$red: #ff4136;
$green: #2ecc40;
$blue: #0074d9;

```

## Usage

```js
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var customPropertieSass = require("custom-propertie-sass")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css
var output = postcss()
  .use(customPropertieSass())
  .process(css)
  .css
```

## License

The MIT License (MIT)

Copyright (c) 2016 Masaaki Morishita

---
_Source: https://npm.io/package/custom-properties-sass · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
