Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit65083fe8f2

README.md

debug

Engine-editor debug overlay theme. Data-only module — returns a theme table with name, tokens (palette), and styles (widget rule blocks). Loaded by system_tools.

Pre-Phase-4 this lived in themes/debug.yaml with the legacy colors: schema; after migration it's a plain Luau module with tokens (uniform with dark / light) so the cascade resolver works without legacy fallbacks.

Exports

  • name: string — "debug". Used as the theme key when registering.
  • tokens: { [string]: string } — flat map of debug-overlay-specific tokens.
  • styles: { [string]: { [string]: any } } — widget style blocks scoped to debug-overlay widgets (debug-panel, debug-heading, etc.).

Usage

local theme = require("@builtin::themes.debug")
Z.theme.register(theme)

Notes

  • Pure data. Hot-reloading the module just re-registers the table next time Z.theme.register runs.
  • Style keys are namespaced (panel.debug-panel, label.debug-heading, etc.) so they don't collide with the main dark / light themes when both are active.