MoDuL's Hub logo

MoDuL Hub Control Room

Global userscript theme contract

Global Theme

One theme contract for MoDuL Torn scripts.

MoDuL Hub Control Room is the shared source of truth for colours, fonts, radius, spacing, borders, table styling, and future script refactors.

Theme Contract

All current, future, and edited historical MoDuL userscripts should use these identifiers instead of local theme names.

Contract v1.0.0

Runtime API

The same API is exposed as `window.MoDuLHubControlRoom` and `window.MoDuLHubTheme`.

  • `getContract()`
  • `getClasses()`
  • `getSelectors()`
  • `varName()` and `cssVar()`

Shared Tables

Every script table should use the same class/data contract.

  • `.mh-table`
  • `.mh-table-head`
  • `.mh-table-body`
  • `.mh-table-row`
  • `.mh-table-cell`

Shared Variables

Read visual values from `--mh-*` variables so one editor can theme all scripts.

  • `--mh-panel` and `--mh-panel2`
  • `--mh-table-bg` and `--mh-table-head`
  • `--mh-control` and `--mh-control-hover`
  • `--mh-text`, `--mh-accent`, and status colours

Latest release: v0.2.10

Released July 28, 2026.

Live

Selected Controls

v0.2.10 adds dedicated colours for selected controls, their text, borders, and glow.

Draggable Launcher

The v0.2.9 launcher remains movable with mouse, pen, or touch, with its position saved across reloads.

Viewport Safe

Custom positions stay within the visible browser area after resizing.