Documentation
¶
Overview ¶
Package themecheck guards the embedded monitor against presentation state that cannot follow a live, model-scoped theme.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FrozenThemeAllowlist = map[string]string{
"pkg/monitor/overlay.go#DimStyle": "deprecated standalone OverlayModal API; live Model rendering bypasses it",
}
FrozenThemeAllowlist contains source-compatibility globals that are not used by a live Model. New entries require the same explicit API rationale.
var RawColorAllowlist = map[string]string{
"pkg/monitor/theme.go": "monitor default palette and model-owned style derivation",
"pkg/monitor/modal/styles.go": "declarative modal default palette and instance style derivation",
"pkg/monitor/markdown.go": "legacy standalone markdown defaults and palette derivation",
}
RawColorAllowlist is deliberately limited to the functions that define or derive td's standalone defaults. Renderers and stateful models do not belong here: their colors must come from their model's Theme.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
Finding identifies a frozen package-init style or an unexplained raw color.
func ScanMonitor ¶
ScanMonitor audits every production Go file below pkg/monitor. Tests are excluded so explicit palettes remain useful as high-contrast fixtures. Raw color analysis resolves string constants and concatenations, follows static string-returning helper functions, and identifies function parameters that flow transitively into lipgloss.Color. It deliberately stops at dynamic runtime values, which are the legitimate Theme-slot path.