Everything you need to know about WebBlocks UI. Can't find an answer? Ask us directly.
webblocks-ui.css and webblocks-ui.js — and you're ready to go.
data-mode="dark" on the <html> element.
Using data-mode="auto" follows the OS preference via
prefers-color-scheme. The WBTheme.setMode() API
lets you switch modes programmatically and saves the preference to
localStorage.
--wb-accent-* tokens in your own CSS file.
Define all 12 accent tokens (e.g. --wb-accent, --wb-accent-hover,
--wb-accent-soft, etc.) and every component will automatically
pick up your brand color.
modern,
minimal, editorial, playful, corporate.
Apply with data-preset="corporate" on <html>.
data-wb-toggle="modal" and data-wb-target="#myModal"
to any button. Alternatively, call WBModal.open('#myModal') from JavaScript.
The modal includes a built-in focus trap and closes on Escape or backdrop click.
aria-expanded, aria-controls, role="dialog", etc.),
focus management, and keyboard navigation. Modals and drawers implement full focus traps.
Tabs support arrow key navigation.
We're happy to help. Send us a message and we'll get back to you within 24 hours.
Contact support