Moey Icons
No results. Try “dialog”, “dark” or “grid”.
Utilities

Utilities

Small classes that each do one thing — flex, items-center, gap-4, p-4 — for laying out a page without writing CSS. Short names, phone first.

Orders
1,284
<div class="flex flex-col md:flex-row md:items-center justify-between gap-3 p-4 bg-surface rounded-lg">
  <div>
    <div class="text-muted text-sm">Orders</div>
    <div class="text-2xl font-bold">1,284</div>
  </div>
  <div class="flex gap-2">
    <button class="btn">Export</button>
    <button class="btn btn-default btn-solid">New order</button>
  </div>
</div>

Make your window narrow: on phones the buttons sit under the number; from md (768px) up they move beside it.

Phone first

A class without a prefix works on every screen. Add a breakpoint in front and it applies from that width up — so you write the phone layout first, then change what needs changing on bigger screens.

PrefixFromExample
(none)every screenflex-col
sm:576pxsm:flex-row
md:768pxmd:grid
lg:1024pxlg:gap-8
xl:1280pxxl:max-w-5xl
2xl:1536px2xl:p-12
Only on phones
<div class="hidden md:block">Only from md up</div>
<div class="md:hidden">Only on phones</div>

The spacing scale

Every spacing and size number means the same thing: the number × 4px. p-4 is 16px of padding, gap-6 is 24px, w-12 is 48px. The same scale is used by padding, margin, gap, space, width / height and the grid's gutters.

Number00.511.522.5345681012162024
Size0px2px4px6px8px10px12px16px20px24px32px40px48px64px80px96px

How they behave

  • One class, one property. items-center only sets align-items; nothing else changes.
  • Utilities always win over components — they're the last layer of Moey's CSS, so p-0 on a card works without !important.
  • Start and end, not left and right. ps-4 and me-2 follow the writing direction, so layouts flip correctly in right-to-left languages.
PageClasses
Displayblock flex grid hidden …
Flexflex-col flex-wrap flex-1 shrink-0 order-last …
Alignmentitems-center justify-between self-end place-items-center …
Gapgap-4 gap-x-2 gap-y-6
Spacingp-4 px-6 mt-2 mx-auto space-y-3 …
Sizingw-full w-1/2 size-10 max-w-prose min-h-screen …
Texttext-sm · font-semibold · text-center · line-clamp-2 · uppercase
Bordersborder · border-b · rounded-lg · divide-y
Effectsshadow · opacity-50 · transition · animate-spin
Positionrelative · absolute · sticky · top-0 · inset-0 · z-10
Overflow & visibilityoverflow-auto · overscroll-contain · invisible · float-end
Aspect ratio & object fitaspect-video · object-cover
Interactionspointer-events-none · select-none · cursor-pointer
Container queries@container · @md:flex-row
Background · Colorsbg-surface text-muted bg-blue-100 …