Skip to content

improve terminal output compatibility w/ terminal themes #1452

Description

@zenrak

Description

Lefthook renders a decorative truecolor banner in terminal output that does not consistently render well across terminal themes and ANSI color mappings. In some environments, the gradient and styling can reduce visual clarity due to theme-dependent color differences.

I'm creating this feat req this after testing with catppuccin frappé on kitty, wezterm and ghostty. Here's a screenshot of it on wezterm - if you note, you'd see that the line before the summary is not visible at all.

Image

Hence, it would be useful to support either:

  • a minimal/no-banner mode (e.g. --plain or --no-banner), and/or
  • a theme aware mode that avoids hard-coded RGB values and instead relies on standard ANSI palette colors or adapts to terminal theme defaults...

What problem it is solving?

the current banner styling is not consistently compatible with all terminal themes and color schemes, leading to degraded readability or visual inconsistency in some setups. A minimal or disabled banner mode would improve compatibility across different terminal environments and CI systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA new lefthook feature description

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions