Skip to content

Commit

Permalink
GITBOOK-64: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
itsJohnnyGrid authored and gitbook-bot committed Jan 23, 2025
1 parent 7020a07 commit 924849a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/global-customization/rounding.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,28 @@
You can set three sizes of border radiuses globally for all Vueless components.

<pre class="language-js" data-title="vueless.config.{js,ts}"><code class="lang-js">export default {
roundingSm: 2, /* default -> 4 (pixels) */
roundingSm: 4,
rounding: 6, /* default -> 8 (pixels) */
roundingLg: 8, /* default -> 16 (pixels) */
roundingLg: 8,
}<a data-footnote-ref href="#user-content-fn-1">;</a>
</code></pre>

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 %}
Expand Down

0 comments on commit 924849a

Please sign in to comment.