2.0.0 • Published 9 years ago
sassify-object v2.0.0
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/\''