theme_tool.py

Unified Theme Tool for LunaEngine.
Subcommands:
 compile    â€“ Merge individual theme JSONs into a single themes.json
 uncompile  â€“ Split themes.json back into separate theme files
 fix-shadows – Add shadow properties to all theme variants

Global Functions

def get_shadow_for_variant(mode: Literal['dark', 'light'], base_color: Tuple[int, int, int, float]) -> Dict

Generate shadow dict from variant mode and base colour.

def compile_themes(themes_path: Path, output_path: Path, compact: bool = False) -> Any

Compile all theme JSON files into a single themes.json.

def uncompile_themes(input_path: Path, themes_path: Path, compact: bool = False) -> Any

Split a themes.json into separate theme files.

def fix_shadows(input_path: Path, output_path: Path) -> Any

Add shadow properties to every style entry in all themes.

def main() -> Any

No documentation

Back to Tools Module