v0.14.12 · pre-1.0
Go in. Pixels out.
A desktop UI framework in pure Go: React-style hooks, Tailwind v4 classes, no cgo and no webview. It draws every pixel itself, so the same program renders to a window, to a PNG and to text.
Linux and Windows today · macOS planned · BSD 3-Clause
$ CGO_ENABLED=0 go install github.com/kuronosu/tela/cmd/tela@latest$ tela new myapp$ cd myapp$ CGO_ENABLED=0 go run .
PS> $env:CGO_ENABLED = "0"PS> go install github.com/kuronosu/tela/cmd/tela@latestPS> tela new myappPS> cd myappPS> go run .
No window backend yet; macOS is phase 14.
The code cross-compiles with GOOS=darwin today, but it cannot open a window.
Go 1.27+. Needs a Wayland or X11 session on Linux. go install puts tela in $(go env GOPATH)/bin.
Read https://telaui.dev/llms.txt and build a Tela app: a notes list with a search field and a dark mode switch. Run tela snapshot after each change and fix what looks off.
claude mcp add tela -- tela mcp ./myapppackage main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
)
func Counter() tela.Node { return tela.C(counter) }
func counter() tela.Node {
count, setCount := tela.UseState(0)
return Div(Class("flex items-center justify-center h-full bg-stone-200"),
Div(Class("flex flex-col items-center gap-6 w-80 p-10 rounded-2xl",
"bg-stone-50 border border-stone-300 shadow-xl text-stone-800"),
Span(Class("text-sm font-medium tracking-widest text-stone-500"), Text("COUNT")),
H1(Class("text-8xl font-bold tracking-tight tabular-nums"), Textf("%d", count)),
Button(Class("w-full py-3 rounded-xl bg-stone-800 text-stone-100 font-medium",
"hover:bg-stone-700 active:scale-95 transition"),
OnClick(func() { setCount.Update(func(n int) int { return n + 1 }) }),
Text("Increment"),
),
),
)
}
func main() {
tela.Main(tela.App{Title: "Demo", Width: 800, Height: 600, Root: Counter()})
}

01 · What it looks like
The code on the left draws the pixels on the right.
Five small programs, each rendered by tela snapshot from exactly the source shown.
kit has styled, accessible components in shadcn’s look. Restyle them with recipes.
package main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
"github.com/kuronosu/tela/kit"
)
var theme = kit.Theme()
var App = tela.App{
Title: "Settings", Width: 480, Height: 380,
Theme: &theme, RootClass: "bg-muted text-foreground",
Root: Div(Class("flex h-full items-center justify-center"),
kit.Card{
Class: "w-96",
Title: Text("Notifications"),
Description: Text("Choose what Tela tells you."),
Action: kit.Badge{Variant: kit.Secondary, Children: Text("Pro")},
Children: Div(Class("flex flex-col gap-4"),
kit.Field{Label: "Email",
Children: kit.Input{Type: "email", Placeholder: "you@example.com"}},
Div(Class("flex items-center justify-between text-sm"),
Text("Weekly digest"),
kit.Switch{DefaultChecked: true, AriaLabel: "Weekly digest"}),
),
Footer: kit.Button{Class: "w-full", Children: Text("Save changes")},
}),
}
func main() { tela.Main(App) }


tela snapshot --scale 2 --dark ./componentsHooks are named like React’s. The slider writes the state, the total follows.
package main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
"github.com/kuronosu/tela/kit"
)
var theme = kit.Theme()
var App = tela.App{
Title: "Tip", Width: 480, Height: 380,
Theme: &theme, RootClass: "bg-muted text-foreground",
Root: Div(Class("flex h-full items-center justify-center"), tela.C(tip)),
}
func tip() tela.Node {
pct, setPct := tela.UseState(18.0)
total := tela.UseMemo(func() float64 { return 84.50 * (1 + pct/100) }, pct)
return kit.Card{
Class: "w-96",
Title: Text("Tip calculator"),
Description: Textf("%.0f%% on a $84.50 bill", pct),
Children: Div(Class("flex flex-col gap-5"),
kit.Slider{Value: &pct, OnValueChange: setPct.Set, Min: 0, Max: 30, Step: 1, AriaLabel: "Tip"},
Div(Class("flex items-baseline justify-between"),
Span(Class("text-sm text-muted-foreground"), Text("Total")),
Span(Class("text-3xl font-semibold tabular-nums"), Textf("$%.2f", total))),
),
}
}
func main() { tela.Main(App) }


tela snapshot --scale 2 --dark ./hooksTailwind v4 class names, verbatim, with hover:, active: and dark: variants.
package main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
)
var App = tela.App{
Title: "Card", Width: 480, Height: 380,
RootClass: "bg-stone-100 text-stone-900 dark:bg-stone-950 dark:text-stone-50",
Root: Div(Class("flex h-full items-center justify-center"),
Div(Class("w-80 rounded-2xl border border-stone-200 bg-white p-6 shadow-xl",
"dark:border-stone-800 dark:bg-stone-900"),
Span(Class("rounded-full bg-amber-100 px-2.5 py-0.5 text-xs font-medium text-amber-800",
"dark:bg-amber-400/15 dark:text-amber-300"), Text("New")),
H2(Class("mt-4 text-2xl font-bold tracking-tight"), Text("Hot reload")),
P(Class("mt-1 text-sm leading-relaxed text-stone-500"),
Text("Save a file and the window keeps its state.")),
Button(Class("mt-6 w-full rounded-xl bg-stone-900 py-2.5 font-medium text-stone-50",
"transition hover:bg-stone-700 active:scale-95",
"dark:bg-stone-50 dark:text-stone-900 dark:hover:bg-stone-200"),
Text("Try it")),
)),
}
func main() { tela.Main(App) }


tela snapshot --scale 2 --dark ./stylingReal CSS grid and flex: spans, arbitrary tracks such as grid-rows-[1fr_1fr_auto].
package main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
)
const card = "rounded-xl border border-stone-200 bg-white p-4 text-sm font-medium " +
"dark:border-stone-800 dark:bg-stone-900"
var App = tela.App{
Title: "Grid", Width: 480, Height: 380,
RootClass: "bg-stone-100 text-stone-900 dark:bg-stone-950 dark:text-stone-50",
Root: Div(Class("grid h-full grid-cols-3 grid-rows-[1fr_1fr_auto] gap-3 p-4"),
Div(Class(card, "col-span-2 row-span-2 flex items-end text-lg"),
Text("col-span-2 row-span-2")),
Div(Class(card), Text("1")),
Div(Class(card), Text("2")),
Div(Class(card, "col-span-3 flex items-center justify-between"),
Span(Text("flex")), Span(Class("text-stone-500"), Text("justify-between"))),
),
}
func main() { tela.Main(App) }


tela snapshot --scale 2 --dark ./layoutComponents use tokens, so light and dark need no dark: classes. Scheme() gives a subtree its own.
package main
import (
"github.com/kuronosu/tela"
. "github.com/kuronosu/tela/h"
"github.com/kuronosu/tela/kit"
)
var theme = kit.Theme()
func panel(scheme tela.ColorScheme, title string) tela.Node {
return Div(Scheme(scheme), Class("flex flex-1 flex-col gap-3 bg-background p-5 text-foreground"),
Span(Class("text-xs font-medium tracking-widest text-muted-foreground uppercase"), Text(title)),
kit.Card{Title: Text("Tokens"), Description: Text("bg-card, text-muted-foreground"),
Footer: kit.Button{Children: Text("bg-primary")}},
)
}
var App = tela.App{
Title: "Theme", Width: 600, Height: 260,
Theme: &theme,
Root: Div(Class("flex h-full"),
panel(tela.Light, "Light"),
panel(tela.Dark, "Dark")),
}
func main() { tela.Main(App) }

tela snapshot --scale 2 ./theming02 · The loop
Every screen is also a PNG and a text tree.
So you, your AI agent and your CI can all run the same loop from a terminal.
write→tela snapshot→look→tela inspect→fix↺
$ tela snapshot --size 400x380 --scale 2 -o counter.png ./examples/counter
counter.png
800×760 px, drawn by Tela, headless
Render. The same tree your window shows also renders to a PNG file, with no display server needed. Look at the pixels, or hand them to someone who will.
$ tela inspect --size 800x600 ./examples/counter- text: COUNT- heading "0" [level=1]- button "Increment"
Read. An aria snapshot in YAML: what assistive technology, a test or an agent sees. Add --layout for the boxes as JSON.
$ tela lint ./...lintdemo/home.go:11:14: class: unknown class "rounded-xxl"; did you mean "rounded-2xl"?$ echo $?1
Check. Unknown classes, roles and ARIA values, duplicate keys and misused hooks are found in the source, with a suggestion, even on screens nobody has rendered yet. It exits 1 when it reports something, so CI fails.
$ claude mcp add tela -- tela mcp ./myapp→ snapshot {}Built and mounted in 1.1s.- heading "Settings" [level=1] [ref=e1]- switch "Weekly digest" [ref=e12]- button "Save changes" [disabled] [ref=e32]→ click {"ref": "e12"}Clicked switch "Weekly digest" [ref=e12].- switch "Weekly digest" [checked] [ref=e12]- button "Save changes" [ref=e32]
Delegate. tela mcp serves the screen over the Model Context Protocol, the way Playwright MCP drives a browser: snapshot, screenshot, click, fill and more, on a headless instance that rebuilds on every edit.
$ tela dev ./examples/dashboard# save a .go file: the app is rebuilt in the background# the window never closes; the new build takes its place# kept: hook state, text fields, scroll offsets and focus
Keep going. For people, tela dev rebuilds in the background and swaps the new build into the same window, in about 0.6 s on examples/dashboard.
03 · Real apps
One binary, one window, every pixel yours.
The example apps in examples/, drawn by Tela.
04 · Compared
Where Tela stands, honestly.
Against Fyne, Gio, Wails and Electron. Tela is pre-1.0, so some cells say no or planned.
| Feature | Tela | Fyne | Gio | Wails | Electron |
|---|---|---|---|---|---|
| How the UI is written | Go: components and hooks, Tailwind class strings | Go: widget objects in containers | Go: immediate-mode layout code | HTML, CSS, JS frontend; Go backend | HTML, CSS, JS; Node.js main process |
| Builds without cgo or a C toolchain | YesPure Go, CGO_ENABLED=0 on every platform | NoC compiler on every platform (MSYS2 on Windows) | Partialcgo on Linux and macOS; none on Windows | Partialcgo on Linux and macOS; none on Windows | YesPrebuilt binaries; native Node modules need compiling |
| Draws without a web engine | YesOwn rasterizer, no webview | YesNo web runtime, no JavaScript | YesOwn GPU vector renderer | NoSystem webview: WebView2, WebKit, WebKitGTK | NoBundles Chromium and Node.js |
| Tailwind classes | YesNatively: Tailwind v4 class strings in Go | NoStyled through a Go theme interface | NoStyled through Go theme structs (material) | YesVia the web frontend; community Tailwind templates | YesVia the web frontend |
| React-style components and hooks | YesNatively: function/struct components, UseState, UseEffect | NoRetained widgets, updated by setters or data binding | NoImmediate mode: UI redrawn from program state | YesVia React in the webview (official template) | YesVia React in the renderer (Forge guide) |
| Renders headless to images for tests | Yestela snapshot, telatest goldens; no display needed | Yestest.AssertRendersToImage with the software painter | Yesgpu/headless Screenshot; needs a GPU API | NoNo pixel capture; e2e guide uses Playwright | PartialOffscreen rendering to bitmaps; CI needs a display (Xvfb) |
| Built-in tooling for AI agents | Yestela mcp server; tela inspect aria snapshot | NoNone found in docs or repo | NoNone found in docs or repo | YesBuilt-in MCP server (experimental, mcp build tag) | NoNone official; third-party MCP servers exist |
| Linux | YesWayland and X11 | YesX11; Wayland picked by default since 2.8 | YesWayland and X11 | YesGTK4 and WebKitGTK 6.0 | Yesx64 and arm64 binaries |
| Windows | YesWin32 through syscall, no cgo | YesNeeds a MinGW toolchain | YesNo C compiler needed | YesNeeds the WebView2 runtime | YesWindows 10 and up |
| macOS | PlannedNext phase: Cocoa without cgo | YesNeeds Xcode command line tools | YesNeeds Xcode | YesIntel and Apple Silicon | YesVentura and up |
| Mobile (iOS, Android) | NoDeferred, not scheduled | YesiOS and Android | YesiOS and Android | PartialiOS and Android, experimental | NoDesktop only |
| Web | NoDeferred, not scheduled | YesWebAssembly; docs list file dialog gaps | PartialWebAssembly, marked experimental | PartialServer build serves it to browsers; no native APIs | NoDesktop only |
| Screen reader support today | PlannedPlanned: AT-SPI, UI Automation, NSAccessibility | PartialExperimental opt-in tag; macOS, Windows, mobile, not Linux | Partialio/semantic; only Android (TalkBack) implements it | UnknownNot documented; depends on the system webview | YesChromium accessibility; e.g. JAWS, VoiceOver |
| Stable 1.0+ release | NoPre-1.0; the API may still break | Yesv2.8.2 | Nov0.10.3, pre-1.0; minor versions may break API | Yesv3.0.0 (Oct 26, 2026); mobile not yet stable | Yesv45.2.1 |
| License | BSD 3-Clause | BSD 3-Clause | MIT or Unlicense | MIT | MIT |
As of 2026-10-31. Pre-1.0 and written by the Tela project: check the sources, and tell us what is out of date.
- Fyne README (v2.8.2)
- Fyne docs: Quick start (prerequisites)
- Fyne website
- Fyne docs: Custom theme
- Fyne docs: Data binding
- Fyne source: test/test_helper.go (v2.8.2)
- Fyne docs: Run in a browser
- Fyne v2.8.0 release notes
- Fyne source: glfw/accessibility_notdarwin.go (v2.8.2)
- Fyne v2.8.2 release
- Gio website
- Gio docs: Install
- Gio docs: Install on Linux
- Gio source: app/os_wayland.go (v0.10.3)
- Gio source: app/os_macos.go (v0.10.3)
- Gio docs: Architecture
- Gio docs: Theme
- Gio source: gpu/headless/headless.go (v0.10.3)
- Gio README (v0.10.3)
- Gio source: io/semantic/semantic.go (v0.10.3)
- Gio source: app/GioView.java (v0.10.3)
- Wails v3.0.0 release notes
- Wails v3 docs: FAQ
- Wails v3 docs: Cross-platform builds
- Wails v3 docs: Community templates
- Wails v3 docs: End-to-end testing
- Wails v3 docs: LLM control (MCP)
- Wails v3 docs: Mobile overview
- Wails v3 docs: Server build
- Wails v3 docs: Roadmap and status
- Electron docs: What is Electron?
- Electron docs: Installation
- Electron docs: Native Node modules
- Electron README: Platform support (v45.2.1)
- Tailwind CSS docs: Installing with Vite
- Electron Forge docs: React
- Electron docs: Offscreen rendering
- Electron docs: Testing on headless CI
- Electron docs: Accessibility
- Electron v45.2.1 release
- electron-mcp-server (third-party)
- Fyne LICENSE
- Gio LICENSE
- Wails LICENSE
- Electron LICENSE
- Wails v3 docs: Installation
- Gio docs: Install on macOS
05 · Start the loop
Install the command, render the counter.
$ CGO_ENABLED=0 go install github.com/kuronosu/tela/cmd/tela@latest
Read https://telaui.dev/llms.txt and build a Tela app that …
v0.14.12pre-1.0: the API may still changeLinux and Windows, macOS plannedBSD 3-Clause






