v1.3.0 28

Border

Radius and stroke width tokens.

Radius Scale

md is the base. See Applied Examples for how each looks on a component.

NamepxremClass
none 0 0 vt-rounded-none
2xs 4 0.25 vt-rounded-2xs
xs 6 0.375 vt-rounded-xs
sm 8 0.5 vt-rounded-sm
mdBase 12 0.75 vt-rounded-md
lg 16 1 vt-rounded-lg
xl 20 1.25 vt-rounded-xl
2xl 24 1.5 vt-rounded-2xl
3xl 32 2 vt-rounded-3xl
4xl 40 2.5 vt-rounded-4xl
full 9999 9999px vt-rounded-full

Applied Examples

html
Buttons
<button class="vt-btn vt-btn-primary vt-rounded-none"><span>none</span></button>
<button class="vt-btn vt-btn-primary vt-rounded-2xs"><span>2xs</span></button>
<button class="vt-btn vt-btn-primary vt-rounded-sm"><span>sm</span></button>
<button class="vt-btn vt-btn-primary vt-rounded-md"><span>md</span></button>
html
Cards
none
Sharp corners
sm
8px
md
12px (base)
lg
16px
2xl
24px
<div class="vt-rounded-none vt-border vt-border-border-default vt-p-3 vt-w-36">...</div>
<div class="vt-rounded-sm vt-border vt-border-border-default vt-p-3 vt-w-36">...</div>
<div class="vt-rounded-md vt-border vt-border-border-default vt-p-3 vt-w-36">...</div>
<div class="vt-rounded-lg vt-border vt-border-border-default vt-p-3 vt-w-36">...</div>
<div class="vt-rounded-2xl vt-border vt-border-border-default vt-p-3 vt-w-36">...</div>
html
Inputs
<input type="text" placeholder="none" class="vt-input vt-w-36 vt-rounded-none">
<input type="text" placeholder="2xs" class="vt-input vt-w-36 vt-rounded-2xs">
<input type="text" placeholder="sm" class="vt-input vt-w-36 vt-rounded-sm">
<input type="text" placeholder="full" class="vt-input vt-w-36 vt-rounded-full">
html
Avatars
A
none
C
sm
E
md
G
full
<div class="vt-avatar vt-avatar-lg vt-rounded-none">A</div>
<div class="vt-avatar vt-avatar-lg vt-rounded-sm">C</div>
<div class="vt-avatar vt-avatar-lg vt-rounded-md">E</div>
<div class="vt-avatar vt-avatar-lg">G</div>

Border Width

Values of the Default theme. Each is also drawn 8× larger — at actual size the steps are hard to tell apart.

TokenValueActual8×Usage
--vt-border-width-line 1px
Dividers, panel and card edges, table rows. A theme can make it a hairline.
--vt-border-width-control 1px
The border of an input, a bordered button, a checkbox. The theme sets it.
--vt-border-width-strong 2px
Selection: the active tab, a selected card, a slider track.