admin panel
v1.8.0
Published

Tabler v1.8

Tabler v1.8Tabler v1.8

Tabler 1.8 is out. It’s a release about forms: a combobox that can replace a select, a phone input with a country picker, a file dropzone and an input mask, all built into tabler.js with no extra library. There’s also a code block, a select-all plugin for tables and lists, a banner, file icons and a bento grid. On top of that there are about sixty smaller changes: stacked modals, about twenty new groups of utilities, CSS variables for more components and a round of work on motion and accessibility.

Combobox

Combobox
Combobox

A field that looks like a select, but its options are ordinary HTML, so an item can hold an icon, a description, a badge or an avatar. Add data-bs-toggle="combobox" to a <select class="form-select"> and the combobox builds the toggle and the menu from its options, with a search field. The <select> stays in the DOM and fires a normal change event, so forms and validation work as before. You can also write the menu yourself, as a .combobox-toggle button followed by a .dropdown-menu. It supports multiple selection with tags and full keyboard control, and it’s the one to use in place of Tom Select.

Phone input

Phone input
Phone input

A telephone field with a country picker in front of it, showing flags and dial codes. Add data-bs-toggle="phone-input" to an <input type="tel"> and pick the start country with data-bs-country. The picker is a combobox, so it has search and keyboard support. The number is formatted as you type, a pasted number that starts with + selects its country, and the script gives you the full international number.

Dropzone

Dropzone
Dropzone

A file field with a large drop area and a list of the chosen files, each with its name, its size and a remove button. Add data-bs-toggle="dropzone" to a .dropzone element with a .dropzone-area label around a real <input type="file">. By default the files go out with the form, like with any file field. Set data-bs-url and each file is uploaded on its own, with a progress bar. The plugin is part of tabler.js, and Dropzone.js is deprecated.

Input mask

Input mask
Input mask

data-mask no longer needs IMask. Patterns are formatted natively, with the same 0, a and * characters. There are two new types: data-mask-type="number" groups thousands and keeps the fraction to a set number of digits, and data-mask-type="date" keeps every part of a date or a time in its range. data-mask-ranges limits the groups of digits of any other pattern, such as the parts of an IP address. A page that still loads IMask keeps working as before.

Code block

Code block
Code block

A code snippet with an optional header for a title and a language, and a copy button that uses the Clipboard plugin. Wrap a pre in .code-block. Add .code-block-numbered for line numbers and .code-line-highlight to point out a line, and there’s a max height variant for long files. It doesn’t highlight syntax itself, so put the output of Prism or Shiki inside.

Select all

Select all
Select all

One checkbox that checks every row of a selectable table or list. Add data-bs-toggle="select-all" to the wrapper and data-bs-select-all-check to the checkbox in the header. It turns indeterminate while only some rows are selected, and Shift-click selects a range. A .selection-toolbar above the table swaps the filters for bulk actions and shows the number of selected rows.

Banner
Banner

A one-line strip above the navbar for an announcement, a trial notice or a maintenance message. A .banner holds the text, a link and a close button. Add data-bs-banner-id and a closed banner stays closed on the next visit. tabler-theme.js hides it before the page renders, so the page doesn’t jump.

File icon

File icon
File icon

A sheet of paper with the file format on a colored label, for uploads, attachments and file lists. Add .file-icon to an empty element and put the format in data-type. Common formats such as pdf get a color on their own, and any other format gets a gray label.

Bento grid

Bento grid
Bento grid

Cards of different sizes in one block, with edges that line up, for feature sections and dashboard overviews. Add .grid-bento to a .grid, then size each tile with .g-col-* for the columns and the new .g-row-* for the rows. Both take a breakpoint, and --tblr-grid-bento-row-height sets the height of a row.


Color contrast

Color contrast
Color contrast

Colors are tuned for WCAG contrast. The azure, pink, red, orange, lime, green, teal, cyan, success and warning colors are darker, so every color except yellow carries light text. Every base and theme color has a --tblr-{color}-text shade for text, darker in light mode and lighter in dark mode, and outline and ghost buttons, alerts and statuses use it. The demo has a Color contrast page with the WCAG ratio of every color pairing.

Modals, offcanvas and dialogs

Stacked modals
Stacked modals

A modal with data-bs-stacked="true" opens on top of the open modal instead of replacing it. Offcanvas panels close with a swipe on touch devices, .offcanvas-inset leaves a gap around the panel, and --tblr-offcanvas-backdrop-blur blurs the page behind it. The native <dialog> and its backdrop have open and close animations.

JavaScript

tabler.init(root) starts every plugin on markup added after page load, and tabler.dispose(root) releases it again. show(), hide(), toggle() and close() return a Promise that resolves when the transition ends. The new Toggler plugin switches a class or an attribute on click with data-bs-toggle="toggler", so small one-off scripts can go.

Tooltips and hover popovers stay open while the pointer is over the tip, and every tooltip and popover closes on Escape. Toggle buttons get a default aria-pressed on load.

Forms

form[data-bs-validate] styles fields with :user-invalid, so an error shows only after the user has left the field, with no JavaScript. .form-control shows the focus ring on :focus-within, so a wrapper with a nested input gets it too. Check, radio and switch marks are animated. The root element sets accent-color, so native checkboxes, radios and range inputs without Tabler classes use the theme color.

Utilities

About twenty new groups of utilities. For CSS grid: .grid-cols-*, .grid-auto-flow-*, .justify-items-*, .place-items-* and the responsive .justify-self-*. For sizes: .min-w-0, .min-h-0, .w-fit-content and the dynamic viewport units, such as .dvh-100. For text: .text-truncate-2 to .text-truncate-5, .text-balance, .text-pretty, .lh-md and the .underline-* family. The rest: .d-flow-root and .d-contents, .contains-inline and .contains-size for container queries, .color-scheme-*, .shadow-xs and .shadow-xl, .border-keyline, .transition-none, .animation-none, .hover-lift and .placeholder-pulse.

CSS variables for more components

Cards, tables, modals, dropdowns, list groups, navs, the carousel and the offcanvas have new --tblr-* variables, and so do loaders, the timeline, stars, placeholders, button groups, pricing, social icons, flags, payments and nav overflow. Buttons have --tblr-btn-transition-property, -duration and -timing.

Colors and motion

Body text is darker: $dark and $body-color are gray-900, and the light mode --tblr-body-color is gray-800. Card headers, table headers and the modal footer use the --tblr-fill-* tokens. Inline code takes the color of the text around it, so it stays readable on buttons and other colored surfaces.

The transition mixin and the animated components emit motion only inside prefers-reduced-motion: no-preference.

Demo and docs

The demo has a shopping cart page, pages for every new component, a delete repository modal with typed confirmation, a weekly metrics card and a new notifications dropdown with avatars and day groups. Tabler Icons are at 3.55.

The docs have pages for every new component and plugin, a new Tabler Flags section and a section on tabler.init() and tabler.dispose() on the installation page.

Upgrading

For most projects 1.8 is a version bump. Every class, data attribute and JavaScript export from 1.7 is still there, and a page that loads the compiled CSS and JS needs no change to its markup.

Two things can touch your code, and both are about colors. Eight base colors and the success and warning theme colors are darker; set the color yourself, for example --tblr-green: #2fb344, to keep a 1.7 shade. The color shades from $blue-100 to $cyan-900, $link-color and a few variables built on it are CSS values now, so Sass color functions such as color.adjust() can’t read them, and the deprecated --tblr-link-color-rgb and --tblr-link-hover-color-rgb custom properties are no longer emitted. Tabler’s tint-color(), shade-color() and mix-color() still work on these variables, and every other -rgb property is still there.

Three things are deprecated and stay until 2.0. Dropzone.js: dist/libs/dropzone and its styles in tabler-vendors.css remain, so existing pages keep working, and the Dropzone plugin replaces it. IMask: a page that loads it still sends plain data-mask patterns to IMask; add data-mask-type="pattern" to use the native mask. The $btn-transition Sass variable is split into $btn-transition-property, $btn-transition-duration and $btn-transition-timing.

The .underline-* utilities are new names for .link-underline* and .link-offset-*, .lh-md is an alias of .lh-base, and .placeholder-pulse of .placeholder-glow. The old classes still work.

show(), hide(), toggle() and close() return a Promise now. Projects that lint with @typescript-eslint/no-floating-promises need to mark the calls they don’t await with void, for example void modal.show().

Some things look a little different: body text is darker, eight colors are darker, colored text uses the new text shades, a pre is light in light mode, inline code follows the text color, and check, radio and switch marks animate. Check custom styles that sit close to them.

Every change, with a before and after example, is in the Upgrade to 1.8 guide.

Core changes

  • e1c3e58: Added accent-color in the primary color to the root element, so native checkboxes, radios and range inputs use it.
  • e1c3e58: Added animated check, radio and switch marks, tuned with the --tblr-control-transition-* CSS variables.
  • e1c3e58: Added Banner component: a .banner strip above the navbar that stays closed with data-bs-banner-id.
  • e1c3e58: Added .border-keyline, a 0.5px border width backed by the --tblr-border-width-keyline custom property.
  • e1c3e58: Added --tblr-btn-transition-property, -duration and -timing tokens for buttons and deprecated $btn-transition.
  • e1c3e58: Added a default aria-pressed to [data-bs-toggle="button"] buttons on load, based on .active.
  • e1c3e58: Added --tblr-card-header-tabs-bg and --tblr-card-stamp-opacity CSS variables to the card component.
  • e1c3e58: Added .card-gradient-animated-hover to animate a gradient card only on hover or keyboard focus.
  • e1c3e58: Added --tblr-carousel-indicator-* CSS variables for indicator size, spacing, hit area, dot and thumb styles.
  • e1c3e58: Updated pre and .code-block to a light surface in light mode and removed the .code-block header fill and bottom margin.
  • e1c3e58: Added Code block component: .code-block with a header, copy button, line numbers, highlighted lines and a max height variant.
  • e1c3e58: Added .color-scheme-light, .color-scheme-dark and .color-scheme-auto utilities that set color-scheme on one element.
  • e1c3e58: Added Combobox component for <select> and markup, with .combobox-toggle, tags, search, and a demo page.
  • e1c3e58: Added CSS variables to loaders, timeline, stars, placeholder, button group, pricing, social, flags, payments and nav-overflow.
  • e1c3e58: Added .contains-inline and .contains-size utilities that set container-type for container queries.
  • 9adec1e: Updated eight base colors, $success and $warning to darker shades, so every color except yellow carries light text.
  • e1c3e58: Added flow-root and contents to the display utilities, as .d-flow-root and .d-contents with responsive variants.
  • e1c3e58: Added --tblr-dropdown-max-width and --tblr-dropdown-scrollable-height CSS variables to dropdowns.
  • e1c3e58: Added a native Dropzone plugin (data-bs-toggle="dropzone") with a file list and optional upload, replacing Dropzone.js.
  • e1c3e58: Added .dvh-100, .min-dvh-100, .dvw-100 and .min-dvw-100 utilities based on dynamic viewport units.
  • e1c3e58: Added File icon component: .file-icon draws a sheet with the format from data-type on a colored label.
  • e1c3e58: Added the --tblr-floating-gap variable to set the gap of the floating navbar, sidebar and offcanvas in one place.
  • e1c3e58: Updated .form-control to show the focus ring on :focus-within, so wrappers with a nested input get it too.
  • e1c3e58: Added opt-in form[data-bs-validate] mode that styles fields with :user-invalid and :user-valid.
  • e1c3e58: Added .grid-auto-flow-row, .grid-auto-flow-column and .grid-auto-flow-dense utilities with responsive variants.
  • e1c3e58: Added .grid-bento and .g-row-* classes for bento grid layouts, with a demo page and docs.
  • e1c3e58: Added .grid-cols-* utilities (1–4, 6, subgrid) and .grid-cols-fill with responsive variants.
  • e1c3e58: Added responsive .justify-self-start, .justify-self-end, and .justify-self-center utilities.
  • e1c3e58: Added .hover-lift helper that raises an element and deepens its shadow on :hover and :focus-visible.
  • e1c3e58: Added hoverable tips: tooltips and hover popovers stay open over the tip, and every tooltip and popover closes on Escape.
  • e1c3e58: Added min-content, max-content and fit-content to the .w-* and .h-* utilities, e.g. .w-fit-content.
  • e1c3e58: Added tabler.init(root) and tabler.dispose(root) to start and release every plugin on markup added after page load.
  • e1c3e58: Added .lh-md as an alias of .lh-base.
  • e1c3e58: Added --tblr-list-group-header-color and --tblr-list-group-header-bg CSS variables to the list group header.
  • e1c3e58: Added .min-w-0, .min-w-100, .min-h-0 and .min-h-100 utilities for min-width and min-height.
  • e1c3e58: Added --tblr-modal-header-height, --tblr-modal-header-bg, --tblr-modal-status-size and --tblr-modal-backdrop-blur.
  • e1c3e58: Added open and close animations to the native <dialog> and its backdrop.
  • e1c3e58: Added a native InputMask with number and date types, tokens and data-mask-ranges, so IMask is no longer needed.
  • e1c3e58: Added --tblr-nav-bordered-* CSS variables for border, gap and active link styles to .nav-bordered.
  • e1c3e58: Added --tblr-offcanvas-border-radius and used the offcanvas padding variables in .offcanvas-footer.
  • e1c3e58: Added swipe to dismiss, .offcanvas-inset and --tblr-offcanvas-backdrop-blur to Offcanvas.
  • e1c3e58: Added Phone input component: a type="tel" field with a country picker built on the Combobox, with flags and dial codes.
  • e1c3e58: Added .justify-items-* and .place-items-* utilities (start, end, center, baseline, stretch) with responsive variants.
  • e1c3e58: Added .placeholder-pulse as an alias of .placeholder-glow for the placeholder opacity animation.
  • e1c3e58: Updated the transition mixin and animated components to emit motion only inside prefers-reduced-motion: no-preference.
  • e1c3e58: Added .shadow-xs and .shadow-xl utilities with the --tblr-box-shadow-xs and --tblr-box-shadow-xl tokens.
  • e1c3e58: Added stacked modals: a modal with data-bs-stacked="true" opens on top of the open modal instead of replacing it.
  • 9adec1e: Added --tblr-{color}-text shades, used by outline and ghost buttons, alerts and statuses, and runtime -fg colors.
  • e1c3e58: Added --tblr-table-* CSS variables for cell padding, border width and header styles to the table component.
  • e1c3e58: Added SelectAll plugin for selectable tables and lists, and .selection-toolbar for bulk actions on selected rows.
  • e1c3e58: Added .text-truncate-2 to .text-truncate-5 utilities that cut text after a set number of lines.
  • e1c3e58: Added .text-balance and .text-pretty utilities for text-wrap.
  • e1c3e58: Added the Toggler plugin, which toggles a class or an attribute on click with data-bs-toggle="toggler".
  • e1c3e58: Added .transition-none and .animation-none utilities to switch off transitions and animations on one element.
  • e1c3e58: Added Promise return values to show(), hide(), toggle() and close() that resolve when the transition ends.
  • e1c3e58: Added .underline-thickness-1 to .underline-thickness-5 utilities for text-decoration-thickness.
  • e1c3e58: Added .underline, .underline-{color}, .underline-{0…100} and .underline-offset-{1-3} as new names for .link-underline*.
  • e1c3e58: Updated $dark and $body-color to $gray-900 and the light mode --tblr-body-color to gray-800 for darker text.
  • f86c952: Fixed @starting-style and @scope rules being dropped from the .min.css files by switching the minifier to cssnano.
  • 50bd9cc: Fixed Datepicker theme changes before the first popup opens.
  • e1c3e58: Updated card headers, table headers, modal footer and other neutral backgrounds to use the --tblr-fill-* tokens.
  • 59c60d7: Fixed Carousel so images inside .carousel-item cannot be dragged on touch devices.
  • c799164: Fixed dispose() leaving a cycling Carousel interval running and touch mouseover listeners after an open Dropdown or Tooltip.
  • e1c3e58: Fixed the menu row of the floating two-row navbar being narrower than the header row.
  • 69b05e9: Fixed OtpInput keeping old characters when a shorter text is pasted over a selection.
  • 63770c4: Fixed the plus and empty avatars in .avatar-list-stacked showing the avatar behind through a transparent $avatar-bg.
  • 5029252: Fixed border-radius of .flag-xxs and square .avatar-xxs to match the xs size.
  • 95ebf0f: Added font-optical-sizing: auto to the html element.
  • d0fac39: Updated .icon-pulse, .icon-tada and .icon-rotate to transition only transform instead of all.
  • 46bd1d7: Fixed inline code contrast on colored surfaces: it now uses the surrounding text color with a 10% tint as background.
  • e1c3e58: Fixed Offcanvas panels that are not position: fixed opening on page load and locking page scroll.
  • e1c3e58: Removed obsolete ::-moz-focus-inner and button/select text-transform: none rules from reboot.
  • 68c81fc: Fixed Chrome recalculating the style of the whole page on each DOM change because of the .steps :last-child rule.

Demo changes

  • e1c3e58: Added the shopping cart demo page with a quantity stepper per line and an order summary.
  • 9adec1e: Added a Color contrast page that shows the WCAG contrast ratio of every color pairing in light and dark mode.
  • e1c3e58: Added a delete repository modal with typed confirmation to the modals preview page.
  • e1c3e58: Added the Inline code demo page with code in text colors, links, colored surfaces and alerts.
  • e1c3e58: Added a weekly metrics comparison card with a change column to the tables preview page.
  • e1c3e58: Updated the homepage to show a Tabler All Package banner instead of the sponsor card.
  • 65ffe81: Updated astro to 7.4.12, @astrojs/mdx to 8.1.6 and @astrojs/vercel to 11.0.22.
  • e1c3e58: Fixed the missing switch knob and check mark in the card footer examples on the cards page.
  • e1c3e58: Added a Tabler Flags docs section with @tabler/flags-* library pages; /ui/plugins/flags now redirects to /flags/css.
  • e1c3e58: Updated the navbar notifications dropdown with avatars, timestamps, unread dots, day groups and a scrollable list.
  • 8bc045e: Added Cache-Control headers for the static files of the Vercel preview deployment (/static, /dist, /preview).
  • e1c3e58: Removed the All Elements page (all-elements.html) and its menu entry from the preview.
  • d0c2608: Updated Tabler Illustrations to v1.19.0 with 5 new illustrations.
  • e1c3e58: Updated Tabler Icons to v3.55.0.

Docs changes

  • e1c3e58: Fixed narrow .card examples in the docs so a single card sits in the middle of the example area.
  • 4ab8130: Updated the docs layout to a flat, full-width page with a centered content column and a sticky menu.
  • e1c3e58: Added a section on tabler.init() and tabler.dispose() for markup added after page load to the installation page.
  • b9cbd37: Fixed the Page layouts examples, footer placement, and skip-link guidance to match the preview layout.

Get Started with Tabler

Ready to explore the latest features? Download Tabler today and start building with the most advanced version of Tabler yet! 🚀

We’d love to hear your thoughts and see what you build with this release. Share your feedback and creations with us!