Skip to content

Commit

Permalink
feat: remove setting stroke color for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Feb 25, 2024
1 parent 0887640 commit fc637d7
Show file tree
Hide file tree
Showing 6 changed files with 463 additions and 406 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ You can customize some aspects of `preset` through CSS properties. You can defin

- `--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-stroke-color` (default: `currentColor`) to override the stroke color of SVG with no fill
- `--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-scroll-padding` (default: `3rem`) to set `scroll-padding-block-start` for an element
Expand Down
6 changes: 2 additions & 4 deletions dist/preset.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Preset v2.0.0 | MIT License | https://github.com/Microflash/preset */
/*! Preset v3.0.0 | MIT License | https://github.com/Microflash/preset */
* {
line-height: calc(0.3rem + 2ex + 0.3rem);
line-height: var(--preset-line-height, calc(0.3rem + 2ex + 0.3rem));
Expand Down Expand Up @@ -75,9 +75,7 @@
background-size: cover;
}

:where(svg:not([fill][class]), svg[fill=none]:not([class])) {
stroke: currentColor;
stroke: var(--preset-stroke-color, currentColor);
:where(svg) {
stroke-linecap: round;
stroke-linejoin: round;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/preset.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microflash/preset",
"version": "2.0.0",
"version": "3.0.0",
"description": "A modern CSS preset",
"keywords": [
"css",
Expand All @@ -27,10 +27,10 @@
},
"devDependencies": {
"csso-cli": "^4.0.2",
"postcss": "^8.4.33",
"postcss": "^8.4.35",
"postcss-cli": "^11.0.0",
"postcss-preset-env": "^9.3.0",
"sass": "^1.69.7"
"postcss-preset-env": "^9.4.0",
"sass": "^1.71.1"
},
"browserslist": [
"defaults"
Expand Down
Loading

0 comments on commit fc637d7

Please sign in to comment.