@microflash/preset
Advanced tools
Comparing version
{ | ||
"name": "@microflash/preset", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "A modern CSS preset", | ||
@@ -23,7 +23,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"csso-cli": "^4.0.2", | ||
"postcss": "^8.4.35", | ||
"postcss-cli": "^11.0.0", | ||
"postcss-preset-env": "^9.4.0", | ||
"sass": "^1.71.1" | ||
"lightningcss-cli": "^1.25.1", | ||
"sass": "^1.77.4" | ||
}, | ||
@@ -35,6 +32,6 @@ "browserslist": [ | ||
"dist": "npm run compile && npm run build && npm run minify", | ||
"compile": "sass --no-source-map src/preset.scss dist/preset.css", | ||
"build": "postcss dist/preset.css --replace --no-map", | ||
"minify": "csso dist/preset.css --output dist/preset.min.css" | ||
"compile": "sass --no-source-map src/preset.scss src/preset.css", | ||
"build": "lightningcss --browserslist src/preset.css -o dist/preset.css", | ||
"minify": "lightningcss --minify --browserslist src/preset.css -o dist/preset.min.css" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
 | ||
 | ||
@@ -20,3 +20,3 @@ # preset | ||
`preset` is a CSS reset to baseline the browser styles to give you a uniform foundation for building your custom styles on top of it. | ||
`preset` is a CSS reset to baseline the browser styles. It gives you a uniform foundation to build your custom styles on top of. | ||
@@ -77,3 +77,3 @@ ## Install | ||
`preset` supports [modern browsers](https://browsersl.ist/#q=defaults%2C+not+IE+%3E+0). | ||
`preset` supports [modern browsers](https://browsersl.ist/#q=defaults). | ||
@@ -84,6 +84,7 @@ ## API | ||
- `--preset-line-height` (default: `calc(0.3rem + 2ex + 0.3rem)`) to override the line-height | ||
- `--preset-tab-size` (default: `2`) to control the width of code block indentation | ||
- `--preset-dialog-backdrop-filter` (default: `blur(25px)`) to override the backdrop filter of the dialog | ||
- `--preset-table-caption-side` (default: `bottom`) to customize caption position of a table caption | ||
- `--preset-line-height` (default: `calc(0.3rem + 2ex + 0.3rem)`) to set the line-height | ||
- `--preset-tab-size` (default: `2`) to set the width of code block indentation | ||
- `--preset-outline-transition` to set the transition applied on the outline | ||
- `--preset-dialog-backdrop-filter` (default: `blur(25px)`) to set the backdrop filter of the dialog | ||
- `--preset-table-caption-side` (default: `bottom`) to set caption position of a table caption | ||
- `--preset-scroll-padding` (default: `3rem`) to set `scroll-padding-block-start` for an element | ||
@@ -90,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38515
76.97%2
-60%8
14.29%350
91.26%96
1.05%