kozan — the Kozan UI platform.
Single entry point for application authors. Re-exports everything needed to build a Kozan application — no internal crate knowledge required.
Quick start
use kozan::prelude::*;
fn main() -> kozan::Result<()> {
App::new()
.window(WindowConfig::default(), |ctx| {
let doc = ctx.document();
let div = doc.div();
div.style().w(px(200.0)).bg(hex("#ff4444"));
doc.body().child(div);
})
.run()
}
Feature flags
| Flag | What it enables | Default |
|---|---|---|
winit |
winit windowing backend | yes |
vello |
vello/wgpu GPU renderer | yes |