Utilities
Borders
Lines and corners. Moey is borderless by default — reach for these when a line really helps.
Border
border
border-2 border-dashed
border-b
border-s-2 border-blue
<div class="flex flex-wrap gap-3">
<div class="border p-3 rounded">border</div>
<div class="border-2 border-dashed p-3 rounded">border-2 border-dashed</div>
<div class="border-b p-3">border-b</div>
<div class="border-s-2 border-blue ps-3 py-1">border-s-2 border-blue</div>
</div>
Border color
border-default
border-blue
border-green
border-amber
border-red
border-green-300
<div class="border-2 border-blue rounded p-3">…</div> <!-- follows light / dark mode -->
<div class="border-2 border-green-300 rounded p-3">…</div> <!-- an exact shade -->
border-<color> follows light and dark mode; border-<color>-<shade> is the exact shade.
Border radius
rounded-0
rounded-sm
rounded
rounded-lg
rounded-xl
rounded-pill
rounded-t-lg
rounded-s-lg
<div class="flex flex-wrap gap-3">
<div class="rounded-0 py-3 px-4">rounded-0</div>
<div class="rounded-sm py-3 px-4">rounded-sm</div>
<div class="rounded py-3 px-4">rounded</div>
<div class="rounded-lg py-3 px-4">rounded-lg</div>
<div class="rounded-xl py-3 px-4">rounded-xl</div>
<div class="rounded-pill py-3 px-4">rounded-pill</div>
<div class="rounded-t-lg py-3 px-4">rounded-t-lg</div>
<div class="rounded-s-lg py-3 px-4">rounded-s-lg</div>
<div class="rounded-circle cell size-12 p-0"></div>
</div>
rounded matches buttons and inputs, rounded-lg matches cards — so they follow the shape you pick for the app.
Divide
Ana Kim2m
Marco Rossi2m
Lena Fischer2m
<div class="divide-y bg-surface rounded-lg">
<div class="flex justify-between p-3">
<span>Ana Kim</span>
<span class="text-muted">2m</span>
</div>
<div class="flex justify-between p-3">
<span>Marco Rossi</span>
<span class="text-muted">2m</span>
</div>
<div class="flex justify-between p-3">
<span>Lena Fischer</span>
<span class="text-muted">2m</span>
</div>
</div>
Styles, sides & widths
border-dotted
border-x
border-y
border-4
border-current
border-transparent
<div class="flex flex-wrap gap-3">
<div class="border border-dotted p-3 rounded">border-dotted</div>
<div class="border-x p-3">border-x</div>
<div class="border-y p-3">border-y</div>
<div class="border-4 border-blue p-3 rounded-lg">border-4</div>
<div class="border-2 border-current text-red p-3 rounded">border-current</div>
<div class="border-2 border-transparent bg-1 p-3 rounded">border-transparent</div>
</div>
Rounding one side
rounded-b-lg
rounded-e-lg
rounded-t-0 rounded-lg
<div class="flex flex-wrap gap-3">
<div class="rounded-b-lg bg-2 p-4 text-sm">rounded-b-lg</div>
<div class="rounded-e-lg bg-2 p-4 text-sm">rounded-e-lg</div>
<div class="rounded-t-0 rounded-lg bg-2 p-4 text-sm">rounded-t-0 rounded-lg</div>
</div>
| Class | Does |
|---|---|
border · border-0 · border-2 · border-4 | all sides, 1px in the border color (a width alone draws a solid border; per side: border-s-2) |
border-t · border-b · border-s · border-e · border-x · border-y (+ -0 · -2) | one side (start / end follow the writing direction) |
border-solid · border-dashed · border-dotted · border-none | style |
border- · border-default · border-subtle · border-transparent · border-current · border- | color |
rounded-0 · rounded-sm · rounded · rounded-lg · rounded-xl · rounded-pill · rounded-circle | corners |
rounded-t · rounded-b · rounded-s · rounded-e (+ -lg · -0) | corners on one side |
divide-y · divide-x | a line between children |