Key concepts:
-
Boolean props - When possible, VUI utilizes boolean props to increase implementation speed
<Flex justify-center align-center wrap> {{ yourContent }} </Flex> <!-- Plain: no background unless hover - Outline: adds border --> <button plain outline variant="accent">{{ myButton }}</button> -
Explicit triggers - A few UI libraries that I had to use, especially React-related ones, always used implicit triggers for dropdowns and other UI. In VUI, all triggers are exposed via slots and it’s up to the developer to attach them to an event listener, which is a lot more versatile.
<Dropdown> <template #trigger="{ toggle }"> <button @click="toggle" expand>Select framework</button> </template> <!-- Content inside dropdown, in default slot --> </Dropdown> -
Customization - Everything is a CSS variable. You can override all defaults with a single
:rootCSS selector.:root { --color-accent: #edc307; --font: 'Helvetica', sans-serif; --space-xl: 80px; }To customize themes, you can set color variables based on the active color variant
:root.dark { --color-text: white; } :root.light { --color-text: black; } -
CSS framework - Sometimes it’s just faster to add a margin, text color or text wrapping. VUI comes with about a hundred utility classes. It is recommended to use these sparingly, though. (I’m a Tailwind hater)
<span class="block mx-auto text-color-lighter">I'm centered!</span> -
Atomic - My personal mantra is that each website should be unique. This library makes creating functional UI simple, but everything else, like complex layouts, structure and mobile layouts, should be done by hand.
Documentation
I won’t get into the weeds of implementation or list all available tokens. It’s best if you just check out the documentation yourself.
- The documentation is divided into three main pillars:
- Tokens - CSS variables used for spacing, font, colors and much more
- Framework - CSS classes for non-critical styling
- Components - The meat of the library, all the UI components

If you’re curious to see VUI in action, here are projects currently using VUI as their UI component library and design system:
- Hivecom - The project VUI was originally built for. Fully utilizes every VUI component and maxes out its customizability. Including custom themes, powerful command palette and an entire forum
- VUI Docs - Built on top of VUI itself
- Your project! - Click the link to add an issue to include your project in the VUI project list. How exciting!!
