Skip to content

Utility Classes Reference

Tabler (based on Bootstrap 5) provides a comprehensive set of atomic CSS utility classes. When using @gulcc/tabler-vue, you can use these class names directly in your templates for fine-grained style control.

Borders

Border Direction

html
<div class="border">All sides</div>
<div class="border-top">Top border</div>
<div class="border-end">End (right) border</div>
<div class="border-bottom">Bottom border</div>
<div class="border-start">Start (left) border</div>
<div class="border-x">X-axis borders</div>
<div class="border-y">Y-axis borders</div>

Border Width

ClassDescription
border-0No border
borderStandard border (1px)
border-wideWide border (2px)

Removing Borders

html
<div class="border border-top-0">Remove top</div>
<div class="border border-end-0">Remove end</div>
<div class="border border-bottom-0">Remove bottom</div>
<div class="border border-start-0">Remove start</div>

Border Color

html
<div class="border border-primary">primary</div>
<div class="border border-secondary">secondary</div>
<div class="border border-success">success</div>
<div class="border border-danger">danger</div>
<div class="border border-warning">warning</div>
<div class="border border-info">info</div>

Border Radius

ClassDescription
rounded-0No rounding
roundedStandard rounding
rounded-1Small rounding
rounded-2Medium rounding
rounded-3Large rounding
rounded-circleCircle
rounded-pillPill shape
rounded-top / rounded-end / rounded-bottom / rounded-startSingle side rounding

Cursors

ClassEffect
cursor-pointercursor: pointer
cursor-defaultcursor: default
cursor-grabcursor: grab
cursor-grabbingcursor: grabbing
cursor-waitcursor: wait
cursor-textcursor: text
cursor-movecursor: move
cursor-not-allowedcursor: not-allowed
cursor-helpcursor: help
cursor-crosshaircursor: crosshair
cursor-zoom-incursor: zoom-in
cursor-zoom-outcursor: zoom-out

Interactions

User Select

ClassDescription
user-select-allSelect all on click
user-select-autoDefault selection behavior
user-select-noneDisable text selection

Pointer Events

ClassDescription
pe-nonepointer-events: none
pe-autopointer-events: auto

Overflow

ClassDescription
overflow-autoAuto scroll
overflow-hiddenHide overflow
overflow-visibleVisible overflow
overflow-scrollForce scrollbar

Margins & Padding

Tabler uses the {property}{side}-{size} format:

  • property: m — margin, p — padding
  • side: t (top), b (bottom), s (start/left), e (end/right), x (both x), y (both y), empty (all)
  • size: 0 ~ 8

Size Reference

SizeValue
00
10.25rem
20.5rem
31rem
41.5rem
52rem
63rem
75rem
88rem

Examples

html
<!-- Margin -->
<div class="m-4">Margin all sides</div>
<div class="mt-3">Margin top</div>
<div class="mb-2">Margin bottom</div>
<div class="ms-4">Margin start</div>
<div class="me-2">Margin end</div>
<div class="mx-auto">Horizontally center</div>

<!-- Padding -->
<div class="p-4">Padding all sides</div>
<div class="pt-3">Padding top</div>
<div class="pb-2">Padding bottom</div>
<div class="ps-4">Padding start</div>
<div class="pe-2">Padding end</div>

Vertical Align

ClassDescription
align-baselinevertical-align: baseline
align-topvertical-align: top
align-middlevertical-align: middle
align-bottomvertical-align: bottom
align-text-topvertical-align: text-top
align-text-bottomvertical-align: text-bottom

Best used with d-inline or d-inline-block:

html
<span class="d-inline-block align-middle">Centered text</span>

💡 Tip: All utility classes above come from Tabler / Bootstrap 5. Learn more at the Tabler documentation.