Skip to content

feat: migrate terminal output to herald typography system#256

Merged
indaco merged 4 commits intomainfrom
feat/herald-typography
Apr 3, 2026
Merged

feat: migrate terminal output to herald typography system#256
indaco merged 4 commits intomainfrom
feat/herald-typography

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 3, 2026

Description

Migrate all terminal output from raw lipgloss/ANSI styling to the herald typography library for consistent, themed output across all commands.

Key changes:

  • New printer/theme system - printer.Init(theme) initializes a package-level *herald.Typography with named theme support (sley, dracula, catppuccin, base16, charm). Custom SleyTheme() with teal brand colors.
  • Delete internal/console/ - Raw ANSI escape codes fully replaced by herald-backed printer functions.
  • Herald elements everywhere - Compose, H2, H4, UL, KV, KVGroup, Table, Code, CodeBlock, Tags, Section used across discover, doctor, init, changelog, extension, hooks, workspace formatter, and extensionmgr.
  • Faint + selective color - Replace blanket PrintSuccess/PrintInfo with PrintFaint + Info() highlights on key values (versions, paths, names) for cleaner visual balance. Errors and warnings stay colored.
  • Herald v0.13.0 - Remove local Section/BR implementations, use upstream Typography.Section().
  • Bug fix - Skip TUI module selection prompt when --module/--modules/--pattern flags are explicitly set.

Commits:

  1. refactor: replace console package with herald typography system
  2. refactor: migrate command output to herald typography
  3. style: use faint text with selective color highlights across commands
  4. chore(deps): update herald to v0.13.0 and use Section/BR from upstream

Related Issue

  • None

Notes for Reviewers

  • None

indaco and others added 4 commits April 3, 2026 15:16
Introduce herald-backed printer with themed typography, replacing raw
ANSI escape codes in the console package. Add theme.go with SleyTheme
and ResolveTheme for named theme support. Initialize typography via
printer.Init(theme) in the CLI Before hook.

Co-Authored-By: claude <noreply@anthropic.com>
Use herald Compose, H2, H4, UL, KV, KVGroup, Table, Code, CodeBlock,
Tags, and Section across discover, doctor, init, changelog, extension,
hooks, workspace formatter, and extensionmgr output. Replace manual
string formatting with structured typography elements for consistent
visual hierarchy.

Co-Authored-By: claude <noreply@anthropic.com>
Replace blanket PrintSuccess/PrintInfo with PrintFaint and Info()
highlights on key values (versions, paths, names) for a cleaner
visual balance. Errors and warnings remain colored. Quiet-mode
summaries are unchanged.

Co-Authored-By: claude <noreply@anthropic.com>
Remove local printer.Section and printer.BR implementations in favor
of herald v0.13.0 Typography.Section(). Update all call sites to use
ty.Section() directly.

Co-Authored-By: claude <noreply@anthropic.com>
@indaco indaco merged commit 1a26436 into main Apr 3, 2026
7 checks passed
@indaco indaco deleted the feat/herald-typography branch April 3, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant