Kinu
Preact UI toolkit. 10x smaller than you think. Intuitive for humans+LLMs.
A hyper-minimal UI toolkit that feels like a Preact UI toolkit, but is actually progressively enhanced HTML. Where other UI toolkits implement logic and mappings in JS, Kinu does it all in CSS for maximal efficiency. Built for developers who value performance, simplicity, and the web platform. The project is written primarily in TypeScript, first published in 2025. Key topics include: preact, ui-components, ui-library, ui-toolkit.
kinu - Preact UI toolkit, 10x smaller than you think.
A hyper-minimal UI toolkit that feels like a Preact UI toolkit, but is actually progressively enhanced HTML. Where other UI toolkits implement logic and mappings in JS, Kinu does it all in CSS for maximal efficiency. Built for developers who value performance, simplicity, and the web platform.
Why kinu?
- 🚀 Tiny Bundle: ~5KB JS + ~6KB CSS for all components
- ⚡ Zero Re-renders: No state, direct DOM reactions via native
commandFor(polyfill included!) - 🌐 Platform-Native: Uses
<dialog>, anchor positioning, form validation, etc - 📦 Tree-Shakeable: Import only what you use (though at 5kb who cares)
- 🎨 Beautiful and themeable: Override styles for components or define your own
Screenshots
Default unbranded style:
<img src="https://raw.githubusercontent.com/developit/kinu/refs/heads/main/demo/public/kinu-light.png" width="790">Purple-tinted rounded style in dark mode:
<img src="https://raw.githubusercontent.com/developit/kinu/refs/heads/main/demo/public/kinu-dark.png" width="772">Quick Start
bashpnpm add kinu
tsximport { Button, Dialog, Input } from 'kinu'; function App() { return ( <> <Button variant="outline" size="lg"> Click me </Button> <Dialog> <Dialog.Trigger> <Button>Open Dialog</Button> </Dialog.Trigger> <Dialog.Content> <h2>Hello World</h2> <Input placeholder="Type something..." /> </Dialog.Content> </Dialog> </> ); }
Live Demo
Check out the live demo to see all components in action.
Documentation
- Architecture Overview - Technical details and design decisions
- Component Reference - Complete component API documentation
Development
bash# Run the demo app locally cd demo pnpm install pnpm run dev
License
MIT
Contributors
Showing top 7 contributors by commit count.
