Small controls.
Shared language.
SjoerdUi is a set of framework-independent custom elements: filter panels, tables, tabs, menus, dialogs and more. Import once, assign properties, listen to native events. Two visual styles and two color modes cross the Shadow DOM through CSS tokens.
· browser native · framework independentComponents →
Every element with a live example, its events and usage code.
Modes →
Light and dark side by side, in the style you pick.
Themes →
Neo Brutal and Gallery compared, their tokens, and a live playground.
Live preview
Switch the style and color mode at the top; every page follows the choice.
Get started
import '@sjoerdvanloon/ui';
import {themeStyles} from '@sjoerdvanloon/ui/themes';
const style = document.createElement('style');
style.textContent = themeStyles;
document.head.append(style);
<section data-sj-style="gallery" data-sj-mode="dark">
<sj-tabs></sj-tabs>
</section>
tabs.items = [{value: 'a', label: 'Overview'}, {value: 'b', label: 'Activity'}];
tabs.addEventListener('tab-change', ({detail}) => show(detail.value));