Krewire UI
Krewire UI (kui) is a zero-dependency, neo-brutalist ("pop-brutalist") design system and component library built natively for the Krewire ecosystem.
Components can be used directly across both authoring surfaces:
- Go-Native: Programmatic, type-safe widgets and nodes (
github.com/krewire/ui/widget). .kiwDSL: Declarative Single-File Components (import { Button } from '@krewire/ui').- Package-based: Install once via
krew add @krewire/uiwithout copying files into local directories, with optionalkrew ui vendorif custom source ownership is needed.
What is in this Chapter?
- Components Directory (
/ui/components) โ Complete reference catalog for all 66 Single-File Components, including buttons, cards, modals, navigation bars, forms, data displays, and layout primitives. - Design Tokens & Pop-Brutalism โ High-contrast semantic color palette, 2.5px solid borders, hard offset drop shadows (
4px 4px 0px var(--border)), and accessible dark mode inversion. - Zero-Dependency Architecture โ Pure Go compilation (
CGO_ENABLED=0), zero npm or Node.js runtime bloat, and standard libraryembed.FSdistribution. - Component Playground (
/ui/playground) โ Live light/dark previews ofButton,Badge,Input,Card,Modal,Tabs, andAlertwith variant and size toggles and one-click copy of the.kiwsource and usage snippet. The same preview is embedded at the top of each of those component pages.