| name | tabler |
| description | Use when building or styling UI with the Tabler HTML/CSS framework — choosing component markup, CSS classes, variants, colors, or layout. Triggers on: "Tabler", component requests like "Tabler card/button/modal/table", color classes (".bg-*", ".text-*-fg"), "Tabler icons", dashboard or page layout with Tabler, or when editing templates that already use Tabler classes.
|
| scope | tabler |
| target_versions | Tabler 1.x |
| last_verified | "2026-03-19T00:00:00.000Z" |
| source_basis | official docs |
Tabler UI Reference
Reference guide for the Tabler UI framework (https://tabler.io/) — component markup, CSS classes, and responsive layout patterns.
Quick Start
- Identify the component or pattern you need (button, card, form, layout, etc.).
- Refer to Component Routing below to find the correct reference file.
- Use the provided HTML patterns and CSS classes verbatim.
- Verify responsive behavior and accessibility requirements.
Critical Patterns
- Bootstrap Foundation - Tabler extends Bootstrap 5.3. All Bootstrap utilities work (
.d-flex, .justify-content-*, .align-items-*, grid system).
- Color System - Use
.bg-{color} for backgrounds and .text-{color}-fg for foreground text (full palette and variants: Color Reference below).
- Size Modifiers - Most components support size classes
-xs to -xl (per-component availability: Size Reference below).
- State Classes - Common states:
.active, .disabled, .loading.
- Icon Integration - Use Tabler Icons with
.icon class. Size with .icon-{size} (1-10).
- Responsive Utilities - Use Bootstrap responsive classes:
.d-{breakpoint}-{display}, .col-{breakpoint}-{size}.
- Data Attributes - Bootstrap JS components use
data-bs-toggle, data-bs-target, data-bs-dismiss.
- Card Hierarchy - Always structure cards as
.card > .card-body (or .card-header/.card-footer).
- Form Structure - Wrap inputs in
.mb-3 for spacing. Use .form-label, .form-control, .form-select.
- JS vs CSS Components - Most Tabler components are pure CSS. Modals, dropdowns, offcanvas, toasts, tooltips, and carousels need Bootstrap's JS bundle — initialize via
data-bs-toggle/data-bs-target or the JS API. Charts, dropzone, and similar ship as separate plugins (references/plugins/plugins.md).
Component Routing
Components
- Alerts - Success/info/warning/danger alerts, dismissible variants, with icons →
references/components/alerts.md
- Avatars - User avatars with images/initials/icons, sizes, status badges →
references/components/avatars.md
- Badges - Color badges, pills, sizes, with icons, notifications →
references/components/badges.md
- Buttons - All button types, variants (outline/ghost/pill), sizes, states →
references/components/buttons.md
- Cards - Card structure, padding variants, headers/footers, layouts →
references/components/cards.md
- Dropdowns - Dropdown menus, items, dividers, with icons/checkboxes →
references/components/dropdowns.md
- Empty States - Empty/blank states with icons/illustrations, 404 pages →
references/components/empty.md
- Modals - Modal dialogs, prompts, forms, status indicators →
references/components/modals.md
- Tables - Responsive tables, sticky headers, row states, sizes →
references/components/tables.md
Forms
- Form Elements - Inputs, textareas, selects, checkboxes, radios, toggles →
references/forms/form-elements.md
Layout
- Navbars - Navigation bars, branding, menus, responsive mobile →
references/layout/navbars.md
Base
- Colors & Typography - Full color system, typography, CSS custom properties, icons, undocumented utilities →
references/base/colors-typography.md
Patterns
- Page Patterns - Page composition patterns from preview (settings, users, pricing, dashboard, invoice, search) →
references/patterns/page-patterns.md
Plugins
- Plugins - JS plugin components (charts, dropzone, flags, payments, offcanvas, spinners, and 20+ more) →
references/plugins/plugins.md
Reference Index
- Reference Index - Cross-index of all Tabler reference files →
references/REFERENCE.md
Color Reference
Tabler provides semantic and theme colors:
Semantic: primary, secondary, success, danger, warning, info, light, dark
Theme Colors: blue, azure, indigo, purple, pink, red, orange, yellow, lime, green, teal, cyan
Usage:
- Background:
.bg-{color} (e.g., .bg-primary, .bg-blue)
- Text:
.text-{color} (e.g., .text-primary, .text-blue)
- Foreground on colored bg:
.text-{color}-fg (e.g., .text-primary-fg)
- Light variant:
.bg-{color}-lt with .text-{color}-lt-fg
Size Reference
Common size modifiers across components:
- Extra Small:
-xs (avatars, buttons, badges)
- Small:
-sm (buttons, cards, tables, badges)
- Default: no suffix (standard size)
- Large:
-lg (buttons, avatars, badges)
- Extra Large:
-xl (buttons, avatars)
Bootstrap Integration
Tabler is built on Bootstrap 5.3. Use these utilities freely:
Layout:
- Grid:
.container, .row, .col-{size}, .col-{breakpoint}-{size}
- Flexbox:
.d-flex, .flex-row, .flex-column, .justify-content-*, .align-items-*
- Spacing:
.m-{size}, .p-{size}, .mt-*, .mb-*, .mx-*, .my-* (0-5, auto)
Display:
.d-none, .d-block, .d-inline, .d-inline-block
- Responsive:
.d-{breakpoint}-{value} (sm, md, lg, xl, xxl)
Text:
- Alignment:
.text-start, .text-center, .text-end
- Transform:
.text-lowercase, .text-uppercase, .text-capitalize
- Weight:
.fw-light, .fw-normal, .fw-bold
Borders:
.border, .border-top, .border-end, .border-bottom, .border-start
.rounded, .rounded-circle, .rounded-0, .rounded-3