0.0.3 • Published 6 years ago

stylus-variable-loader v0.0.3

Weekly downloads
69
License
MIT
Repository
github
Last release
6 years ago

stylus-variable-loader

This is an experimental thing, be careful.

Usage

//vars.styl
$size = 12px;
$padding = 10px 12px;
$color = #FFF;
$expr-color = alpha($color, 0.5);
$button = {
	$color: white,
	$background: black,
	$font-size: 1.2em
}
//vars.js
import variables from '!!stylus-variable-loader!./path-to/vars.styl';

console.log(variables);

{
    '$size': '12px',
    '$padding': '10px 12px',
    '$color': '#FFF',
    '$expr-color': 'rgba(255, 255, 255, 0.5)',
    '$button': {
        '$color': 'white',
        '$background': 'black',
        '$font-size': '1.2em'
    }
}
0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago