diff --git a/docs/global-customization/rounding.md b/docs/global-customization/rounding.md index 842a471a..277c001e 100644 --- a/docs/global-customization/rounding.md +++ b/docs/global-customization/rounding.md @@ -3,14 +3,28 @@ You can set three sizes of border radiuses globally for all Vueless components.
export default {
- roundingSm: 2, /* default -> 4 (pixels) */
+ roundingSm: 4,
rounding: 6, /* default -> 8 (pixels) */
- roundingLg: 8, /* default -> 16 (pixels) */
+ roundingLg: 8,
};
You can set any border-radius value in pixels, but we highly recommend adhering to [Tailwind CSS’s predefined border-radius](https://tailwindcss.com/docs/border-radius) values for consistency.
+If you define only the `rounding` value, `roundingSm` and `roundingLg` will be automatically calculated. The expected values are listed in the table below:
+
+| rounding (md) | roundingSm | roundingLg |
+| ------------- | ---------- | ---------- |
+| 0 | 0 | 2 |
+| 2 | 0 | 8 |
+| 4 | 2 | 10 |
+| 6 | 4 | 12 |
+| 8 | 4 | 14 |
+| 10 | 6 | 16 |
+| 12 | 8 | 18 |
+| 14 | 10 | 20 |
+| 16 | 12 | 22 |
+
{% hint style="info" %}
In the config, values are specified in `pixels` for simplicity, but they are automatically converted into `rem` under the hood.
{% endhint %}