Skip to content

developit/kinu

Repository files navigation

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:

Purple-tinted rounded style in dark mode:

Quick Start

pnpm add kinu
import { 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

Development

# Run the demo app locally
cd demo
pnpm install
pnpm run dev

License

MIT

About

Preact UI toolkit. 10x smaller than you think. Intuitive for humans+LLMs.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors