This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-imkit v0.9.0
mojo-imkit v0.9.0
Released: 2026-11-10 · Commit: tag v0.9.0 · Previous: v0.8.1
What it does
An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.
Highlights
- Pure-Mojo image decoders: JPEG (baseline and progressive) and WebP (lossless, lossy, alpha), bit-exact against libjpeg-turbo and libwebp where the format is exact;
image_decodepicks PNG, JPEG or WebP. - 29 generated themes plus amarbaro and amarbaro-light, all passing a WCAG contrast gate that covers text, labels, controls and status colours.
- A background and 8 icons per style in
assets/styles/(30 styles, 6 MB). - Text: six font sizes in the gallery, and
heading,caption,separator,badge,kvwidgets.
Changes
Added
imkit.jpeg(jpeg_decode),imkit.webp(webp_decode),image_decoderouting inimkit.assets.imkit.styles(style(name),STYLE_NAMES), generated bytools/gen_styles.mojofrom ComfyUI swatches;imkit.contrast(contrast,theme_faults).- Themes
amarbaro()andamarbaro_light()from the amarbaro.com brand tokens. - Widgets
heading,caption,separator,badge,kv. assets/styles/<name>/bg.jpgandicons/*.png;scripts/style-assets.shbuilds the raw atlases into.work.
Changed
flatandneoncontrols are more visible (button fill vs panel); the gallery's preset buttons share their row and the style button sits on its own row.- CI runs on Ubuntu 26.04; the CJK fallback font is resolved per distro.
Fixed
- Selected-button and badge labels are black or white for their fill (grey labels on dark accents).
Verified
| Check | Result |
|---|---|
tests/jpeg_test.sh |
PASS: 27 fixtures bit-exact vs libjpeg-turbo, 63 mutants, fuzz without crash, 1280x720 in about 20 ms |
tests/webp_test.sh |
PASS: lossless bit-exact, lossy within the bar, mutants raise, lossless bg 19.7 ms, lossy 64.8 ms |
tests/style_test.mojo |
PASS: 29 generated + amarbaro presets + flat pass the gate; a planted fault is caught |
| gallery renders, 34 presets | button vs panel on the rendered frame >= 1.28 (linear WCAG), gallery_check.sh PASS, OCR reads every badge and the style label |
scripts/style-assets.sh |
PASS: 30 styles, 8 icons each with transparency, 6 MB |
CI on Ubuntu 26.04 (ci-local) |
see the public sync commit |
Known limits
- AVIF is not decoded yet (in progress).
- The generated themes come from one swatch each; taste is not gated, only contrast.
- Animated WebP raises.
Upgrade / run
pixi add mojo-imkit # or uv: mojo-imkit 0.9.0
scripts/gallery.sh .work/shots # renders every preset
Commits
b995b3bdocs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modulese412c05feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)d8436c9docs(api): new widgets, amarbaro and generated themes, contrast, WebP78fa013feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls915d7c0docs(reports): webp lane report with fixture numbers, mutants and memoryee072ccdocs(rules): webp lane mistakesc534c5afeat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp45b7228docs(jpeg): api, README row, rules, lane report961c027test(jpeg): bit-exact bar and a fuzz run2649441feat(assets): image_decode picks JPEG or PNG by signature, pack uses it7db7c88perf(jpeg): baseline blocks are transformed as they are decoded7603983feat(jpeg): pure Mojo baseline and progressive JPEG decodera91728dfeat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures80179f5fix(gallery): preset buttons share the row equally24367b7fix(gallery): style button on its own row inside the panelc8c8a90feat(assets): 29 style backgrounds and 232 icons4307fb4feat(assets): style-assets.sh packs per-style backgrounds and icon atlasesad63dd5feat(styles): 29 theme presets measured from ComfyUI style swatchese263d25docs(rules): gpu-wait jobs get PATH and HOME passed explicitly5b978b9docs(plans): 28 style themes and assets from the ComfyUI stock styles26be1abdocs(readme): gallery screenshots in the three presets5a4432bchore(gallery): submit the render as a shared 2 GB GPU job495cf83fix(ci): resolve the CJK fallback font per distroca2e844docs(rules): bump pyproject version with every release