7.0.1 • Published 3 years ago
postcss-simple-vars v7.0.1
PostCSS Simple Variables
PostCSS plugin for Sass-like variables.
You can use variables inside values, selectors and at-rule parameters.
$dir: top;
$blue: #056ef0;
$column: 200px;
.menu_link {
background: $blue;
width: $column;
}
.menu {
width: calc(4 * $column);
margin-$(dir): 10px;
}
.menu_link {
background: #056ef0;
width: 200px;
}
.menu {
width: calc(4 * 200px);
margin-top: 10px;
}
If you want be closer to W3C spec, you should use postcss-custom-properties and postcss-at-rules-variables plugins.
Look at postcss-map for big complicated configs.
Docs
Read full docs on GitHub.
7.0.1
3 years ago
7.0.0
3 years ago
6.0.3
4 years ago
6.0.2
5 years ago
6.0.1
5 years ago
6.0.0
5 years ago
5.0.2
6 years ago
5.0.1
7 years ago
5.0.0
7 years ago
4.1.0
8 years ago
4.0.0
8 years ago
3.1.0
8 years ago
3.0.0
9 years ago
2.0.0
9 years ago
1.2.0
9 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.3.0
10 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.0
10 years ago