Skip to main content

Module theme

Module theme 

Source
Expand description

JSON theme file format and loader.

This module defines a Pi-specific theme schema and discovery rules:

  • Global themes: ~/.pi/agent/themes/*.json
  • Project themes: <cwd>/.pi/themes/*.json

Structs§

SyntaxColors
Theme
ThemeColors
ThemeRoots
Explicit roots for theme discovery.
TuiStyles
UiColors

Functions§

looks_like_theme_path
Returns true if the theme spec looks like a file path rather than a theme name. Path-like specs: start with ~, have .json extension, or contain / or .