Go to file
Kinneyzhang 748a578c31 fix: restore generic Ebox DSL file playground
Move the maintained gallery into a readable .ebox fixture and make ebox-playground own generic parsing, file mode, and public rendering. Keep the startup mode trigger deferred through the user's use-package configuration.

Verified with ebox-playground make check (6/6), etaf-playground make check (6/6), exact use-package startup harness, and fullscreen GUI capture at /tmp/ebox-playground-dsl-gallery.png.
2026-08-05 19:46:45 +08:00
examples fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
tests fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
.gitignore feat(playground): add Ebox layout examples 2026-08-05 06:59:23 +08:00
DESIGN.md fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
DESIGN.zh-CN.md fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
ebox-playground.el fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
Makefile chore(ebox-playground): use standalone ebox package 2026-08-05 09:15:54 +08:00
README.md fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00
README.zh-CN.md fix: restore generic Ebox DSL file playground 2026-08-05 19:46:45 +08:00

ebox-playground

ebox-playground is the independent, generic file runner for Ebox DSL examples. It uses only public Ebox APIs; concrete layouts live in readable .ebox fixtures under examples/. The maintained gallery demonstrates fixed and fractional tracks, explicit Grid placement, and public Column/Flex/Grid composition with a restrained terracotta, sage, blue, and violet palette.

The gallery owns one definite 720 px canvas so its nested Grid examples cannot each reinterpret the surrounding viewport width. It fits a compact GUI Emacs window with at least 760 px of body width. etaf-playground remains the separate higher-level Component and Runtime showcase.

(require 'ebox-playground)
(ebox-playground-open)

The package also owns the .ebox file boundary. Visiting an Ebox DSL file selects ebox-dsl-mode; press C-c C-c to build the single DSL form and render a preview through the public Ebox API.

(add-to-list 'auto-mode-alist '("\\.ebox\\'" . ebox-dsl-mode))

Run make check EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs from this directory.