Customize
Shapes
Soft, rounded corners by default — change them for one element, one area, or the whole app.
Every component reads four corner sizes: controls (buttons, inputs), cards, overlays (menus, toasts) and dialogs. A shape class changes all four at once, and every size variant follows.
shape-sharp
Badge
shape-soft (default)
Badge
shape-round
Badge
<html class="shape-sharp"> <!-- the whole app -->
<div class="card shape-round">…</div> <!-- one area -->
<button class="btn btn-default rounded-pill">…</button> <!-- one element -->
<!-- rounded-0 · rounded-sm · rounded · rounded-lg · rounded-xl · rounded-pill · rounded-circle -->
/* Or set your own sizes */
:root { --mo-radius-control: 8px; --mo-radius-card: 12px; }
| Token | Default | Used by |
|---|---|---|
--mo-radius-control | 10px | Buttons, inputs, selects, segmented controls |
--mo-radius-card | 16px | Cards, widgets, alerts |
--mo-radius-overlay | 14px | Menus, popovers, toasts |
--mo-radius-dialog | 20px | Dialogs |
Pill shapes
Round the ends of single elements with rounded-pill.
<div class="flex flex-wrap gap-3 items-center">
<button class="btn btn-default rounded-pill">Follow</button>
<button class="btn rounded-pill"><i class="mi mi-plus"></i>Add tag</button>
<input class="form-control rounded-pill max-w-56" placeholder="Search" aria-label="Search">
</div>
Images and avatars
<img class="rounded-xl" src="product.jpg" alt="">
<img class="rounded-circle" src="jane.jpg" alt="">
Just one area
A sharp toolbar inside an otherwise soft app.
<div class="shape-sharp flex gap-2 flex-wrap">
<button class="btn"><i class="mi mi-bold"></i></button>
<button class="btn"><i class="mi mi-italic"></i></button>
<button class="btn"><i class="mi mi-underline"></i></button>
<select class="form-select w-auto" aria-label="Font">
<option>Inter</option>
</select>
</div>