1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

Add variants with 100% root font size and rem values * 1.6

This commit is contained in:
lionel-rowe 2022-02-04 22:44:31 +00:00
parent 895bb72c1e
commit 9f2b81bf65
3 changed files with 437 additions and 508 deletions

View File

@ -6,7 +6,7 @@
"scripts": {
"start": "run-p docs watch",
"docs": "jekyll s -s docs",
"build": "rimraf dist/* && yarn postcss && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'",
"build": "rimraf dist/* && yarn postcss && cross-env VARIANT=100 yarn postcss --ext .100.css && cross-env VARIANT=100 NODE_ENV=production yarn postcss --ext .100.min.css && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'",
"postcss": "postcss ./src/chota.css -d dist/",
"watch": "cross-env NODE_ENV=development yarn postcss -w",
"test": "echo \"Error: no test specified\" && exit 1",
@ -32,9 +32,11 @@
"cross-env": "^7.0.2",
"cssnano": "^4.1.7",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.1",
"postcss": "^8.4.6",
"postcss-cli": "^9.1.0",
"postcss-csso": "^4.0.0",
"postcss-import": "^12.0.1",
"postcss-revert-rem-size": "^0.2.0",
"rimraf": "^3.0.0"
},
"files": [

View File

@ -11,6 +11,11 @@ if (process.env.NODE_ENV == "production")
})
);
if (process.env.VARIANT == "100")
plugins.push(
require("postcss-revert-rem-size")({})
);
module.exports = {
plugins
};

934
yarn.lock

File diff suppressed because it is too large Load Diff