AGENT SKILL

tabler

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.

License 许可
Unlicense
所属仓库
dekoza/oh-my-slop
最近更新
2026-10-28
Stars
★ 4
Forks
0

01 前言 Front Matter

name
tabler
scope
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.
source_basis
official docs
last_verified
1773878400000
target_versions
Tabler 1.x

02 资源文件 17

03 SKILL.md 正文

Tabler UI Reference

Reference guide for the Tabler UI framework (https://tabler.io/) — component markup, CSS classes, and responsive layout patterns.

Quick Start

  1. Identify the component or pattern you need (button, card, form, layout, etc.).
  2. Refer to Component Routing below to find the correct reference file.
  3. Use the provided HTML patterns and CSS classes verbatim.
  4. Verify responsive behavior and accessibility requirements.

Critical Patterns

  1. Bootstrap Foundation - Tabler extends Bootstrap 5.3. All Bootstrap utilities work (.d-flex, .justify-content-*, .align-items-*, grid system).
  2. Color System - Use .bg-{color} for backgrounds and .text-{color}-fg for foreground text (full palette and variants: Color Reference below).
  3. Size Modifiers - Most components support size classes -xs to -xl (per-component availability: Size Reference below).
  4. State Classes - Common states: .active, .disabled, .loading.
  5. Icon Integration - Use Tabler Icons with .icon class. Size with .icon-{size} (1-10).
  6. Responsive Utilities - Use Bootstrap responsive classes: .d-{breakpoint}-{display}, .col-{breakpoint}-{size}.
  7. Data Attributes - Bootstrap JS components use data-bs-toggle, data-bs-target, data-bs-dismiss.
  8. Card Hierarchy - Always structure cards as .card > .card-body (or .card-header/.card-footer).
  9. Form Structure - Wrap inputs in .mb-3 for spacing. Use .form-label, .form-control, .form-select.
  10. 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

04 同仓库更多 Skills