sassify-object

2.0.0 • Public • Published

sass-variables

An utility for declaring variables in SASS files.

Example

import sassify from 'sassifyObject';
 
const output = sassify({
  color: 'red',
  url: '\'https://example.com/\'',
  number: 5
});

Output:

$color: red;
$url: 'https://example.com/';
$number: 5;

Notes

In CSS, some variables are wrapped in quotes, while others are not. To allow for this, variables are not automatically surrounded in quotes.

To add quotes, add some escaped single quotes around your variable, like so. '\'https://example.com/\''

/sassify-object/

    Package Sidebar

    Install

    npm i sassify-object

    Weekly Downloads

    0

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • freeqaz