Skip to content

About

Grex Theme Builder — Responsive-first visual drag-and-drop page and conditional theme builder for GRAB, Grisp, GrabLab CMS, and Grex JS

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Grex Theme Builder

Built with GRAB v1.3.0 Powered by Grex JS v1.0.0 Release v1.4.0

Grex Theme Builder is Step 3 of the Post-1.0 GRAB Ecosystem — a responsive-first visual page and conditional theme builder powered purely by GRAB v1.1.0, GrabLab CMS v1.0.0, and Grex JS v1.0.0 (zero Vue, Pinia, Node, Webpack, or Vite bloat).

It packages and installs as a first-class, exclusive mode: "visual" theme inside GrabLab CMS. When activated, it disables any prior theme and takes 100% exclusive template rendering control with clean semantic HTML (zero wrapper <div> bloat).


Key Architecture Pillars

  1. Exclusive mode: "visual" GrabLab Theme: Ships with theme/theme.json ("mode": "visual", "engine": "grex-visual") and zero-<div> .grab.html template shells — never a third-party plugin.
  2. Pure Grex JS v1.0.0 Reactive Studio: Signal-driven state (createBuilderStore), 20-element catalog (grex.elements.json), validateElementNode(), and live auditAccessibility() WCAG AA checks.
  3. Deterministic Undo/Redo Command Stack: Serializable mutation commands (createCommandStack) shared safely by human designers and Grex AI (grab mcp).
  4. Fluid Grisp / --read-only Docker Sync: Live split-screen edits patch browser memory via origin-checked GrexPreviewBridge; Save Draft isolates drafts in use data; Publish invalidates use cache and writes compiled CSS strictly to /static/grex/ for server.asset ?v=<hash>.
  5. NextGen Dynamic & Component Studio (v1.4.0): Visual Query Loop Builder UI, Typed Dynamic Data Tags with int64 exact formatters, Server-Evaluated Conditional Visibility, and Global Synced <grab-component> Studio.

Quick Start (v1.4.0)

1. Run Standalone Visual Studio

grab migrate --db-config grab.data.json --allow-db main:migrate migrations/001_studio_schema.grab
grab migrate --db-config grab.data.json --allow-db main:migrate migrations/002_revisions_schema.grab
grab serve --allow-scripts --db-config grab.data.json --allow-db main:read-write --platform-config grab.platform.json --allow-cache studio:read-write --static public --allow-read . --allow-write public/grex --allow-write storage src/studio.grab

Open http://127.0.0.1:8080/studio to edit templates, global --grex-* theme tokens, reusable .grex-c-* classes, responsive breakpoints, conditional template rules, ForEach Query Loops, dynamic bindings, live Preview As contexts, immutable revision diffs/rollback (Revisions), live GRAB-DESIGN-SYSTEM.md (/api/design-system.md), and WCAG AA guarded grab mcp AI layout updates (/api/mcp/layout), then publish compiled CSS to public/grex/.

2. Install in GrabLab CMS v1.0.0

Package theme/ (python scripts/package_release.py --version 1.0.0) or copy theme/ to themes/grex-builder/ and theme/assets/theme.css to public/themes/grex-builder/theme.css, then activate Grex Theme Builder (slug grex-builder) from /admin/themes.

3. Run Verification Suite

node --test tests/*.test.js
python tests/integration_e2e.py

Current Status

  • Repositories: urbanspress/grex-builder.progress (active development) / urbanspress/grex-builder.stable (verified releases)
  • Latest Release: v1.4.0 — NextGen Visual Query Loop, Dynamic Data Tags, Conditional Visibility & Global Synced <grab-component> Studio (Verified & Released; see CHANGELOG.md).
  • Governance & Roadmap: See GREX-BUILDER-EXPERT.md, AGENTS.md, docs/ROADMAP.md, and deploy/README.md.

License

MIT License — see LICENSE.

About

Grex Theme Builder — Responsive-first visual drag-and-drop page and conditional theme builder for GRAB, Grisp, GrabLab CMS, and Grex JS

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages