Tabler 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

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

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

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

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

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

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

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

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

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

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

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: Addedaccent-colorin 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.bannerstrip above the navbar that stays closed withdata-bs-banner-id.e1c3e58: Added.border-keyline, a0.5pxborder width backed by the--tblr-border-width-keylinecustom property.e1c3e58: Added--tblr-btn-transition-property,-durationand-timingtokens for buttons and deprecated$btn-transition.e1c3e58: Added a defaultaria-pressedto[data-bs-toggle="button"]buttons on load, based on.active.e1c3e58: Added--tblr-card-header-tabs-bgand--tblr-card-stamp-opacityCSS variables to the card component.e1c3e58: Added.card-gradient-animated-hoverto 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: Updatedpreand.code-blockto a light surface in light mode and removed the.code-blockheader fill and bottom margin.e1c3e58: Added Code block component:.code-blockwith a header, copy button, line numbers, highlighted lines and a max height variant.e1c3e58: Added.color-scheme-light,.color-scheme-darkand.color-scheme-autoutilities that setcolor-schemeon 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-inlineand.contains-sizeutilities that setcontainer-typefor container queries.9adec1e: Updated eight base colors,$successand$warningto darker shades, so every color exceptyellowcarries light text.e1c3e58: Addedflow-rootandcontentsto the display utilities, as.d-flow-rootand.d-contentswith responsive variants.e1c3e58: Added--tblr-dropdown-max-widthand--tblr-dropdown-scrollable-heightCSS variables to dropdowns.e1c3e58: Added a nativeDropzoneplugin (data-bs-toggle="dropzone") with a file list and optional upload, replacing Dropzone.js.e1c3e58: Added.dvh-100,.min-dvh-100,.dvw-100and.min-dvw-100utilities based on dynamic viewport units.e1c3e58: Added File icon component:.file-icondraws a sheet with the format fromdata-typeon a colored label.e1c3e58: Added the--tblr-floating-gapvariable to set the gap of the floating navbar, sidebar and offcanvas in one place.e1c3e58: Updated.form-controlto show the focus ring on:focus-within, so wrappers with a nested input get it too.e1c3e58: Added opt-inform[data-bs-validate]mode that styles fields with:user-invalidand:user-valid.e1c3e58: Added.grid-auto-flow-row,.grid-auto-flow-columnand.grid-auto-flow-denseutilities with responsive variants.e1c3e58: Added.grid-bentoand.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-fillwith responsive variants.e1c3e58: Added responsive.justify-self-start,.justify-self-end, and.justify-self-centerutilities.e1c3e58: Added.hover-lifthelper that raises an element and deepens its shadow on:hoverand:focus-visible.e1c3e58: Added hoverable tips: tooltips and hover popovers stay open over the tip, and every tooltip and popover closes on Escape.e1c3e58: Addedmin-content,max-contentandfit-contentto the.w-*and.h-*utilities, e.g..w-fit-content.e1c3e58: Addedtabler.init(root)andtabler.dispose(root)to start and release every plugin on markup added after page load.e1c3e58: Added.lh-mdas an alias of.lh-base.e1c3e58: Added--tblr-list-group-header-colorand--tblr-list-group-header-bgCSS variables to the list group header.e1c3e58: Added.min-w-0,.min-w-100,.min-h-0and.min-h-100utilities formin-widthandmin-height.e1c3e58: Added--tblr-modal-header-height,--tblr-modal-header-bg,--tblr-modal-status-sizeand--tblr-modal-backdrop-blur.e1c3e58: Added open and close animations to the native<dialog>and its backdrop.e1c3e58: Added a nativeInputMaskwith number and date types,tokensanddata-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-radiusand used the offcanvas padding variables in.offcanvas-footer.e1c3e58: Added swipe to dismiss,.offcanvas-insetand--tblr-offcanvas-backdrop-blurto Offcanvas.e1c3e58: Added Phone input component: atype="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-pulseas an alias of.placeholder-glowfor the placeholder opacity animation.e1c3e58: Updated thetransitionmixin and animated components to emit motion only insideprefers-reduced-motion: no-preference.e1c3e58: Added.shadow-xsand.shadow-xlutilities with the--tblr-box-shadow-xsand--tblr-box-shadow-xltokens.e1c3e58: Added stacked modals: a modal withdata-bs-stacked="true"opens on top of the open modal instead of replacing it.9adec1e: Added--tblr-{color}-textshades, used by outline and ghost buttons, alerts and statuses, and runtime-fgcolors.e1c3e58: Added--tblr-table-*CSS variables for cell padding, border width and header styles to the table component.e1c3e58: AddedSelectAllplugin for selectable tables and lists, and.selection-toolbarfor bulk actions on selected rows.e1c3e58: Added.text-truncate-2to.text-truncate-5utilities that cut text after a set number of lines.e1c3e58: Added.text-balanceand.text-prettyutilities fortext-wrap.e1c3e58: Added theTogglerplugin, which toggles a class or an attribute on click withdata-bs-toggle="toggler".e1c3e58: Added.transition-noneand.animation-noneutilities to switch off transitions and animations on one element.e1c3e58: Added Promise return values toshow(),hide(),toggle()andclose()that resolve when the transition ends.e1c3e58: Added.underline-thickness-1to.underline-thickness-5utilities fortext-decoration-thickness.e1c3e58: Added.underline,.underline-{color},.underline-{0…100}and.underline-offset-{1-3}as new names for.link-underline*.e1c3e58: Updated$darkand$body-colorto$gray-900and the light mode--tblr-body-colortogray-800for darker text.f86c952: Fixed@starting-styleand@scoperules being dropped from the.min.cssfiles by switching the minifier tocssnano.50bd9cc: FixedDatepickertheme 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: FixedCarouselso images inside.carousel-itemcannot be dragged on touch devices.c799164: Fixeddispose()leaving a cycling Carousel interval running and touchmouseoverlisteners after an open Dropdown or Tooltip.e1c3e58: Fixed the menu row of the floating two-row navbar being narrower than the header row.69b05e9: FixedOtpInputkeeping old characters when a shorter text is pasted over a selection.63770c4: Fixed the plus and empty avatars in.avatar-list-stackedshowing the avatar behind through a transparent$avatar-bg.5029252: Fixedborder-radiusof.flag-xxsand square.avatar-xxsto match thexssize.95ebf0f: Addedfont-optical-sizing: autoto thehtmlelement.d0fac39: Updated.icon-pulse,.icon-tadaand.icon-rotateto transition onlytransforminstead ofall.46bd1d7: Fixed inlinecodecontrast on colored surfaces: it now uses the surrounding text color with a 10% tint as background.e1c3e58: Fixed Offcanvas panels that are notposition: fixedopening on page load and locking page scroll.e1c3e58: Removed obsolete::-moz-focus-innerandbutton/selecttext-transform: nonerules from reboot.68c81fc: Fixed Chrome recalculating the style of the whole page on each DOM change because of the.steps:last-childrule.
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 withcodein 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: Updatedastroto 7.4.12,@astrojs/mdxto 8.1.6 and@astrojs/vercelto 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/flagsnow redirects to/flags/css.e1c3e58: Updated the navbar notifications dropdown with avatars, timestamps, unread dots, day groups and a scrollable list.8bc045e: AddedCache-Controlheaders 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.cardexamples 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 ontabler.init()andtabler.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!

