Kiln

Fire your layouts into native UI.

Kiln is a native UI component library for C3: polished widgets, spring motion and full keyboard support, on SDL3, raylib and the browser.

Open the gallery Try the dashboard Get started

Both demos run in your browser: Kiln compiled to WebAssembly, about half a megabyte to download.

The dashboard example: plays, listeners, skip rate and top tracks

A UI library for C3

Kiln is immediate mode: you describe the whole interface every frame, widgets return what happened, and your own variables hold the state. Clay lays it out; Kiln draws it with SDL3 for apps, raylib for games, and WebGL in the browser.

A taste of the API

import kiln;

int clicks;
bool notifications;

fn void frame(Ui* ui, void* user)
{
    ui.@column(pad: 8, gap: 4)
    {
        ui.heading("Hello", 2);
        ui.toggle("Notifications", &notifications);
        ui.@row(gap: 2)
        {
            if (ui.button("Click me", variant: PRIMARY)) clicks++;
            ui.textf("Clicked %d times", clicks);
        };
    };
}

fn void main()
{
    app::run("Hello", 420, 300, &frame);
}

Two styles

If the UI is the app, use App style. If the UI sits on top of something else, use Game style. Both run on the same core, so widgets behave the same.

Status

Kiln is early. What is built and what comes next is in the roadmap.