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).
  • .kiw DSL: Declarative Single-File Components (import { Button } from '@krewire/ui').
  • Package-based: Install once via krew add @krewire/ui without copying files into local directories, with optional krew ui vendor if custom source ownership is needed.

What is in this Chapter?

  1. 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.
  2. 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.
  3. Zero-Dependency Architecture โ€” Pure Go compilation (CGO_ENABLED=0), zero npm or Node.js runtime bloat, and standard library embed.FS distribution.
  4. Component Playground (/ui/playground) โ€” Live light/dark previews of Button, Badge, Input, Card, Modal, Tabs, and Alert with variant and size toggles and one-click copy of the .kiw source and usage snippet. The same preview is embedded at the top of each of those component pages.