Theme Color Conventions

February 23, 2026 · View on GitHub

Extensions in this repo use a consistent color language mapped to Pi's theme tokens. Follow these rules when building new extensions.

Color Roles

TokenRoleUsed For
successPrimary valueToken counts, hash fills, branch name, counts
accentSecondary valuePercentages, tool names, token out counts
warningPunctuation/frameBrackets [], parens (), pipes `
dimFiller/spacingDashes, labels ("in", "out"), separators
mutedSubdued textCWD name, fallback states

Examples

Context meter:  warning([) success(###) dim(---) warning(]) accent(30%)
Git branch:     dim(pi-vs-cc) warning(() success(main) warning())
Token stats:    success(1.2k) dim(in) accent(340) dim(out) warning(\$0.0042)
Tool tally:     accent(Bash) success(3) warning(|) accent(Read) success(7)

Rationale

  • Green (success) draws the eye to live values that change — counts, filled bars, branch
  • Cyan (accent) highlights identifiers and secondary metrics — names, percentages
  • Yellow (warning) frames structure — delimiters tell you where one value ends and the next begins
  • Dim recedes into the background — labels and filler shouldn't compete for attention