Border utilities — width (border-{value}), radius (rounded-{value}), and color (border-{color}-{tone}), stackable on any element.
<!-- Set border width, radius and color -->
<engine:VisualElement class="border-8 rounded-lg border-red-400"/>Format: border-{value}
| Class | Properties |
|---|---|
| border-0 | border-width: 0 |
| border-1 | border-width: 1px |
| border-2 | border-width: 2px |
| border-4 | border-width: 4px |
| border-8 | border-width: 8px |
| border-12 | border-width: 12px |
| border-16 | border-width: 16px |
Format: rounded-{value}
| Class | Properties |
|---|---|
| rounded-none | border-radius: 0 |
| rounded-sm | border-radius: 2px |
| rounded | border-radius: 4px |
| rounded-md | border-radius: 6px |
| rounded-lg | border-radius: 8px |
| rounded-xl | border-radius: 12px |
| rounded-2xl | border-radius: 16px |
| rounded-3xl | border-radius: 24px |
| rounded-full | border-radius: 9999px — square elements only, see below |
⚠️
rounded-fullis for squares (circles), never for pills. UI Toolkit resolves oversized radii by scaling them into an ellipse, unlike CSS browsers which clamp to a capsule. On a non-square element,9999px— and50%/100%, they fail identically — renders curved sides instead of a pill. On a square all of them produce the same circle, sorounded-fullis safe for avatars and icon buttons only.
Format: rounded-pill-{height}
For a true capsule the radius must equal half the element's height, and USS has no unit for that — so the pill classes are named by the element height they fit:
| Class | For elements of height | Properties |
|---|---|---|
| rounded-pill-24 | 24px | border-radius: 12px |
| rounded-pill-32 | 32px | border-radius: 16px |
| rounded-pill-40 | 40px | border-radius: 20px |
| rounded-pill-48 | 48px | border-radius: 24px |
| rounded-pill-56 | 56px | border-radius: 28px |
| rounded-pill-64 | 64px | border-radius: 32px |
| rounded-pill-80 | 80px | border-radius: 40px |
<!-- A 40px-tall capsule button -->
<engine:Button class="h-40 rounded-pill-40 bg-primary-500" text="Play" />For a height outside the ladder, author the radius explicitly: border-radius: <height / 2>px.
Format: border-{color}-{tone}
<engine:VisualElement class="border-purple-700" />
<engine:VisualElement class="border-red-500" />
<engine:VisualElement class="border-red-500-half" />The per-ramp border-color classes come from the Essentials theme's Colors/utility-colors.uss (or your own Palette Generator export). The -half suffix means the same tone at 50% opacity — a convention, not shipped by default; see Colors → The -half suffix for the alias to define it yourself.
--color-{name}-{tone} tokens the border-color classes route intoSettings
Theme
Light
Contrast
Material
Dark
Dim
Material Dark
System
Sidebar(Light & Contrast only)
Font Family
DM Sans
Wix
Inclusive Sans
AR One Sans
Direction