-
Notifications
You must be signed in to change notification settings - Fork 9
Changelog
The first build with the headless core + swappable renderer split.
[dependencies]
yororen-ui = "0.3" # meta-crate — re-exports core + default renderer + 3 locales-
Workspace split —
yororen-ui-core(headless),yororen-ui-default-renderer(55TokenXxxRendererimpls),yororen-ui-brutalism-renderer(feature-gated, 55BrutalXxxRendererimpls),yororen-ui(meta-crate), three locale crates (en,zh-CN,ar), and an XML DSL crate pair (yororen-ui-xml+yororen-ui-xml-macro). -
JSON-backed
Theme—Themeis a thin wrapper overserde_json::Value. No Rust schema. Renderers read paths likeaction.primary.bgandtokens.control.button.min_heightat render time. Missing paths fall back to renderer defaults. -
55 component markers — defined in
yororen-ui-core/src/renderer/markers.rs. Each marker is the key into the globalRendererRegistry; the default and brutalism renderers each implement all 55 trait slots. -
Two renderers, same headless —
renderer::install(cx, appearance)picks the modern rounded look;brutalism_renderer::install(cx)picks sharp corners, hard shadows, monospace. Same headless code; different pixels. -
8 demos —
counter,gallery_demo,inputs_demo,layers_demo,theme_showcase,variant_showcase, plus the XML-DSL pairgallery_xmlandshowcase_xml. See Demos. -
Three locales ship in the meta-crate;
arflips layout to RTL viacx.i18n().text_direction(). Application strings layer on top viaI18n::merge_translations.
use yororen_ui::headless::button::button;
button("save", cx)
.caption("Save")
.on_click(|_, _, _| { /* ... */ })
.render(cx)The .apply(div) pathway still does a11y only (focus handle, click handler, id); the visual is the renderer's job.
- Screen-reader / ARIA bridge. gpui-ce 0.3.x lacks public AccessKit integration. Focus + keyboard nav + visual indicators work; semantic announcement does not.
-
Designer surface. Theme customisation is editing a JSON file and
cargo run. -
Cross-platform support beyond what
gpuialready supports.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.