Rounding
Last updated
Last updated
You can set three sizes of border radiuses globally for all Vueless components.
You can set any border-radius value in pixels, but we highly recommend adhering to 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:
0
0
2
0
2
8
2
4
10
4
6
12
4
8
14
6
10
16
8
12
18
10
14
20
12
16
22
To implement global border radius stylings, Vueless provides custom Tailwind CSS classes: rounded-dynamic-sm
, rounded-dynamic
, rounded-dynamic-lg
. Feel free to use these classes in your components whenever you need consistent rounding across your project.
You can also use the corresponding CSS variables directly:
--vl-rounding,
--vl-rounding-sm
,
--vl-rounding-lg
.