-
Notifications
You must be signed in to change notification settings - Fork 0
/
postcss.config.js
36 lines (34 loc) · 938 Bytes
/
postcss.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const webpack = require("webpack");
const fs = require("fs");
const path = require("path");
const reactToolboxVariables = {
"font-size-big": "calc(1.8 * var(--unit))",
"preferred-font": "'Roboto', 'Helvetica', 'Arial', sans-serif",
"font-size": "calc(1.8 * var(--unit))",
"font-size-tiny": "calc(1.4 * var(--unit))",
"font-size-small": "calc(1.6 * var(--unit))",
"font-size-normal": "var(--font-size)",
"font-size-big": "calc(2.0 * var(--unit))",
"font-weight-thin": "300",
"font-weight-normal": "400",
"font-weight-semi-bold": "500",
"font-weight-bold": "700"
};
module.exports = {
plugins: {
'postcss-import': {
root: __dirname,
},
'postcss-mixins': {},
'postcss-each': {},
'postcss-cssnext': {
browsers: ["last 2 versions", "ie >= 9"],
compress: true,
features: {
customProperties: {
variables: reactToolboxVariables
}
}
},
}
}