Call theme.Apply(c) at the top of each view, then read design tokens with theme.TokensOf(c).
To start a whole app, copy examples/desktop: a skeleton desktop window with a title bar, tabs with history, a resizable sidebar, a content card and a settings form, styled after the LobeHub desktop app. Run it with go run ./examples/desktop.
Components speak English and Simplified Chinese, in the language the app shows: an app that ships zh-Hans in its MyGo catalogs gets them in Chinese, and changes or translates any of their texts with lobe.<key> keys (see pkg/internal/l10n/messages/en.json). The starter shows both, with a language switch in Settings.
The docs site shows every component as a live MyGo demo, compiled to WebAssembly and drawn in the browser, next to an API table generated from its Go Props struct.
Clone it for local development (Go >= 1.27 and Bun):
$ git clone https://github.com/lobehub/lobe-mygo.git
$ cd lobe-mygo
$ go test ./...
$ go run ./catalog # native catalog window
$ go run ./catalog button/basic
$ go run ./examples/desktop # desktop app starter
$ bun install && bun run dev # docs site with WebAssembly demos
π€ Contributing
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what youβre made of.
Every bit counts and your one-time donation sparkles in our galaxy of support! You're a shooting star, making a swift and bright impact on our journey. Thank you for believing in us β your generosity guides us toward our mission, one brilliant flash at a time.
π Links
π Lobe UI - React component library for AI apps
πΉ MyGo - Desktop apps in Go, with native UI or a web frontend
Command gen-shots renders the docs site's images from real components: the home page's bento tiles with transparent backgrounds and the live showcase's poster, in light and dark, the social preview and the README banner.
Command gen-shots renders the docs site's images from real components: the home page's bento tiles with transparent backgrounds and the live showcase's poster, in light and dark, the social preview and the README banner.
Package l10n holds the texts Lobe MyGo's components say themselves, in English and the languages they are translated to: a library catalog of the namespace "lobe", said in the language of the window.
Package l10n holds the texts Lobe MyGo's components say themselves, in English and the languages they are translated to: a library catalog of the namespace "lobe", said in the language of the window.