You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/pxtorem/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ The plugin accepts the following options:
44
44
45
45
-`rootValue` (default: `16`): The root font size to use for the conversion. This is typically set to `16px`, which is the default font size in most browsers.
46
46
-`unitPrecision` (default: `4`): The number of decimal places to use for the converted values.
47
+
-`minValue` (default: `0`): The minimum value to convert. Also supports `negative` and `float` values.
47
48
48
49
## 🚀 Usage
49
50
@@ -101,6 +102,7 @@ export default defineConfig({
101
102
pxtorem({
102
103
rootValue:18,
103
104
unitPrecision:2,
105
+
minValue:10,
104
106
}),
105
107
]),
106
108
},
@@ -142,7 +144,7 @@ h1 {
142
144
}
143
145
```
144
146
145
-
See others examples in the [test folder](https://github.com/felixicaza/lightningcss-plugins/blob/main/packages/pxtorem/test/index.test.ts).
147
+
See others examples in the [test folder](https://github.com/felixicaza/lightningcss-plugins/blob/main/packages/pxtorem/test).
0 commit comments